java.lang.Object
de.grogra.graph.GraphBase
de.grogra.graph.GraphFilter
de.grogra.graph.AttributeOverwritingFilter
de.grogra.imp2d.graphs.TopologyGraph
- All Implemented Interfaces:
AttributeChangeListener,ChangeBoundaryListener,EdgeChangeListener,Graph,EventListener,Lockable,EventListener
-
Nested Class Summary
Nested classes/interfaces inherited from class de.grogra.graph.GraphFilter
GraphFilter.AccessorBridge, GraphFilter.StateNested classes/interfaces inherited from interface de.grogra.util.EventListener
EventListener.Bicast, EventListener.MulticasterNested classes/interfaces inherited from interface de.grogra.util.Lockable
Lockable.DeadLockException -
Field Summary
Fields inherited from class de.grogra.graph.GraphFilter
sourceFields inherited from interface de.grogra.graph.ChangeBoundaryListener
ATTRIBUTE_PRIORITY, TOPOLOGY_PRIORITY, UPDATE_PRIORITYFields inherited from interface de.grogra.graph.Graph
BRANCH_EDGE, CONTAINMENT_EDGE, CONTAINMENT_END_EDGE, EDGENODE_IN_EDGE, EDGENODE_OUT_EDGE, ELLIPSE_SYMBOL, IGNORED_EDGE, INSTANTIATION_EDGE, MAIN_GRAPH, MARK_EDGE, MIN_NORMAL_BIT_INDEX, MIN_UNUSED_EDGE, MIN_UNUSED_EDGE_BIT, NOTIFIES_EDGE, PERSISTENT, PERSISTENT_DELETED, RECTANGLE_SYMBOL, REFINEMENT_EDGE, RHOMBUS_SYMBOL, ROUND_RECTANGLE_SYMBOL, SPECIAL_EDGE_MASK, SPECIAL_EDGE_OF_SOURCE_BIT, STD_EDGE_5, STD_EDGE_6, SUCCESSOR_EDGE, TRANSIENT -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic voidcollapseAll(Item item, Object info, Context ctx) Method called through GUI.voidcollapseSome(Node root, int maxChildren) protected GraphStatevoideventOccured(EventObject event) This method is invoked on registered event listeners wheneventhas occured.static voidMethod called through GUI.protected booleangetBoolean(Object object, GraphFilter.AccessorBridge accessor, GraphState gs) This method has to be implemented by subclasses in order to obtain the value of an additional attribute which is defined by anGraphFilter.AccessorBridge.protected ObjectDatagetData(Object object, boolean asNode, GraphState gs) getDependent(Object object, boolean asNode, Attribute a) Returns the set of attributes whose values depend on the given attributeafor the givenobject.protected Attribute[]getDependentOfSource(Object object, boolean asNode, Attribute a) intgetEdgeBits(Object edge) Returns the edge bits of an edge.protected floatgetFloat(Object object, GraphFilter.AccessorBridge accessor, GraphState gs) This method has to be implemented by subclasses in order to obtain the value of an additional attribute which is defined by anGraphFilter.AccessorBridge.protected intgetInt(Object object, GraphFilter.AccessorBridge accessor, GraphState gs) This method has to be implemented by subclasses in order to obtain the value of an additional attribute which is defined by anGraphFilter.AccessorBridge.intgetLifeCycleState(Object object, boolean asNode) Returns the life cycle state of the given object as part of this graph.protected ObjectgetObject(Object object, GraphFilter.AccessorBridge accessor, Object placeIn, GraphState gs) This method has to be implemented by subclasses in order to obtain the value of an additional attribute which is defined by anGraphFilter.AccessorBridge.Defines the derived attribute which has as value the parent object.Returns the root node for the given root key.Defines the pattern used for the construction of this graph's tree.protected voidinitEdgeAccessors(AccessorMap edgeAccessors) Additional (possibly overwritten) attributes for edges have to be declared in subclasses by overriding this method.protected voidinitNodeAccessors(AccessorMap nodeAccessors) Additional (possibly overwritten) attributes for nodes have to be declared in subclasses by overriding this method.static voidprotected booleanisWritable(Object object, GraphFilter.AccessorBridge accessor, GraphState gs) GraphFilter.AccessorBridgeforwards the invocation ofAttributeAccessor.isWritable(Object, GraphState)to this method.protected ObjectsetObject(Object object, GraphFilter.AccessorBridge accessor, Object value, GraphState gs) This method has to be implemented by subclasses in order to set value of an additional writable attribute which is defined by anGraphFilter.AccessorBridge.Methods inherited from class de.grogra.graph.AttributeOverwritingFilter
accept, getAccessor, getAttributes, getByte, getChar, getDouble, getLong, getShort, initAttributeOverwritingFilter, setBoolean, setByte, setChar, setDouble, setFloat, setInt, setLong, setShortMethods inherited from class de.grogra.graph.GraphFilter
accept, attributeChanged, beginChange, createBooleanMap, createMainState, createObjectMap, edgeChanged, endChange, getColor, getDescription, getFirstEdge, getId, getInstantiator, getName, getNextEdge, getNodeForId, getObjectForName, getPriority, getRootKeys, getSourceNode, getSourceState, getSpecialEdgeDescriptors, getStamp, getSymbol, getTargetNodeMethods inherited from class de.grogra.graph.GraphBase
addAttributeChangeListener, addAttributeChangeListener, addChangeBoundaryListener, addEdgeChangeListener, addEdgeChangeListener, execute, execute, executeForcedly, executeForcedly, getMainState, getMaxWaitingTime, getQueueLength, getStateMap, init, isLocked, removeAttributeChangeListener, removeAttributeChangeListener, removeChangeBoundaryListener, removeEdgeChangeListener, removeEdgeChangeListener
-
Constructor Details
-
TopologyGraph
-
-
Method Details
-
initNodes
-
initNodeAccessors
Description copied from class:AttributeOverwritingFilterAdditional (possibly overwritten) attributes for nodes have to be declared in subclasses by overriding this method. For each overwritten attribute, a suitable accessor has to be added toaccessors. Instances ofGraphFilter.AccessorBridgemay be used for this purpose.- Overrides:
initNodeAccessorsin classAttributeOverwritingFilter- Parameters:
nodeAccessors- set of node accessors
-
initEdgeAccessors
Description copied from class:AttributeOverwritingFilterAdditional (possibly overwritten) attributes for edges have to be declared in subclasses by overriding this method. For each overwritten attribute, a suitable accessor has to be added toaccessors. Instances ofGraphFilter.AccessorBridgemay be used for this purpose.- Overrides:
initEdgeAccessorsin classAttributeOverwritingFilter- Parameters:
edgeAccessors- set of node accessors
-
getDependent
Description copied from interface:GraphReturns the set of attributes whose values depend on the given attributeafor the givenobject.- Specified by:
getDependentin interfaceGraph- Overrides:
getDependentin classGraphFilter- Parameters:
object- the objectasNode-trueifobjectis a node,falseifobjectis an edgea- the attribute- Returns:
- the set of dependent attributes
-
getDependentOfSource
- Overrides:
getDependentOfSourcein classGraphFilter
-
isWritable
Description copied from class:GraphFilterGraphFilter.AccessorBridgeforwards the invocation ofAttributeAccessor.isWritable(Object, GraphState)to this method. This method has to be overridden by subclasses which declare a writable attribute by an accessor bridge.- Overrides:
isWritablein classGraphFilter- Parameters:
object- an objectaccessor- an accessor bridgegs- current graph state- Returns:
trueiffaccessorrepresents a writable attribute
-
createState
- Overrides:
createStatein classGraphFilter
-
getObject
protected Object getObject(Object object, GraphFilter.AccessorBridge accessor, Object placeIn, GraphState gs) Description copied from class:AttributeOverwritingFilterThis method has to be implemented by subclasses in order to obtain the value of an additional attribute which is defined by anGraphFilter.AccessorBridge. The default implementation returns the value ofaccessor's attribute in the source graph.- Overrides:
getObjectin classAttributeOverwritingFilter- Parameters:
object- the objectaccessor- the accessor bridge which invokes this methodplaceIn- an instance for the result may be provided by the callergs- current graph state- Returns:
- value of the accessor's attribute for the object
-
getInt
Description copied from class:AttributeOverwritingFilterThis method has to be implemented by subclasses in order to obtain the value of an additional attribute which is defined by anGraphFilter.AccessorBridge. The default implementation returns the value ofaccessor's attribute in the source graph.- Overrides:
getIntin classAttributeOverwritingFilter- Parameters:
object- the objectaccessor- the accessor bridge which invokes this methodgs- current graph state- Returns:
- value of the accessor's attribute for the object
-
getFloat
Description copied from class:AttributeOverwritingFilterThis method has to be implemented by subclasses in order to obtain the value of an additional attribute which is defined by anGraphFilter.AccessorBridge. The default implementation returns the value ofaccessor's attribute in the source graph.- Overrides:
getFloatin classAttributeOverwritingFilter- Parameters:
object- the objectaccessor- the accessor bridge which invokes this methodgs- current graph state- Returns:
- value of the accessor's attribute for the object
-
getBoolean
Description copied from class:AttributeOverwritingFilterThis method has to be implemented by subclasses in order to obtain the value of an additional attribute which is defined by anGraphFilter.AccessorBridge. The default implementation returns the value ofaccessor's attribute in the source graph.- Overrides:
getBooleanin classAttributeOverwritingFilter- Parameters:
object- the objectaccessor- the accessor bridge which invokes this methodgs- current graph state- Returns:
- value of the accessor's attribute for the object
-
getData
-
setObject
protected Object setObject(Object object, GraphFilter.AccessorBridge accessor, Object value, GraphState gs) Description copied from class:AttributeOverwritingFilterThis method has to be implemented by subclasses in order to set value of an additional writable attribute which is defined by anGraphFilter.AccessorBridge. The default implementation sets the value ofaccessor's attribute in the source graph.- Overrides:
setObjectin classAttributeOverwritingFilter- Parameters:
object- the objectaccessor- the accessor bridge which invokes this methodvalue- the new value for the attributegs- current graph state- Returns:
- actual new value of the attribute
-
getEdgeBits
Description copied from interface:GraphReturns the edge bits of an edge.- Specified by:
getEdgeBitsin interfaceGraph- Overrides:
getEdgeBitsin classGraphFilter- Parameters:
edge- the edge- Returns:
- the edge's edge bits
- See Also:
-
getParentAttribute
Description copied from interface:GraphDefines the derived attribute which has as value the parent object.- Specified by:
getParentAttributein interfaceGraph- Overrides:
getParentAttributein classGraphFilter- Returns:
- the parent attribute
- See Also:
-
getTreePattern
Description copied from interface:GraphDefines the pattern used for the construction of this graph's tree.- Specified by:
getTreePatternin interfaceGraph- Overrides:
getTreePatternin classGraphFilter- Returns:
- an edge pattern
- See Also:
-
getRoot
Description copied from interface:GraphReturns the root node for the given root key.- Specified by:
getRootin interfaceGraph- Overrides:
getRootin classGraphFilter- Parameters:
key- a root key, one ofGraph.getRootKeys()- Returns:
- the root node of the graph identified by
key, ornullif no such root node exists - See Also:
-
getLifeCycleState
Description copied from interface:GraphReturns the life cycle state of the given object as part of this graph.- Specified by:
getLifeCycleStatein interfaceGraph- Overrides:
getLifeCycleStatein classGraphFilter- Parameters:
object- the object to testasNode-trueifobjectis a node,falseifobjectis an edge- Returns:
- life cycle state, one of
Graph.PERSISTENT,Graph.PERSISTENT_DELETED,Graph.TRANSIENT
-
eventOccured
Description copied from interface:EventListenerThis method is invoked on registered event listeners wheneventhas 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:
eventOccuredin interfaceEventListener- Parameters:
event- an event
-
collapseSome
-
collapseAll
Method called through GUI. Set all nodes except root node to collapse list.- Parameters:
item-info-ctx-
-
expandAll
Method called through GUI. Remove all nodes from collapse list.- Parameters:
item-info-ctx-
-