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
-
copyRetToParamButton_
-
-
ints_
-
-
paramElementInput_
-
-
paramPosition1_
-
-
paramPosition2_
-
-
position2Selected_
-
-
randomizeCheckbox_
-
-
returnElement_
-
-
returnPosition_
-
-
returnTypeIsPosition_
-
-
selectPosition2Button_
-
-
IntegerElementPanel(VisualizationController)
-
-
add(Component)
- Adds a component to this columnar container.
-
beginDeletionOperation()
-
Will be called when the user begins a deletion from the Container,
so the ElementPanel can take any appropriate action.
-
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).
-
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.
-
beginReadOperation()
-
Will be called when the user begins a read-only operation on the
Container, so the ElementPanel can take any appropriate action.
-
endOperation()
-
Will be called when a Container operation returns, so the
ElementPanel can take any appropriate action (randomly generating a
new element, for example).
-
endReadOperation()
-
-
getIntAtRank(int)
-
-
keyPressed(KeyEvent)
-
-
keyReleased(KeyEvent)
-
-
keyTyped(KeyEvent)
-
-
loadState(ElementPanelState)
-
-
paramElement()
-
ElementPanels give the user a choice from a universe of data elements.
-
paramKey()
-
-
paramPosition1()
-
ElementPanels have to report Locators to be used in Container operations.
-
paramPosition2()
-
A few Container operations require two locators.
-
saveState()
-
-
setParamPosition(Position)
-
Stores a Locator in the ElementPanel, to be reported later, when
paramLocator1() or paramLocator2() is called.
-
setParamPosition1(Position)
-
Stores a Locator in the ElementSelector, to be reported later, when
paramLocator1() or paramLocator2() is called.
-
setParamPosition2(Position)
-
-
setReturnElement(Object)
-
Displays the result of a method call (one which returns user elements,
not Locators, e.g., remove or replace) in the ElementPanel.
-
setReturnLocator(Locator)
-
Displays the result of a method call (one which returns Locators)
in the ElementSelector.
-
setReturnPosition(Position)
-
Displays the result of a method call (one which returns Locators)
in the ElementPanel.
-
timelineEffect()
- The structure displayed has moved in history
and the element panel must respond accordingly
paramElementInput_
protected TextField paramElementInput_
randomizeCheckbox_
protected RandomizeCheckbox randomizeCheckbox_
paramPosition1_
protected Position paramPosition1_
paramPosition2_
protected Position paramPosition2_
position2Selected_
protected boolean position2Selected_
selectPosition2Button_
protected Button selectPosition2Button_
returnTypeIsPosition_
protected boolean returnTypeIsPosition_
returnPosition_
protected Position returnPosition_
returnElement_
protected Integer returnElement_
copyRetToParamButton_
protected Button copyRetToParamButton_
ints_
protected NodeSequence ints_
IntegerElementPanel
public IntegerElementPanel(VisualizationController vc)
paramElement
public Object paramElement()
- ElementPanels give the user a choice from a universe of data elements.
- Overrides:
- paramElement in class ElementPanel
paramKey
public Object paramKey()
- Overrides:
- paramKey in class ElementPanel
paramPosition1
public Position paramPosition1()
- ElementPanels have to report Locators to be used in Container operations.
- Overrides:
- paramPosition1 in class ElementPanel
paramPosition2
public Position paramPosition2()
- A few Container operations require two locators.
- Overrides:
- paramPosition2 in class ElementPanel
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
setParamPosition2
public void setParamPosition2(Position loc)
- Overrides:
- setParamPosition2 in class ElementPanel
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
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
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
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
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
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
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
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
endReadOperation
public void endReadOperation()
- Overrides:
- endReadOperation in class ElementPanel
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
getIntAtRank
protected Integer getIntAtRank(int i)
keyTyped
public void keyTyped(KeyEvent e)
keyPressed
public void keyPressed(KeyEvent e)
keyReleased
public void keyReleased(KeyEvent e)
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
saveState
public ElementPanelState saveState()
- Overrides:
- saveState in class ElementPanel
loadState
public void loadState(ElementPanelState e)
- Overrides:
- loadState in class ElementPanel
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