All Packages Class Hierarchy This Package Previous Next Index
Class jdsltools.visualization.DoNothingTimeline
java.lang.Object
|
+----java.awt.Component
|
+----java.awt.Canvas
|
+----jdsltools.visualization.DoNothingTimeline
- public class DoNothingTimeline
- extends Canvas
- implements Timeline
A default timeline that does nothing
- Version:
- Fri Jan 3 16:26:21 1997
- Author:
- Lubomir Bourdev, Mark Handy
-
DoNothingTimeline()
-
-
addEvent(Point, Color, Object)
-
-
addEvent(Point, Object)
-
-
ballMoveTo(Point)
-
-
beginOperation()
-
-
client()
-
-
drawEmpty(Graphics)
-
Called when drawing is necessary but there are no events.
-
drawShape(Graphics)
-
Draws the shape on the given graphics.
-
endOperation()
-
-
info()
-
-
init(int, int, int, int, TimelineClient)
-
-
isAtBottom()
-
-
onShape(Point, boolean)
-
For any point on the canvas, returns the corresponding point on the shape
-
setClient(TimelineClient)
-
-
setInfo(String)
-
-
setTimelinePos(Point)
-
-
setTimelineToBottom()
-
-
timelinePos()
-
-
update(Graphics)
-
DoNothingTimeline
public DoNothingTimeline()
init
public void init(int width,
int height,
int margin,
int minSeparation,
TimelineClient client)
beginOperation
public void beginOperation()
endOperation
public void endOperation()
addEvent
public void addEvent(Point locatorPosition,
Color baseColor,
Object clientData)
addEvent
public void addEvent(Point locatorPosition,
Object clientData)
update
public void update(Graphics g)
- Overrides:
- update in class Component
ballMoveTo
public void ballMoveTo(Point p)
isAtBottom
public boolean isAtBottom()
timelinePos
public Point timelinePos()
setTimelinePos
public void setTimelinePos(Point p)
setTimelineToBottom
public void setTimelineToBottom()
onShape
public Point onShape(Point p,
boolean constrain)
- For any point on the canvas, returns the corresponding point on the shape
- Parameters:
- p - A point
- constrain - Whether the returned point should be constrained
to be on the part of the shape between the first base and the last,
as opposed to whether it should be somewhere on the mathematical
curve
- Returns:
- point on the shape corresponding to p
drawShape
public void drawShape(Graphics g)
- Draws the shape on the given graphics. Superclass draws
the bases.
drawEmpty
public void drawEmpty(Graphics g)
- Called when drawing is necessary but there are no events.
client
public TimelineClient client()
setClient
public void setClient(TimelineClient client)
setInfo
public void setInfo(String s)
info
public String info()
All Packages Class Hierarchy This Package Previous Next Index