java.lang.Object
com.inductiveautomation.vision.api.client.components.shapes.ShapeDelegate
com.inductiveautomation.factorypmi.application.components.shapes.EllipseShape

public class EllipseShape extends ShapeDelegate
  • Field Details

  • Constructor Details

    • EllipseShape

      @Deprecated public EllipseShape()
      Deprecated.
      For serialization
    • EllipseShape

      public EllipseShape(RectangularShape rect)
  • Method Details

    • isSymmetric

      public boolean isSymmetric()
      Specified by:
      isSymmetric in class ShapeDelegate
    • getToolKey

      public String getToolKey()
      Specified by:
      getToolKey in class ShapeDelegate
    • alterShape

      public boolean alterShape(Rectangle2D newBounds)
      Description copied from class: ShapeDelegate
      Directly modify the shape's frame so that it fits tightly within the new framing rectangle.
      Specified by:
      alterShape in class ShapeDelegate
      Parameters:
      newBounds - The new bounding rectangle for the shape.
      Returns:
      false if the shape was unable to alter itself into the given rectangle.
    • getShape

      public Shape getShape()
      Description copied from class: ShapeDelegate
      The AWT shape this delegate produces
      Specified by:
      getShape in class ShapeDelegate
    • getEllipse

      public RectangularShape getEllipse()
    • setEllipse

      public void setEllipse(RectangularShape ellipse)
    • getBounds2D

      public Rectangle2D getBounds2D(Shape shape)
      Description copied from class: ShapeDelegate
      Provides a way for the delegate to do custom calculation of the shape's bounds. Default implementation is:

       return shape.getBounds2D();
       
      Overrides:
      getBounds2D in class ShapeDelegate