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

Constructor Index

 o DoNothingTimeline()

Method Index

 o addEvent(Point, Color, Object)
 o addEvent(Point, Object)
 o ballMoveTo(Point)
 o beginOperation()
 o client()
 o drawEmpty(Graphics)
Called when drawing is necessary but there are no events.

 o drawShape(Graphics)
Draws the shape on the given graphics.
 o endOperation()
 o info()
 o init(int, int, int, int, TimelineClient)
 o isAtBottom()
 o onShape(Point, boolean)
For any point on the canvas, returns the corresponding point on the shape
 o setClient(TimelineClient)
 o setInfo(String)
 o setTimelinePos(Point)
 o setTimelineToBottom()
 o timelinePos()
 o update(Graphics)

Constructors

 o DoNothingTimeline
 public DoNothingTimeline()

Methods

 o init
 public void init(int width,
                  int height,
                  int margin,
                  int minSeparation,
                  TimelineClient client)
 o beginOperation
 public void beginOperation()
 o endOperation
 public void endOperation()
 o addEvent
 public void addEvent(Point locatorPosition,
                      Color baseColor,
                      Object clientData)
 o addEvent
 public void addEvent(Point locatorPosition,
                      Object clientData)
 o update
 public void update(Graphics g)
Overrides:
update in class Component
 o ballMoveTo
 public void ballMoveTo(Point p)
 o isAtBottom
 public boolean isAtBottom()
 o timelinePos
 public Point timelinePos()
 o setTimelinePos
 public void setTimelinePos(Point p)
 o setTimelineToBottom
 public void setTimelineToBottom()
 o 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
 o drawShape
 public void drawShape(Graphics g)
Draws the shape on the given graphics. Superclass draws the bases.

 o drawEmpty
 public void drawEmpty(Graphics g)
Called when drawing is necessary but there are no events.

 o client
 public TimelineClient client()
 o setClient
 public void setClient(TimelineClient client)
 o setInfo
 public void setInfo(String s)
 o info
 public String info()

All Packages  Class Hierarchy  This Package  Previous  Next  Index