Package org.graffiti.plugin.view
Interface ArrowShape
- All Superinterfaces:
Shape
- All Known Implementing Classes:
AbsoluteInhibitorArrowShape
,AbsoluteStimulationArrowShape
,AbstractArrowShape
,AssignmentArrowShape
,CircleArrowShape
,CircleConnectArrowShape
,CircleNodeShape
,CircularNodeShape
,ComplexShape
,DiamondArrowShape
,DiamondShape
,DoubleEllipseShape
,EllipseNodeShape
,InhibitorArrowShape
,LeftSkewedRectShape
,MultiComplexShape
,MultiEllipseShape
,MultiNucleicAcidFeatureShape
,MultiRectangleShape
,NucleicAcidFeatureShape
,ObservableShape
,PaperShape
,PaperShapeBottomLeft
,PaperShapeBottomRight
,PaperShapeLeftBottom
,PaperShapeLeftTop
,PaperShapeRightBottom
,PaperShapeRightTop
,PaperShapeTopLeft
,PaperShapeTopRight
,PertubationShape
,PolygonalNodeShape
,ReceptorDownShape
,ReceptorLeftShape
,ReceptorRightShape
,ReceptorUpShape
,RectangleNodeShape
,RectangularNodeShape
,RelativePolyShape
,RightSkewedRectShape
,SBGNCircleShape
,SBGNDissociationShape
,SBGNMultiStadiumShape
,SBGNProcessShape
,SBGNStadiumShape
,SourceSinkShape
,StandardArrowShape
,StandardArrowShapeLeft
,StandardArrowShapeRight
,TagDownShape
,TagLeftShape
,TagRightShape
,TagUpShape
,TransitionShape
,TriggerArrowShape
,TruncProteinShape
public interface ArrowShape extends Shape
DOCUMENT ME!
- Version:
- $Revision: 1.5 $
- Author:
- $Author: klukas $
-
Method Summary
Modifier and Type Method Description Shape
affix(Point2D target, Point2D other, double lineWidth)
Sets this arrow to the target point and rotates it according to the line given by the connection between points target and other.Point2D
getAnchor()
Returns the anchor of the arrow, i.e.void
updateSize(double sz)
Methods inherited from interface java.awt.Shape
contains, contains, contains, contains, getBounds, getBounds2D, getPathIterator, getPathIterator, intersects, intersects
-
Method Details
-
getAnchor
Point2D getAnchor()Returns the anchor of the arrow, i.e. the point where the line should be attached to the arrow. This is only valid after a call toaffix
.- Returns:
- the anchor of the arrow.
-
affix
Sets this arrow to the target point and rotates it according to the line given by the connection between points target and other.- Parameters:
target
- the point where the arrow should be putother
- needed to calculate the direction in which the arrow should point to. The line is given by the two points target and other.lineWidth
- The total width of the line. May be used to scale the arrow so as to be larger than the line.- Returns:
- DOCUMENT ME!
-
updateSize
void updateSize(double sz)
-