Package net.ontopia.topicmaps.viz
Class VizigatorUser
- java.lang.Object
-
- java.util.TimerTask
-
- net.ontopia.topicmaps.viz.VizigatorUser
-
-
Field Summary
Fields Modifier and Type Field Description protected booleanenabledprotected static intEXPAND_NODEprotected intexpandNodeCountprotected static intFOCUS_NODEprotected intfocusNodeCountprotected static intHIDE_EDGEprotected static intHIDE_NODEprotected inthideEdgeCountprotected inthideFocusNodeCountprotected inthideNodeCountstatic booleanINITIALLY_ENABLEDprotected static intREDOprotected intredoCountprotected intrunCountprotected static intUNDOprotected intundoCount
-
Constructor Summary
Constructors Constructor Description VizigatorUser(VizController controller, long millis)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleangetEnabled()protected ObjectpickRandom(Collection items)protected TMAbstractNodepickRandomNode()protected TMAbstractNodepickRandomNode(TopicIF type)protected TopicIFpickRandomType()voidrun()This method is called on schedule by the timer.voidsetEnabled(boolean enabled)Enables/disables this motion killer.protected voiduseVizigator()-
Methods inherited from class java.util.TimerTask
cancel, scheduledExecutionTime
-
-
-
-
Field Detail
-
INITIALLY_ENABLED
public static final boolean INITIALLY_ENABLED
- See Also:
- Constant Field Values
-
EXPAND_NODE
protected static final int EXPAND_NODE
- See Also:
- Constant Field Values
-
FOCUS_NODE
protected static final int FOCUS_NODE
- See Also:
- Constant Field Values
-
HIDE_NODE
protected static final int HIDE_NODE
- See Also:
- Constant Field Values
-
HIDE_EDGE
protected static final int HIDE_EDGE
- See Also:
- Constant Field Values
-
UNDO
protected static final int UNDO
- See Also:
- Constant Field Values
-
REDO
protected static final int REDO
- See Also:
- Constant Field Values
-
runCount
protected int runCount
-
hideNodeCount
protected int hideNodeCount
-
hideFocusNodeCount
protected int hideFocusNodeCount
-
hideEdgeCount
protected int hideEdgeCount
-
focusNodeCount
protected int focusNodeCount
-
expandNodeCount
protected int expandNodeCount
-
undoCount
protected int undoCount
-
redoCount
protected int redoCount
-
enabled
protected boolean enabled
-
-
Constructor Detail
-
VizigatorUser
public VizigatorUser(VizController controller, long millis)
-
-
Method Detail
-
run
public void run()
This method is called on schedule by the timer.
-
useVizigator
protected void useVizigator()
-
pickRandomNode
protected TMAbstractNode pickRandomNode()
-
pickRandom
protected Object pickRandom(Collection items)
-
pickRandomType
protected TopicIF pickRandomType()
-
pickRandomNode
protected TMAbstractNode pickRandomNode(TopicIF type)
-
setEnabled
public void setEnabled(boolean enabled)
Enables/disables this motion killer. Note: VizPanel uses the value of enabled to build menus, so this method should only be changed (indirectly) from there.
-
getEnabled
public boolean getEnabled()
-
-