All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class jdsltools.visualization.ElementPanels.IntegerElementPanel

java.lang.Object
   |
   +----java.awt.Component
           |
           +----java.awt.Container
                   |
                   +----java.awt.Panel
                           |
                           +----jdsltools.visualization.ElementPanels.ElementPanel
                                   |
                                   +----jdsltools.visualization.ElementPanels.IntegerElementPanel

public class IntegerElementPanel
extends ElementPanel
implements KeyListener
Panel that allows selection of elements of class Integer (which encapsulates the base type int), and that implements the interface methods specified by ElementSelector so that other animation components can talk to it.

Author:
Mark Handy, Ryan Shaun Baker

Variable Index

 o copyRetToParamButton_
 o ints_
 o paramElementInput_
 o paramPosition1_
 o paramPosition2_
 o position2Selected_
 o randomizeCheckbox_
 o returnElement_
 o returnPosition_
 o returnTypeIsPosition_
 o selectPosition2Button_

Constructor Index

 o IntegerElementPanel(VisualizationController)

Method Index

 o add(Component)
Adds a component to this columnar container.
 o beginDeletionOperation()
Will be called when the user begins a deletion from the Container, so the ElementPanel can take any appropriate action.

 o beginInsertionOperation()
Will be called when the user begins an insertion into the Container, so the ElementPanel can take any appropriate action (clearing the previous return value, for example).

 o beginOtherOperation()
Will be called when the user begins an operation on the Container that is not subsumed above, so the ElementPanel can take any appropriate action.

 o beginReadOperation()
Will be called when the user begins a read-only operation on the Container, so the ElementPanel can take any appropriate action.

 o endOperation()
Will be called when a Container operation returns, so the ElementPanel can take any appropriate action (randomly generating a new element, for example).

 o endReadOperation()
 o getIntAtRank(int)
 o keyPressed(KeyEvent)
 o keyReleased(KeyEvent)
 o keyTyped(KeyEvent)
 o loadState(ElementPanelState)
 o paramElement()
ElementPanels give the user a choice from a universe of data elements.
 o paramKey()
 o paramPosition1()
ElementPanels have to report Locators to be used in Container operations.
 o paramPosition2()
A few Container operations require two locators.
 o saveState()
 o setParamPosition(Position)
Stores a Locator in the ElementPanel, to be reported later, when paramLocator1() or paramLocator2() is called.
 o setParamPosition1(Position)
Stores a Locator in the ElementSelector, to be reported later, when paramLocator1() or paramLocator2() is called.
 o setParamPosition2(Position)
 o setReturnElement(Object)
Displays the result of a method call (one which returns user elements, not Locators, e.g., remove or replace) in the ElementPanel.

 o setReturnLocator(Locator)
Displays the result of a method call (one which returns Locators) in the ElementSelector.

 o setReturnPosition(Position)
Displays the result of a method call (one which returns Locators) in the ElementPanel.

 o timelineEffect()
The structure displayed has moved in history and the element panel must respond accordingly

Variables

 o paramElementInput_
 protected TextField paramElementInput_
 o randomizeCheckbox_
 protected RandomizeCheckbox randomizeCheckbox_
 o paramPosition1_
 protected Position paramPosition1_
 o paramPosition2_
 protected Position paramPosition2_
 o position2Selected_
 protected boolean position2Selected_
 o selectPosition2Button_
 protected Button selectPosition2Button_
 o returnTypeIsPosition_
 protected boolean returnTypeIsPosition_
 o returnPosition_
 protected Position returnPosition_
 o returnElement_
 protected Integer returnElement_
 o copyRetToParamButton_
 protected Button copyRetToParamButton_
 o ints_
 protected NodeSequence ints_

Constructors

 o IntegerElementPanel
 public IntegerElementPanel(VisualizationController vc)

Methods

 o paramElement
 public Object paramElement()
ElementPanels give the user a choice from a universe of data elements.

Overrides:
paramElement in class ElementPanel
 o paramKey
 public Object paramKey()
Overrides:
paramKey in class ElementPanel
 o paramPosition1
 public Position paramPosition1()
ElementPanels have to report Locators to be used in Container operations.

Overrides:
paramPosition1 in class ElementPanel
 o paramPosition2
 public Position paramPosition2()
A few Container operations require two locators.

Overrides:
paramPosition2 in class ElementPanel
 o setParamPosition1
 public void setParamPosition1(Position loc)
Stores a Locator in the ElementSelector, to be reported later, when paramLocator1() or paramLocator2() is called.

Overrides:
setParamPosition1 in class ElementPanel
 o setParamPosition2
 public void setParamPosition2(Position loc)
Overrides:
setParamPosition2 in class ElementPanel
 o setParamPosition
 public void setParamPosition(Position loc)
Stores a Locator in the ElementPanel, to be reported later, when paramLocator1() or paramLocator2() is called.

Overrides:
setParamPosition in class ElementPanel
 o setReturnElement
 public void setReturnElement(Object elt)
Displays the result of a method call (one which returns user elements, not Locators, e.g., remove or replace) in the ElementPanel.

Overrides:
setReturnElement in class ElementPanel
 o setReturnPosition
 public void setReturnPosition(Position loc)
Displays the result of a method call (one which returns Locators) in the ElementPanel.

Overrides:
setReturnPosition in class ElementPanel
 o setReturnLocator
 public void setReturnLocator(Locator loc)
Displays the result of a method call (one which returns Locators) in the ElementSelector.

Overrides:
setReturnLocator in class ElementPanel
 o beginInsertionOperation
 public void beginInsertionOperation()
Will be called when the user begins an insertion into the Container, so the ElementPanel can take any appropriate action (clearing the previous return value, for example).

Overrides:
beginInsertionOperation in class ElementPanel
 o beginDeletionOperation
 public void beginDeletionOperation()
Will be called when the user begins a deletion from the Container, so the ElementPanel can take any appropriate action.

Overrides:
beginDeletionOperation in class ElementPanel
 o beginReadOperation
 public void beginReadOperation()
Will be called when the user begins a read-only operation on the Container, so the ElementPanel can take any appropriate action.

Overrides:
beginReadOperation in class ElementPanel
 o beginOtherOperation
 public void beginOtherOperation()
Will be called when the user begins an operation on the Container that is not subsumed above, so the ElementPanel can take any appropriate action.

Overrides:
beginOtherOperation in class ElementPanel
 o endReadOperation
 public void endReadOperation()
Overrides:
endReadOperation in class ElementPanel
 o endOperation
 public void endOperation()
Will be called when a Container operation returns, so the ElementPanel can take any appropriate action (randomly generating a new element, for example).

Overrides:
endOperation in class ElementPanel
 o getIntAtRank
 protected Integer getIntAtRank(int i)
 o keyTyped
 public void keyTyped(KeyEvent e)
 o keyPressed
 public void keyPressed(KeyEvent e)
 o keyReleased
 public void keyReleased(KeyEvent e)
 o add
 public Component add(Component component)
Adds a component to this columnar container. supplies the GridBagConstraints.

Parameters:
component - the Component to add.
Returns:
the Component argument
Overrides:
add in class Container
 o saveState
 public ElementPanelState saveState()
Overrides:
saveState in class ElementPanel
 o loadState
 public void loadState(ElementPanelState e)
Overrides:
loadState in class ElementPanel
 o timelineEffect
 public void timelineEffect()
The structure displayed has moved in history and the element panel must respond accordingly

Overrides:
timelineEffect in class ElementPanel

All Packages  Class Hierarchy  This Package  Previous  Next  Index