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 voidbuildShape(NodeGraphicAttribute graphics)Shapes itself according to the graphics attribute found in the CollectionAttributegraphicsPoint2DgetIntersection(Line2D line)Calculates the intersection point between this node shape and a line.intshapeHeightCorrection()intshapeWidthCorrection()Methods inherited from interface org.graffiti.plugin.view.GraphElementShape
getRealBounds2D, getXexcess, getYexcess, setCoordinateSystemMethods 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- theCollectionAttributeaccording to which this shape is constructed.- Throws:
ShapeNotFoundException
-
shapeWidthCorrection
int shapeWidthCorrection() -
shapeHeightCorrection
int shapeHeightCorrection()
-