| java.lang.Object org.jgraph.graph.BasicMarqueeHandler com.jgraph.editor.JGraphEditorTool
All known Subclasses: com.jgraph.pad.tool.JGraphpadVertexTool,
JGraphEditorTool | public class JGraphEditorTool extends BasicMarqueeHandler (Code) | | 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. |
isAlwaysActive | protected boolean isAlwaysActive(Code) | | Specifies whether this tool is always activated. Default is false. A
value of true means the tool will always be called by the toolbox
redirector if the tool is selected.
|
JGraphEditorTool | public JGraphEditorTool(String name)(Code) | | Constructs a tool with the specified name.
Parameters: name - The name of the tool to be created. |
JGraphEditorTool | public JGraphEditorTool(String name, boolean isAlwaysActive)(Code) | | Constructs a tool with the specified name.
Parameters: name - The name of the tool to be created. |
getName | public String getName()(Code) | | Returns the name of the tool.
Returns the name. |
setAlwaysActive | public void setAlwaysActive(boolean isAlwaysActive)(Code) | | Sets whether the tool is always active.
Parameters: isAlwaysActive - The isAlwaysActive to set. |
setName | public void setName(String name)(Code) | | Sets the name of the tool.
Parameters: name - The name to set. |
|
|