Class EdgeWidget

java.lang.Object
org.netbeans.api.visual.widget.Widget
org.netbeans.api.visual.widget.ConnectionWidget
org.praxislive.ide.pxr.graph.scene.EdgeWidget
All Implemented Interfaces:
Accessible, org.openide.util.Lookup.Provider

public class EdgeWidget extends org.netbeans.api.visual.widget.ConnectionWidget
A connection (edge) widget within a PraxisGraphScene.
  • 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
  • Method Summary

    Modifier and Type
    Method
    Description
    protected Rectangle
     
    boolean
    isHitAt(Point localLocation)
     
    protected void
     
    protected void
     
    void
    notifyStateChanged(org.netbeans.api.visual.model.ObjectState previousState, org.netbeans.api.visual.model.ObjectState state)
    Implements the widget-state specific look of the widget.
    protected void
     
    void
    setControlPoints(Collection<Point> controlPoints, boolean sceneLocations)
     

    Methods inherited from class org.netbeans.api.visual.widget.ConnectionWidget

    calculateRouting, getControlPoint, getControlPointCutDistance, getControlPointHitAt, getControlPoints, getControlPointsCursor, getControlPointShape, getCursorAt, getEndPointShape, getFirstControlPoint, getLastControlPoint, getLineColor, getRouter, getRoutingPolicy, getSourceAnchor, getSourceAnchorEntry, getSourceAnchorShape, getStroke, getTargetAnchor, getTargetAnchorEntry, getTargetAnchorShape, getTargetAnchorShapeRotation, isFirstControlPointHitAt, isLastControlPointHitAt, isPaintControlPoints, isRouted, isValidated, removeConstraint, reroute, setConstraint, setConstraint, setControlPointCutDistance, 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, notifyBackgroundChanged, notifyFontChanged, notifyForegroundChanged, 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
  • Method Details

    • setControlPoints

      public void setControlPoints(Collection<Point> controlPoints, boolean sceneLocations)
      Overrides:
      setControlPoints in class org.netbeans.api.visual.widget.ConnectionWidget
    • notifyAdded

      protected void notifyAdded()
      Overrides:
      notifyAdded in class org.netbeans.api.visual.widget.Widget
    • notifyRemoved

      protected void notifyRemoved()
      Overrides:
      notifyRemoved in class org.netbeans.api.visual.widget.Widget
    • notifyStateChanged

      public void notifyStateChanged(org.netbeans.api.visual.model.ObjectState previousState, org.netbeans.api.visual.model.ObjectState state)
      Implements the widget-state specific look of the widget.
      Overrides:
      notifyStateChanged in class org.netbeans.api.visual.widget.ConnectionWidget
      Parameters:
      previousState - the previous state
      state - the new state
    • calculateClientArea

      protected Rectangle calculateClientArea()
      Overrides:
      calculateClientArea in class org.netbeans.api.visual.widget.ConnectionWidget
    • isHitAt

      public boolean isHitAt(Point localLocation)
      Overrides:
      isHitAt in class org.netbeans.api.visual.widget.ConnectionWidget
    • paintWidget

      protected void paintWidget()
      Overrides:
      paintWidget in class org.netbeans.api.visual.widget.ConnectionWidget