public class VMDGraphScene extends GraphPinScene<String,String,String>
The scene has 4 layers: background, main, connection, upper.
The scene has following actions: zoom, panning, rectangular selection.
GraphPinScene.StringGraphScene.SceneListenerWidget.Dependency| Modifier and Type | Field and Description |
|---|---|
static String |
PIN_ID_DEFAULT_SUFFIX |
| Constructor and Description |
|---|
VMDGraphScene()
Creates a VMD graph scene.
|
VMDGraphScene(VMDColorScheme scheme)
Creates a VMD graph scene with a specific color scheme.
|
| Modifier and Type | Method and Description |
|---|---|
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.
|
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, setEdgeTargetaddObject, addObjectSceneListener, createObjectHoverAction, createSelectAction, findObject, findStoredObject, findWidget, findWidgets, getFocusedObject, getHighlightedObjects, getHoveredObject, getIdentityCode, getObjects, getObjectState, getSelectedObjects, isObject, removeObject, removeObjectSceneListener, setFocusedObject, setHighlightedObjects, setHoveredObject, setSelectedObjects, userSelectionSuggestedaddSceneListener, convertSceneToView, convertSceneToView, convertViewToScene, createBirdView, createSatelliteView, createView, createWidgetHoverAction, getActiveTool, getDefaultFont, getFocusedWidget, getGraphics, getInputBindings, getKeyEventProcessingType, getLookFeel, getMaximumBounds, getPriorActions, getResourceTable, getSceneAnimator, getView, getZoomFactor, isRepaintRequiredForRevalidating, isValidated, paint, removeSceneListener, setActiveTool, setFocusedWidget, setKeyEventProcessingType, setLookFeel, setMaximumBounds, setResourceTable, setZoomFactor, validate, validateaddChild, addChild, addChild, addChild, addChildren, addDependency, bringToBack, bringToFront, calculateClientArea, convertLocalToScene, convertLocalToScene, convertSceneToLocal, convertSceneToLocal, createActions, equals, getAccessibleContext, getActions, getActions, getBackground, getBorder, getBounds, getChildConstraint, getChildren, getClientArea, getCursor, getCursorAt, getDependencies, getFont, getForeground, getLayout, getLocation, getLookup, getMaximumSize, getMinimumSize, getParentWidget, getPreferredBounds, getPreferredLocation, getPreferredSize, getScene, getState, getToolTipText, hashCode, isCheckClipping, isEnabled, isHitAt, isOpaque, isPreferredBoundsSet, isVisible, notifyAdded, notifyBackgroundChanged, notifyFontChanged, notifyForegroundChanged, notifyRemoved, notifyStateChanged, paint, paintBackground, paintBorder, paintChildren, paintWidget, removeChild, removeChildren, removeChildren, removeDependency, removeFromParent, repaint, resolveBounds, revalidate, revalidate, setAccessibleContext, setBackground, setBackgroundFromResource, setBorder, setBorder, setCheckClipping, setChildConstraint, setCursor, setEnabled, setFont, setFontFromResource, setForeground, setForegroundFromResource, setLayout, setMaximumSize, setMinimumSize, setOpaque, setPreferredBounds, setPreferredLocation, setPreferredSize, setState, setToolTipText, setVisible, updateResourcespublic static final String PIN_ID_DEFAULT_SUFFIX
public VMDGraphScene()
public VMDGraphScene(VMDColorScheme scheme)
scheme - the color schemeprotected Widget attachNodeWidget(String node)
attachNodeWidget in class GraphPinScene<String,String,String>node - the nodeprotected Widget attachPinWidget(String node, String pin)
attachPinWidget in class GraphPinScene<String,String,String>node - the nodepin - the pinprotected Widget attachEdgeWidget(String edge)
attachEdgeWidget in class GraphPinScene<String,String,String>edge - the edgeprotected 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()
Built on August 24 2014. | Portions Copyright 1997-2014 Sun Microsystems, Inc. All rights reserved.