Class EllipseNodeShape

All Implemented Interfaces:
Shape, ArrowShape, GraffitiShape, GraphElementShape, NodeShape
Direct Known Subclasses:
DoubleEllipseShape, MultiEllipseShape

public class EllipseNodeShape
extends CircularNodeShape
Concrete class representing an ellipse.
  • Constructor Details

    • EllipseNodeShape

      public EllipseNodeShape()
  • Method Details

    • getIntersection

      public Point2D getIntersection​(Line2D line)
      Calculates the intersection between this ellipse and a line.
      Specified by:
      getIntersection in interface NodeShape
      Specified by:
      getIntersection in class CircularNodeShape
      Parameters:
      line -
      Returns:
      DOCUMENT ME!
      Throws:
      RuntimeException - DOCUMENT ME!
    • shapeHeightCorrection

      public int shapeHeightCorrection()
    • shapeWidthCorrection

      public int shapeWidthCorrection()