|
org.netbeans.api.visual 2.2 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.netbeans.api.visual.widget.Widget
org.netbeans.api.visual.widget.Scene
org.netbeans.api.visual.model.ObjectScene
org.netbeans.api.visual.graph.GraphPinScene<String,String,String>
org.netbeans.api.visual.vmd.VMDGraphScene
public class VMDGraphScene
This class represents a GraphPinScene for the VMD visualization style. Nodes, edges and pins are represented using String class. The visualization is done by: VMDNodeWidget for nodes, VMDPinWidget for pins, ConnectionWidget fro edges.
The scene has 4 layers: background, main, connection, upper.
The scene has following actions: zoom, panning, rectangular selection.
Nested Class Summary |
---|
Nested classes/interfaces inherited from class org.netbeans.api.visual.graph.GraphPinScene |
---|
GraphPinScene.StringGraph |
Nested classes/interfaces inherited from class org.netbeans.api.visual.widget.Scene |
---|
Scene.SceneListener |
Nested classes/interfaces inherited from class org.netbeans.api.visual.widget.Widget |
---|
Widget.Dependency |
Field Summary | |
---|---|
static String |
PIN_ID_DEFAULT_SUFFIX
|
Constructor Summary | |
---|---|
VMDGraphScene()
Creates a VMD graph scene. |
Method Summary | |
---|---|
protected void |
attachEdgeSourceAnchor(String edge,
String oldSourcePin,
String sourcePin)
Attaches an anchor of a source pin an edge. |
protected void |
attachEdgeTargetAnchor(String edge,
String oldTargetPin,
String targetPin)
Attaches an anchor of a target pin an edge. |
protected Widget |
attachEdgeWidget(String edge)
Implements attaching a widget to an edge. |
protected Widget |
attachNodeWidget(String node)
Implements attaching a widget to a node. |
protected Widget |
attachPinWidget(String node,
String pin)
Implements attaching a widget to a pin. |
void |
layoutScene()
Invokes layout of the scene. |
Methods inherited from class org.netbeans.api.visual.graph.GraphPinScene |
---|
addEdge, addNode, addPin, detachEdgeWidget, detachNodeWidget, detachPinWidget, findEdgesBetween, findPinEdges, getEdges, getEdgeSource, getEdgeTarget, getNodePins, getNodes, getPinNode, getPins, isEdge, isNode, isPin, notifyEdgeAdded, notifyNodeAdded, notifyPinAdded, removeEdge, removeNode, removeNodeWithEdges, removePin, removePinWithEdges, setEdgeSource, setEdgeTarget |
Methods inherited from class org.netbeans.api.visual.model.ObjectScene |
---|
addObject, addObjectSceneListener, createObjectHoverAction, createSelectAction, findObject, findStoredObject, findWidget, findWidgets, getFocusedObject, getHighlightedObjects, getHoveredObject, getIdentityCode, getObjects, getObjectState, getSelectedObjects, isObject, removeObject, removeObjectSceneListener, setFocusedObject, setHighlightedObjects, setHoveredObject, setSelectedObjects, userSelectionSuggested |
Methods inherited from class org.netbeans.api.visual.widget.Scene |
---|
addSceneListener, convertSceneToView, convertSceneToView, convertViewToScene, createSatelliteView, createView, createWidgetHoverAction, getActiveTool, getDefaultFont, getFocusedWidget, getGraphics, getKeyEventProcessingType, getLookFeel, getMaximumBounds, getPriorActions, getSceneAnimator, getView, getZoomFactor, isRepaintRequiredForRevalidating, isValidated, paint, removeSceneListener, setActiveTool, setFocusedWidget, setKeyEventProcessingType, setLookFeel, setMaximumBounds, setZoomFactor, validate |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final String PIN_ID_DEFAULT_SUFFIX
Constructor Detail |
---|
public VMDGraphScene()
Method Detail |
---|
protected Widget attachNodeWidget(String node)
attachNodeWidget
in class GraphPinScene<String,String,String>
node
- the node
protected Widget attachPinWidget(String node, String pin)
attachPinWidget
in class GraphPinScene<String,String,String>
node
- the nodepin
- the pin
protected Widget attachEdgeWidget(String edge)
attachEdgeWidget
in class GraphPinScene<String,String,String>
edge
- the edge
protected void attachEdgeSourceAnchor(String edge, String oldSourcePin, String sourcePin)
attachEdgeSourceAnchor
in class GraphPinScene<String,String,String>
edge
- the edgeoldSourcePin
- the old source pinsourcePin
- the new source pinprotected void attachEdgeTargetAnchor(String edge, String oldTargetPin, String targetPin)
attachEdgeTargetAnchor
in class GraphPinScene<String,String,String>
edge
- the edgeoldTargetPin
- the old target pintargetPin
- the new target pinpublic void layoutScene()
|
org.netbeans.api.visual 2.2 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |