cz.cuni.pogamut.shed.widget
Class ArrowWidget

Package class diagram package ArrowWidget
java.lang.Object
  extended by org.netbeans.api.visual.widget.Widget
      extended by org.netbeans.api.visual.widget.ConnectionWidget
          extended by cz.cuni.pogamut.shed.widget.ArrowWidget
All Implemented Interfaces:
Accessible

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

Arrow widget between two elements in the ShedScene. Use as arrow between two senses, between competence and choice, between AP and its actions and so on. This widget can never have client area with negative location (in the ConnectionWidget, it has greater client area than just the line thanks to anchor shape + small padding).

Author:
Honza Havlicek

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
 
Constructor Summary
ArrowWidget(ShedScene scene, org.netbeans.api.visual.anchor.Anchor sourceAnchor, org.netbeans.api.visual.anchor.Anchor targetAnchor)
          Create an arrow between @sourceAnchor and @targetAnchor.
 
Method Summary
protected  Rectangle calculateClientArea()
           
 String toString()
           
 
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, 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
addDependency, addChild, addChild, addChild, addChild, addChildren, bringToBack, bringToFront, convertLocalToScene, convertLocalToScene, convertSceneToLocal, convertSceneToLocal, createActions, equals, getAccessibleContext, getActions, getActions, getBackground, getBorder, getBounds, getClientArea, getCursor, getDependencies, getFont, getForeground, getGraphics, getChildConstraint, getChildren, getLayout, getLocation, getLookup, getMaximumSize, getMinimumSize, getParentWidget, getPreferredBounds, getPreferredLocation, getPreferredSize, getResourceTable, getScene, getState, getToolTipText, hashCode, isEnabled, isCheckClipping, isOpaque, isPreferredBoundsSet, isRepaintRequiredForRevalidating, isVisible, notifyAdded, notifyBackgroundChanged, notifyFontChanged, notifyForegroundChanged, notifyRemoved, paint, paintBackground, paintBorder, paintChildren, removeDependency, removeFromParent, removeChild, removeChildren, removeChildren, repaint, resolveBounds, revalidate, revalidate, setAccessibleContext, setBackground, setBackgroundFromResource, setBorder, setBorder, setCursor, setEnabled, setFont, setFontFromResource, setForeground, setForegroundFromResource, setCheckClipping, setChildConstraint, setLayout, setMaximumSize, setMinimumSize, setOpaque, setPreferredBounds, setPreferredLocation, setPreferredSize, setResourceTable, setState, setToolTipText, setVisible, updateResources
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ArrowWidget

public ArrowWidget(ShedScene scene,
                   org.netbeans.api.visual.anchor.Anchor sourceAnchor,
                   org.netbeans.api.visual.anchor.Anchor targetAnchor)
Create an arrow between @sourceAnchor and @targetAnchor. Use orthogonal router.

Parameters:
scene - Scene into which the arrow will be added.
sourceAnchor - Starting point of the arrow
targetAnchor - Ending point of arrow
Method Detail

calculateClientArea

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

toString

public String toString()
Overrides:
toString in class Object


Copyright © 2013 AMIS research group, Faculty of Mathematics and Physics, Charles University in Prague, Czech Republic. All Rights Reserved.