Package diva.graph
Interface NodeController
-
- All Known Implementing Classes:
ActorController
,ActorInstanceController
,AttributeController
,AttributeInOntologyController
,AttributeWithIconController
,BasicNodeController
,ChicController
,ClassDefinitionController
,ConceptController
,DependencyHighlighter.DependencyController
,ExternalIOPortController
,HierarchicalModeController
,HierarchicalStateController
,IconController
,IOPortController
,LocatableNodeController
,MatchResultViewer.MatchResultActorController
,MatchResultViewer.MatchResultExternalPortController
,MatchResultViewer.MatchResultPortController
,MatchResultViewer.MatchResultRelationController
,MatchResultViewer.MatchResultStateController
,MoMLModelAttributeController
,NamedObjController
,OntologyDisplayActions.HighlighterController
,OntologyEntityController
,ParameterizedNodeController
,ProductLatticeOntologySolverDisplayActions.ProductLatticeHighlighterController
,RelationController
,ResizableAttributeControllerFactory.ResizeAttributeController
,StateController
,StateMatcherController
,TransformationAttributeController
,TransformationEditor.TransformationActorController
,TransformationEditor.TransformationExternalPortController
,TransformationEditor.TransformationPortController
,TransformationEditor.TransformationRelationController
,TransformationEditor.TransformationStateController
,TransformEventController
public interface NodeController
Specifies the interface for objects that manage creation of and interaction with graph nodes. GraphControllers contain one or more instances of NodeController, typically one for each type of node.- Version:
- $Id$
- Author:
- Steve Neuendorffer
- Pt.AcceptedRating:
- Red
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void
addNode(java.lang.Object node)
Given a node, add it to this graph editor and perform a layout on the new node.void
addNode(java.lang.Object node, double x, double y)
Add the node to this graph editor and render it at the given location.void
addNode(java.lang.Object node, java.lang.Object parent)
Add the node to this graph editor, inside the given parent node and place it where convenientvoid
addNode(java.lang.Object node, java.lang.Object parent, double x, double y)
Add the node to this graph editor, inside the given parent node and render it at the given location relative to its parent.void
clearNode(java.lang.Object node)
Remove the figure for the given node.Figure
drawNode(java.lang.Object node)
Render the given node and add the resulting figure to the foreground layer of the graph pane.Figure
drawNode(java.lang.Object node, java.lang.Object parent)
Render the given node and add the resulting figure to the given node's figure, which is assumed to be a CompositeFigure in the controller's graph pane.GraphController
getController()
Return the graph controller containing this controller.Interactor
getNodeInteractor()
Return the node interactor associated with this controller.NodeRenderer
getNodeRenderer()
Return the node renderer associated with this controller.void
removeNode(java.lang.Object node)
Remove the node.void
setNodeInteractor(Interactor interactor)
Set the node interactor for this controllervoid
setNodeRenderer(NodeRenderer renderer)
Set the node renderer for this controller
-
-
-
Method Detail
-
addNode
void addNode(java.lang.Object node)
Given a node, add it to this graph editor and perform a layout on the new node.
-
addNode
void addNode(java.lang.Object node, double x, double y)
Add the node to this graph editor and render it at the given location.
-
addNode
void addNode(java.lang.Object node, java.lang.Object parent)
Add the node to this graph editor, inside the given parent node and place it where convenient
-
addNode
void addNode(java.lang.Object node, java.lang.Object parent, double x, double y)
Add the node to this graph editor, inside the given parent node and render it at the given location relative to its parent.
-
clearNode
void clearNode(java.lang.Object node)
Remove the figure for the given node.
-
drawNode
Figure drawNode(java.lang.Object node)
Render the given node and add the resulting figure to the foreground layer of the graph pane. If the node was previously rendered, then infer the new location of the figure from the old.
-
drawNode
Figure drawNode(java.lang.Object node, java.lang.Object parent)
Render the given node and add the resulting figure to the given node's figure, which is assumed to be a CompositeFigure in the controller's graph pane.
-
getController
GraphController getController()
Return the graph controller containing this controller.
-
getNodeInteractor
Interactor getNodeInteractor()
Return the node interactor associated with this controller.
-
getNodeRenderer
NodeRenderer getNodeRenderer()
Return the node renderer associated with this controller.
-
removeNode
void removeNode(java.lang.Object node)
Remove the node.
-
setNodeInteractor
void setNodeInteractor(Interactor interactor)
Set the node interactor for this controller
-
setNodeRenderer
void setNodeRenderer(NodeRenderer renderer)
Set the node renderer for this controller
-
-