|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object de.grogra.graph.impl.Edge de.grogra.graph.impl.Node de.grogra.imp.edit.ToolRoot
public abstract class ToolRoot
Instances of this class are used as root nodes of tool graphs for the interactive manipulation of objects in two- or three-dimensional views.
Nested Class Summary |
---|
Nested classes/interfaces inherited from class de.grogra.graph.impl.Node |
---|
Node.AccessorBridge, Node.FieldAttributeAccessor, Node.NType |
Nested classes/interfaces inherited from interface de.grogra.util.Map |
---|
Map.Chain |
Field Summary | |
---|---|
static Node.NType |
$TYPE
|
protected Tool |
tool
The tool to which this tool node is associated. |
Fields inherited from class de.grogra.graph.impl.Node |
---|
ADDITIONAL_FIELDS, bits, DELETED, EXTENT_BIT, EXTENT_MASK, extentIndex$FIELD, extentTail$FIELD, HAS_OBSERVERS, IS_INTERPRETIVE, isInterpretive$FIELD, LAST_EXTENT_INDEX, layer$FIELD, MARK, mark$FIELD, MIME_TYPE, MIN_UNUSED_SPECIAL_OF_SOURCE, MIN_UNUSED_SPECIAL_OF_TARGET, name$FIELD, USED_BITS |
Fields inherited from interface de.grogra.util.Map |
---|
DEFAULT_VALUE, EMPTY_MAP |
Constructor Summary | |
---|---|
ToolRoot()
|
Method Summary | |
---|---|
protected abstract void |
attributeChanged(Attribute[] b)
This method is invoked to notify the tool root about modifications of attributes of the tool target. |
void |
executeWithWriteLock(Command command,
EditEvent event)
Executes the given command in the main thread
of the workbench and with a write-lock on the graph. |
java.lang.Object |
getToolTarget()
Returns the target object of the tool. |
protected boolean |
initialize(Tool tool)
Initializes this tool root. |
boolean |
isTargetNode()
Returns true iff the target object of the tool is a node. |
Methods inherited from class de.grogra.graph.impl.Edge |
---|
addEdgeBits, getBitMark, getEdgeBits, getObjectMark, getSpecialEdgeDescriptor, parseEdgeKeys, remove, removeEdgeBits, setBitMark, setEdgeBits, setObjectMark, testEdgeBits |
Methods inherited from class java.lang.Object |
---|
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Methods inherited from interface de.grogra.util.Disposable |
---|
dispose |
Methods inherited from interface de.grogra.persistence.PersistenceCapable |
---|
getBitMark, getObjectMark, setBitMark, setObjectMark |
Field Detail |
---|
public static final Node.NType $TYPE
protected Tool tool
Constructor Detail |
---|
public ToolRoot()
Method Detail |
---|
protected abstract void attributeChanged(Attribute[] b)
b
- an array of attributes which have changedpublic void executeWithWriteLock(Command command, EditEvent event)
command
in the main thread
of the workbench and with a write-lock on the graph.
The context
-argument of the command's run
-method
will be the given event
, the arg
-argument
will be this
.
command
- a command to be executedevent
- the event, it is used as Context
public java.lang.Object getToolTarget()
Tool.getObject()
protected boolean initialize(Tool tool)
tool
with the given tool
.
tool
- the tool to which this tool root is associated
true
if this tool root actually shall be used
for the tool, false
if it shall not be used (e.g., if
the actual tool target cannot be manipulated by the tool graph
of this tool root).public boolean isTargetNode()
true
iff the target object of the tool is a node.
Tool.isNode()
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |