Package org.graffiti.plugin.view
Interface NodeShape
- All Superinterfaces:
GraffitiShape
,GraphElementShape
,Shape
- All Known Implementing Classes:
CircleNodeShape
,CircularNodeShape
,ComplexShape
,DiamondShape
,DoubleEllipseShape
,EllipseNodeShape
,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
,TagDownShape
,TagLeftShape
,TagRightShape
,TagUpShape
,TransitionShape
,TruncProteinShape
public interface NodeShape extends GraphElementShape
Interface extending
GraphElementShape
. Classes implementing this
interface are shapes that are displayed for nodes. They must implement a
method returning the intersection between themselves and a
Line2D
so that the clipping between the node and incoming /
outgoing edges can be calculated.-
Method Summary
Modifier and Type Method Description void
buildShape(NodeGraphicAttribute graphics)
Shapes itself according to the graphics attribute found in the CollectionAttributegraphics
Point2D
getIntersection(Line2D line)
Calculates the intersection point between this node shape and a line.int
shapeHeightCorrection()
int
shapeWidthCorrection()
Methods inherited from interface org.graffiti.plugin.view.GraphElementShape
getRealBounds2D, getXexcess, getYexcess, setCoordinateSystem
Methods inherited from interface java.awt.Shape
contains, contains, contains, contains, getBounds, getBounds2D, getPathIterator, getPathIterator, intersects, intersects
-
Method Details
-
getIntersection
Calculates the intersection point between this node shape and a line. For irregularly shaped objects, the intersection that is nearest to the end point of the line is returned.- Parameters:
line
- the line with which the intersection should be calculated.- Returns:
- the intersection point between this node shape and the line.
-
buildShape
Shapes itself according to the graphics attribute found in the CollectionAttributegraphics
- Parameters:
graphics
- theCollectionAttribute
according to which this shape is constructed.- Throws:
ShapeNotFoundException
-
shapeWidthCorrection
int shapeWidthCorrection() -
shapeHeightCorrection
int shapeHeightCorrection()
-