Class EllipseShape

    • Field Summary

      Fields 
      Modifier and Type Field Description
      static java.lang.String TOOL_KEY  
    • Constructor Summary

      Constructors 
      Constructor Description
      EllipseShape()
      Deprecated.
      EllipseShape​(java.awt.geom.RectangularShape rect)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      boolean alterShape​(java.awt.geom.Rectangle2D newBounds)
      Directly modify the shape's frame so that it fits tightly within the new framing rectangle.
      java.awt.geom.Rectangle2D getBounds2D​(java.awt.Shape shape)
      Provides a way for the delegate to do custom calculation of the shape's bounds.
      java.awt.geom.RectangularShape getEllipse()  
      java.awt.Shape getShape()
      The AWT shape this delegate produces
      java.lang.String getToolKey()  
      boolean isSymmetric()  
      void setEllipse​(java.awt.geom.RectangularShape ellipse)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • EllipseShape

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

        public EllipseShape​(java.awt.geom.RectangularShape rect)
    • Method Detail

      • alterShape

        public boolean alterShape​(java.awt.geom.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 java.awt.Shape getShape()
        Description copied from class: ShapeDelegate
        The AWT shape this delegate produces
        Specified by:
        getShape in class ShapeDelegate
      • getEllipse

        public java.awt.geom.RectangularShape getEllipse()
      • setEllipse

        public void setEllipse​(java.awt.geom.RectangularShape ellipse)
      • getBounds2D

        public java.awt.geom.Rectangle2D getBounds2D​(java.awt.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