java.lang.Object
de.grogra.graph.impl.Edge
de.grogra.graph.impl.Node
de.grogra.imp.edit.ToolRoot
de.grogra.imp2d.edit.ToolRoot2D
de.grogra.imp2d.edit.EditTool
- All Implemented Interfaces:
AWTDrawable
,Transformation
,Pickable
,Manageable
,PersistenceCapable
,Shareable
,Command
,UserFields
,XObject
,Disposable
,EventListener
,Map
,Serializable
,EventListener
- See Also:
-
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.EventListener
EventListener.Bicast, EventListener.Multicaster
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final Node.NType
static final String
static final int
static final int
final Pool
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, MAX_RESOLUTION, MIME_TYPE, MIN_RESOLUTION, MIN_UNUSED_SPECIAL_OF_SOURCE, MIN_UNUSED_SPECIAL_OF_TARGET, name$FIELD, RESOLUTION_BIT, RESOLUTION_MASK, resolution$FIELD, USED_BITS
Fields inherited from interface de.grogra.util.Map
DEFAULT_VALUE, EMPTY_MAP
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected void
calculateTargetTransformation
(Matrix3d t, Matrix3d parent) void
draw
(Object object, boolean asNode, AWTCanvas2D canvas, Matrix3d transformation, int state) static void
drawHandle
(AWTCanvas2D c, Matrix3d t, double x, double y) void
This method is invoked on registered event listeners whenevent
has occured.Returns a name which can be used in the graphical user interface to represent this command.protected Node.NType
This method returns theNode.NType
which describes the managed fields of the class of this node.int
getTool()
protected boolean
initialize
(Tool tool) Initializes this tool root.protected Node
This method returns a new instance of the class of this node.void
boolean
pickHandle
(Matrix3d transformation, PickList list, double x, double y, int id) void
Performs the actions of this command.void
void
setPickId
(int pickId) void
Methods inherited from class de.grogra.imp2d.edit.ToolRoot2D
attributeChanged, dispose, getParentTransformation, getTargetTransformation, postTransform, preTransform
Methods inherited from class de.grogra.imp.edit.ToolRoot
executeWithWriteLock, getToolTarget, isTargetNode
Methods inherited from class de.grogra.graph.impl.Node
addEdgeBitsTo, addReference, appendBranchNode, appendBranchNode, appendReferencesTo, clone, clone, cloneGraph, dump, dumpTree, dup, dupFrom, dupnew, 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, getIgnored, getIndex, getInstantiator, getInt, getLayer, getLong, getManageableType, getName, getNeighbor, getNext, getNType, getObject, getOrCreateEdgeTo, getOrNull, getPersistenceManager, getPredecessor, getProvider, getResolution, 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, paramString, removeAll, removeEdgeBitsTo, removeFromChain, removeFromChain, removeReference, setBranch, setBranch, setExtentIndex, setGraphForDeserialization, setIgnored, setLayer, setMark, setName, setResolution, setSuccessor, setSuccessor, specialEdgeAdded, specialEdgeRefModified, specialEdgeRemoved, toString, writeReplace
Methods inherited from class de.grogra.graph.impl.Edge
addEdgeBits, getBitMark, getEdgeBits, getEdgeKeys, 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.persistence.PersistenceCapable
getBitMark, getObjectMark, setBitMark, setObjectMark
-
Field Details
-
PICK_NOTHING
public static final int PICK_NOTHING- See Also:
-
PICK_CENTER
public static final int PICK_CENTER- See Also:
-
PATH
- See Also:
-
pool
-
$TYPE
-
-
Constructor Details
-
EditTool
public EditTool()
-
-
Method Details
-
getNTypeImpl
Description copied from class:Node
This method returns theNode.NType
which describes the managed fields of the class of this node. This method has to be implemented in every concrete subclass.- Overrides:
getNTypeImpl
in classNode
- Returns:
- type describing the managed fields of the class of this node
-
newInstance
Description copied from class:Node
This method returns a new instance of the class of this node. This method has to be implemented in every concrete subclass.- Overrides:
newInstance
in classNode
- Returns:
- new instance of class of this node
-
getEditable
-
getTool
-
getGraphState
-
initialize
Description copied from class:ToolRoot
Initializes this tool root. This method initializes the fieldToolRoot.tool
with the giventool
.- Overrides:
initialize
in classToolRoot2D
- Parameters:
tool
- the tool to which this tool root is associated- Returns:
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).
-
calculateTargetTransformation
- Specified by:
calculateTargetTransformation
in classToolRoot2D
-
eventOccured
Description copied from interface:EventListener
This method is invoked on registered event listeners whenevent
has occured. This general listener interface does not restrict the possible kinds of events. Concrete sources of events should specify which events they may fire.- Specified by:
eventOccured
in interfaceEventListener
- Overrides:
eventOccured
in classToolRoot2D
- Parameters:
e
- an event
-
getCommandName
Description copied from interface:Command
Returns a name which can be used in the graphical user interface to represent this command.- Specified by:
getCommandName
in interfaceCommand
- Returns:
- this commands's name
-
run
Description copied from interface:Command
Performs the actions of this command. This method is invoked by theJobManager
after the command has been submitted to the job manager by one ofexecute
,runAt
, orrunLater
-methods. The argumentsinfo
andcontext
are the arguments which have been provided as arguments to theJobManager
-methods. -
pick
-
setPickId
public void setPickId(int pickId) -
getPickId
public int getPickId() -
setObject
-
getObject
-
draw
public void draw(Object object, boolean asNode, AWTCanvas2D canvas, Matrix3d transformation, int state) - Specified by:
draw
in interfaceAWTDrawable
-
pickHandle
-
drawHandle
-
setTransform
-