All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class jdsltools.visualization.ContainerVisualizers.EnumerationVisualizer

java.lang.Object
   |
   +----java.awt.Component
           |
           +----java.awt.Canvas
                   |
                   +----jdsltools.visualization.ContainerVisualizer
                           |
                           +----jdsltools.visualization.ContainerVisualizers.EnumerationVisualizer

public class EnumerationVisualizer
extends ContainerVisualizer
This class displays an enumeration in the visualizer window author Ryan Shaun Baker


Variable Index

 o client_
 o elementVisualizer_
 o marked1_
 o marked2_
 o markedPosn1_
 o markedPosn2_
 o numElementsVisualized_
 o xMargin_
 o xStep_

Constructor Index

 o EnumerationVisualizer(int, int, ElementVisualizer, Enumeration, VisualizationController)

Method Index

 o convertToStandard(Container)
 o duplicator()
 o paint(Graphics)
 o screenLoc(Container, Position)
Returns the coordinates that the given locator would have if the given container were visualized.

 o setScroller(ScrollPane)
 o setSelectedPosition(Position)
selects the given locator and redisplays the container
 o showString(String)
Display the given string.

 o visualize(Container)
Display the contents of the container, with no highlighted element.

 o visualize(Container, Position, boolean)
Display the contents of the container, with the element corresponding to the given locator highlighted.

Variables

 o xStep_
 protected int xStep_
 o xMargin_
 protected int xMargin_
 o marked1_
 protected Position marked1_
 o markedPosn1_
 protected Point markedPosn1_
 o marked2_
 protected Position marked2_
 o markedPosn2_
 protected Point markedPosn2_
 o numElementsVisualized_
 protected int numElementsVisualized_
 o elementVisualizer_
 protected ElementVisualizer elementVisualizer_
 o client_
 protected VisualizationController client_

Constructors

 o EnumerationVisualizer
 public EnumerationVisualizer(int width,
                              int height,
                              ElementVisualizer ev,
                              Enumeration initialContainer,
                              VisualizationController client)
Parameters:
width - the width of the display window
height - the height of the display window
ev - the visualizer for the elements of the enumeration
initialContainer - the initial enumeration displayed
client - the visualization controller using this

Methods

 o duplicator
 public ContainerDuplicator duplicator()
Overrides:
duplicator in class ContainerVisualizer
 o showString
 public void showString(String text)
Display the given string.

Overrides:
showString in class ContainerVisualizer
 o setSelectedPosition
 public void setSelectedPosition(Position selected)
selects the given locator and redisplays the container

Overrides:
setSelectedPosition in class ContainerVisualizer
 o visualize
 public void visualize(Container c)
Display the contents of the container, with no highlighted element.

Overrides:
visualize in class ContainerVisualizer
 o 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
 o screenLoc
 public Point screenLoc(Container c,
                        Position target)
Returns the coordinates that the given locator would have if the given container were visualized.

Overrides:
screenLoc in class ContainerVisualizer
 o paint
 public void paint(Graphics g)
Overrides:
paint in class Canvas
 o convertToStandard
 public Container convertToStandard(Container c)
Overrides:
convertToStandard in class ContainerVisualizer
 o setScroller
 public void setScroller(ScrollPane sp)
Overrides:
setScroller in class ContainerVisualizer

All Packages  Class Hierarchy  This Package  Previous  Next  Index