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 boolean
enabled
protected static int
EXPAND_NODE
protected int
expandNodeCount
protected static int
FOCUS_NODE
protected int
focusNodeCount
protected static int
HIDE_EDGE
protected static int
HIDE_NODE
protected int
hideEdgeCount
protected int
hideFocusNodeCount
protected int
hideNodeCount
static boolean
INITIALLY_ENABLED
protected static int
REDO
protected int
redoCount
protected int
runCount
protected static int
UNDO
protected int
undoCount
-
Constructor Summary
Constructors Constructor Description VizigatorUser(VizController controller, long millis)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
getEnabled()
protected Object
pickRandom(Collection items)
protected TMAbstractNode
pickRandomNode()
protected TMAbstractNode
pickRandomNode(TopicIF type)
protected TopicIF
pickRandomType()
void
run()
This method is called on schedule by the timer.void
setEnabled(boolean enabled)
Enables/disables this motion killer.protected void
useVizigator()
-
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()
-
-