Class CircleNodeShape

All Implemented Interfaces:
Shape, ArrowShape, GraffitiShape, GraphElementShape, NodeShape
Direct Known Subclasses:
SBGNCircleShape, SourceSinkShape

public class CircleNodeShape
extends CircularNodeShape
Class representing a circle.
  • Constructor Details

    • CircleNodeShape

      public CircleNodeShape()
      The constructor creates a circle using default values.
  • Method Details

    • getIntersection

      public Point2D getIntersection​(Line2D line)
      Calculates the intersection between this shape and a line.
      Specified by:
      getIntersection in interface NodeShape
      Specified by:
      getIntersection in class CircularNodeShape
      Parameters:
      line -
      Returns:
      the intersection point or null if shape and line do not intersect.
    • buildShape

      public void buildShape​(NodeGraphicAttribute nodeAttr)
      This method sets all necessary properties using the values contained within the CollectionAttribute (like size etc.).
      Specified by:
      buildShape in interface NodeShape
      Overrides:
      buildShape in class CircularNodeShape
      Parameters:
      nodeAttr - The attribute that contains all necessary information to construct an circle.
    • shapeHeightCorrection

      public int shapeHeightCorrection()
    • shapeWidthCorrection

      public int shapeWidthCorrection()