|
JGraphpad Pro
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectorg.jgraph.graph.BasicMarqueeHandler
com.jgraph.editor.JGraphEditorTool
The base class for all tools in a JGraph editor kit. Tools are used to temporary set a graphs marquee handler, ie. to take over all interactions on a graph. This is typically used to insert new cells in marquee-style (as opposed to dnd-style used in the library).
| Field Summary | |
protected boolean |
isAlwaysActive
Specifies whether this tool is always activated. |
protected String |
name
Holds the name. |
| Fields inherited from class org.jgraph.graph.BasicMarqueeHandler |
currentPoint, marqueeBounds, previousCursor, startPoint |
| Constructor Summary | |
JGraphEditorTool(String name)
Constructs a tool with the specified name. |
|
JGraphEditorTool(String name,
boolean isAlwaysActive)
Constructs a tool with the specified name. |
|
| Method Summary | |
String |
getName()
Returns the name of the tool. |
boolean |
isAlwaysActive()
Returns true if this tool is always active, eg if it should return true whenever BasicMarqueeHandler.isForceMarqueeEvent(MouseEvent) is called. |
void |
setAlwaysActive(boolean isAlwaysActive)
Sets whether the tool is always active. |
void |
setName(String name)
Sets the name of the tool. |
| Methods inherited from class org.jgraph.graph.BasicMarqueeHandler |
getCurrentPoint, getGraphForEvent, getMarqueeBounds, getPreviousCursor, getStartPoint, handleMarqueeEvent, isForceMarqueeEvent, isMarqueeTriggerEvent, mouseDragged, mouseMoved, mousePressed, mouseReleased, overlay, paint, processMouseDraggedEvent, setCurrentPoint, setMarqueeBounds, setPreviousCursor, setStartPoint |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
protected String name
protected boolean isAlwaysActive
| Constructor Detail |
public JGraphEditorTool(String name)
name - The name of the tool to be created.
public JGraphEditorTool(String name,
boolean isAlwaysActive)
name - The name of the tool to be created.| Method Detail |
public String getName()
public void setName(String name)
name - The name to set.public boolean isAlwaysActive()
BasicMarqueeHandler.isForceMarqueeEvent(MouseEvent) is called.
public void setAlwaysActive(boolean isAlwaysActive)
isAlwaysActive - The isAlwaysActive to set.
|
JGraphpad Pro
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||