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 Details

    • getIntersection

      Point2D getIntersection​(Line2D line)
      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

      void buildShape​(NodeGraphicAttribute graphics) throws ShapeNotFoundException
      Shapes itself according to the graphics attribute found in the CollectionAttribute graphics
      Parameters:
      graphics - the CollectionAttribute according to which this shape is constructed.
      Throws:
      ShapeNotFoundException
    • shapeWidthCorrection

      int shapeWidthCorrection()
    • shapeHeightCorrection

      int shapeHeightCorrection()