de.grogra.imp.edit
public abstract class ToolRoot extends Node implements Disposable
Node.AccessorBridge, Node.FieldAttributeAccessor, Node.NType| Modifier and Type | Field and Description |
|---|---|
static Node.NType |
$TYPE |
protected Tool |
tool
The tool to which this tool node is associated.
|
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_BITSDEFAULT_VALUE, EMPTY_MAP| Constructor and Description |
|---|
ToolRoot() |
| Modifier and Type | Method and Description |
|---|---|
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. |
addEdgeBitsTo, addReference, appendBranchNode, appendBranchNode, appendReferencesTo, clone, clone, cloneGraph, dump, dumpTree, dup, dupUnmanagedFields, edgeChanged, fieldModified, findAdjacent, findRefinementType, get, getAccessor, getAccessor, getAttributes, getAxisParent, getBoolean, getBranch, getBranchLength, getBranchNode, getBranchTail, getByte, getChar, getCommonAncestor, getCurrentGraphState, getDirectChildCount, getDouble, getEdgeAttributeAccessor, getEdgeAttributes, getEdgeBitsTo, getEdgeTo, getExtentIndex, getFirst, getFirstEdge, getFloat, getGraph, getId, getIndex, getInstantiator, getInt, getLayer, getLong, getManageableType, getName, getNeighbor, getNext, getNType, getNTypeImpl, getObject, getOrCreateEdgeTo, getOrNull, getPersistenceManager, getPredecessor, getProvider, getShort, getSource, getStamp, getSuccessor, getSymbol, getSymbolColor, getTarget, getTransaction, getUserField, getUserFieldCount, getXClass, getXData, hasName, initProvider, initXClass, insertBranchNode, insertBranchNode, instantiateGraph, isAncestorOf, isDirection, isEncoarseOf, isManagingInstance, isMarked, isRoot, isSource, isTarget, manageableReadResolve, manageableWriteReplace, newInstance, paramString, removeAll, removeEdgeBitsTo, removeFromChain, removeFromChain, removeReference, setBranch, setBranch, setExtentIndex, setGraphForDeserialization, setLayer, setMark, setName, setSuccessor, setSuccessor, specialEdgeAdded, specialEdgeRefModified, specialEdgeRemoved, toString, writeReplaceaddEdgeBits, getBitMark, getEdgeBits, getObjectMark, getSpecialEdgeDescriptor, parseEdgeKeys, remove, removeEdgeBits, setBitMark, setEdgeBits, setObjectMark, testEdgeBitsequals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitdisposegetBitMark, getObjectMark, setBitMark, setObjectMarkpublic static final Node.NType $TYPE
protected Tool tool
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 Contextpublic 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 associatedtrue 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()