All Packages Class Hierarchy This Package Previous Next Index
Class jdsltools.visualization.ContainerVisualizers.SequenceVisualizer
java.lang.Object
|
+----java.awt.Component
|
+----java.awt.Canvas
|
+----jdsltools.visualization.ContainerVisualizer
|
+----jdsltools.visualization.ContainerVisualizers.SequenceVisualizer
- public class SequenceVisualizer
- extends ContainerVisualizer
Displays a sequence in the visualizer window
-
SequenceVisualizer()
-
No parameters, to support instantiation with java.lang.class.newInstance().
-
convertToStandard(Container)
-
-
duplicator()
-
-
init(int, int, int, int, Container, ElementVisualizer, VisualizationController)
-
-
mousePressed(MouseEvent)
-
-
paint(Graphics)
-
-
screenLoc(Container, Position)
-
Returns the coordinates that the given locator would have
if the given container were visualized.
-
setScroller(ScrollPane)
-
-
setSelectedPosition(Position)
-
selects the given locator and redisplays the container
-
showString(String)
-
Display the given string.
-
spaint(Graphics)
-
-
update(Graphics)
-
-
visualize(Container)
-
Display the contents of the container, with no
highlighted element.
-
visualize(Container, Position, boolean)
-
Display the contents of the container, with the
element corresponding to the given locator highlighted.
SequenceVisualizer
public SequenceVisualizer()
- No parameters, to support instantiation with java.lang.class.newInstance().
Method init(.) should be called immediately after construction.
init
public void init(int width,
int height,
int margin,
int nodeSeparation,
Container initialContainer,
ElementVisualizer ev,
VisualizationController client)
- Parameters:
- width - the width of the display window
- height - the height of the display window
- margin - the margin at the edge of the visualizer
- nodeSeperation - the distance between each node
- ev - the visualizer for the elements of the enumeration
- initialContainer - the initial enumeration displayed
- client - the visualization controller using this
duplicator
public ContainerDuplicator duplicator()
- Overrides:
- duplicator in class ContainerVisualizer
showString
public void showString(String text)
- Display the given string.
- Overrides:
- showString in class ContainerVisualizer
setSelectedPosition
public void setSelectedPosition(Position selected)
- selects the given locator and redisplays the container
- Overrides:
- setSelectedPosition in class ContainerVisualizer
visualize
public void visualize(Container c)
- Display the contents of the container, with no
highlighted element.
- Overrides:
- visualize in class ContainerVisualizer
visualize
public void visualize(Container c,
Position marked,
boolean ignoreThatParameter)
- Display the contents of the container, with the
element corresponding to the given locator highlighted.
- Overrides:
- visualize in class ContainerVisualizer
screenLoc
public Point screenLoc(Container c,
Position target) throws InvalidPositionException
- Returns the coordinates that the given locator would have
if the given container were visualized.
- Overrides:
- screenLoc in class ContainerVisualizer
spaint
public void spaint(Graphics g)
paint
public void paint(Graphics g)
- Overrides:
- paint in class Canvas
update
public void update(Graphics g)
- Overrides:
- update in class Component
convertToStandard
public Container convertToStandard(Container c)
- Overrides:
- convertToStandard in class ContainerVisualizer
mousePressed
public void mousePressed(MouseEvent e)
- Overrides:
- mousePressed in class ContainerVisualizer
setScroller
public void setScroller(ScrollPane sp)
- Overrides:
- setScroller in class ContainerVisualizer
All Packages Class Hierarchy This Package Previous Next Index