com.googlecode.sarasvati.visual.common
Class PathTrackingConnectionWidget

java.lang.Object
  extended by org.netbeans.api.visual.widget.Widget
      extended by org.netbeans.api.visual.widget.ConnectionWidget
          extended by com.googlecode.sarasvati.visual.common.PathTrackingConnectionWidget
All Implemented Interfaces:
Accessible

public class PathTrackingConnectionWidget
extends org.netbeans.api.visual.widget.ConnectionWidget


Nested Class Summary
 
Nested classes/interfaces inherited from class org.netbeans.api.visual.widget.ConnectionWidget
org.netbeans.api.visual.widget.ConnectionWidget.RoutingPolicy
 
Nested classes/interfaces inherited from class org.netbeans.api.visual.widget.Widget
org.netbeans.api.visual.widget.Widget.Dependency
 
Field Summary
protected  Point end
           
protected  org.eclipse.draw2d.graph.Path path
           
protected  List<Point> route
           
protected  ShortestPathRouterAdapter router
           
protected  Point start
           
 
Constructor Summary
PathTrackingConnectionWidget(ShortestPathRouterAdapter router, GraphSceneImpl<?,?> scene)
           
 
Method Summary
 boolean ensurePathCurrent()
           
 Point getEnd()
           
 List<Point> getRoute()
           
 Rectangle getSourceBounds()
           
 Point getStart()
           
 Rectangle getTargetBounds()
           
 void updateRoute()
           
 
Methods inherited from class org.netbeans.api.visual.widget.ConnectionWidget
calculateClientArea, calculateRouting, getControlPoint, getControlPointCutDistance, getControlPointHitAt, getControlPoints, getControlPointsCursor, getControlPointShape, getCursorAt, getEndPointShape, getFirstControlPoint, getLastControlPoint, getLineColor, getRouter, getRoutingPolicy, getSourceAnchor, getSourceAnchorEntry, getSourceAnchorShape, getStroke, getTargetAnchor, getTargetAnchorEntry, getTargetAnchorShape, getTargetAnchorShapeRotation, isFirstControlPointHitAt, isHitAt, isLastControlPointHitAt, isPaintControlPoints, isRouted, isValidated, notifyStateChanged, paintWidget, removeConstraint, reroute, setConstraint, setConstraint, setControlPointCutDistance, setControlPoints, setControlPointsCursor, setControlPointShape, setEndPointShape, setLineColor, setPaintControlPoints, setRouter, setRoutingPolicy, setSourceAnchor, setSourceAnchorShape, setStroke, setTargetAnchor, setTargetAnchorShape
 
Methods inherited from class org.netbeans.api.visual.widget.Widget
addChild, addChild, addChild, addChild, addChildren, addDependency, bringToBack, bringToFront, convertLocalToScene, convertLocalToScene, convertSceneToLocal, convertSceneToLocal, createActions, equals, getAccessibleContext, getActions, getActions, getBackground, getBorder, getBounds, getChildConstraint, getChildren, getClientArea, getCursor, getDependencies, getFont, getForeground, getGraphics, getLayout, getLocation, getLookup, getMaximumSize, getMinimumSize, getParentWidget, getPreferredBounds, getPreferredLocation, getPreferredSize, getResourceTable, getScene, getState, getToolTipText, hashCode, isCheckClipping, isEnabled, isOpaque, isPreferredBoundsSet, isRepaintRequiredForRevalidating, isVisible, notifyAdded, notifyBackgroundChanged, notifyFontChanged, notifyForegroundChanged, notifyRemoved, paint, paintBackground, paintBorder, paintChildren, 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, setResourceTable, setState, setToolTipText, setVisible, updateResources
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

router

protected ShortestPathRouterAdapter router

start

protected Point start

end

protected Point end

path

protected org.eclipse.draw2d.graph.Path path

route

protected List<Point> route
Constructor Detail

PathTrackingConnectionWidget

public PathTrackingConnectionWidget(ShortestPathRouterAdapter router,
                                    GraphSceneImpl<?,?> scene)
Method Detail

getSourceBounds

public Rectangle getSourceBounds()

getTargetBounds

public Rectangle getTargetBounds()

ensurePathCurrent

public boolean ensurePathCurrent()

getStart

public Point getStart()

getEnd

public Point getEnd()

updateRoute

public void updateRoute()

getRoute

public List<Point> getRoute()


Copyright © 2012. All Rights Reserved.