com.googlecode.sarasvati.visual.common
Class GraphSceneImpl<N,E>

java.lang.Object
  extended by org.netbeans.api.visual.widget.Widget
      extended by org.netbeans.api.visual.widget.Scene
          extended by org.netbeans.api.visual.model.ObjectScene
              extended by org.netbeans.api.visual.graph.GraphScene<N,E>
                  extended by com.googlecode.sarasvati.visual.common.GraphSceneImpl<N,E>
All Implemented Interfaces:
Accessible
Direct Known Subclasses:
SarasvatiGraphScene, SarasvatiProcessScene

public abstract class GraphSceneImpl<N,E>
extends org.netbeans.api.visual.graph.GraphScene<N,E>


Nested Class Summary
 
Nested classes/interfaces inherited from class org.netbeans.api.visual.graph.GraphScene
org.netbeans.api.visual.graph.GraphScene.StringGraph
 
Nested classes/interfaces inherited from class org.netbeans.api.visual.widget.Scene
org.netbeans.api.visual.widget.Scene.SceneListener
 
Nested classes/interfaces inherited from class org.netbeans.api.visual.widget.Widget
org.netbeans.api.visual.widget.Widget.Dependency
 
Field Summary
protected  Map<N,org.netbeans.api.visual.anchor.Anchor> anchorMap
           
protected  org.netbeans.api.visual.widget.LayerWidget connLayer
           
protected  org.netbeans.api.visual.widget.LayerWidget intrLayer
           
protected  org.netbeans.api.visual.widget.LayerWidget mainLayer
           
protected  ShortestPathRouterAdapter router
           
 
Constructor Summary
GraphSceneImpl()
           
 
Method Summary
protected  void attachEdgeSourceAnchor(E edge, N oldSourceNode, N sourceNode)
           
protected  void attachEdgeTargetAnchor(E edge, N oldTargetNode, N targetNode)
           
protected  PathTrackingConnectionWidget attachEdgeWidget(E edge)
           
protected  org.netbeans.api.visual.widget.Widget attachNodeWidget(N node)
           
protected  void detachNodeWidget(N node, org.netbeans.api.visual.widget.Widget widget)
           
 BufferedImage export(StringBuilder buf, Function<String,org.netbeans.api.visual.widget.Widget> hrefMapper, Function<String,org.netbeans.api.visual.widget.Widget> titleMapper)
           
 org.netbeans.api.visual.widget.LayerWidget getConnectionLayer()
           
 void setAdjacentLineSpacing(int spacing)
           
 void setupForExportOnHeadless()
           
protected abstract  org.netbeans.api.visual.widget.Widget widgetForNode(N node)
           
 
Methods inherited from class org.netbeans.api.visual.graph.GraphScene
addEdge, addNode, detachEdgeWidget, findEdgesBetween, findNodeEdges, getEdges, getEdgeSource, getEdgeTarget, getNodes, isEdge, isNode, notifyEdgeAdded, notifyNodeAdded, removeEdge, removeNode, removeNodeWithEdges, 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, 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, validate
 
Methods inherited from class org.netbeans.api.visual.widget.Widget
addChild, 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, updateResources
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

mainLayer

protected org.netbeans.api.visual.widget.LayerWidget mainLayer

intrLayer

protected org.netbeans.api.visual.widget.LayerWidget intrLayer

connLayer

protected org.netbeans.api.visual.widget.LayerWidget connLayer

router

protected ShortestPathRouterAdapter router

anchorMap

protected Map<N,org.netbeans.api.visual.anchor.Anchor> anchorMap
Constructor Detail

GraphSceneImpl

public GraphSceneImpl()
Method Detail

setAdjacentLineSpacing

public void setAdjacentLineSpacing(int spacing)

getConnectionLayer

public org.netbeans.api.visual.widget.LayerWidget getConnectionLayer()

attachEdgeSourceAnchor

protected void attachEdgeSourceAnchor(E edge,
                                      N oldSourceNode,
                                      N sourceNode)
Specified by:
attachEdgeSourceAnchor in class org.netbeans.api.visual.graph.GraphScene<N,E>

attachEdgeTargetAnchor

protected void attachEdgeTargetAnchor(E edge,
                                      N oldTargetNode,
                                      N targetNode)
Specified by:
attachEdgeTargetAnchor in class org.netbeans.api.visual.graph.GraphScene<N,E>

attachEdgeWidget

protected PathTrackingConnectionWidget attachEdgeWidget(E edge)
Specified by:
attachEdgeWidget in class org.netbeans.api.visual.graph.GraphScene<N,E>

attachNodeWidget

protected org.netbeans.api.visual.widget.Widget attachNodeWidget(N node)
Specified by:
attachNodeWidget in class org.netbeans.api.visual.graph.GraphScene<N,E>

widgetForNode

protected abstract org.netbeans.api.visual.widget.Widget widgetForNode(N node)

detachNodeWidget

protected void detachNodeWidget(N node,
                                org.netbeans.api.visual.widget.Widget widget)
Overrides:
detachNodeWidget in class org.netbeans.api.visual.graph.GraphScene<N,E>

setupForExportOnHeadless

public void setupForExportOnHeadless()

export

public BufferedImage export(StringBuilder buf,
                            Function<String,org.netbeans.api.visual.widget.Widget> hrefMapper,
                            Function<String,org.netbeans.api.visual.widget.Widget> titleMapper)


Copyright © 2012. All Rights Reserved.