public class EllipseShape extends ShapeDelegate
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
TOOL_KEY |
Constructor and Description |
---|
EllipseShape()
Deprecated.
|
EllipseShape(java.awt.geom.RectangularShape rect) |
Modifier and Type | Method and 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) |
convertToPath, createArea, getCenterpoint, isRotatable, rotate, translateShape
public static final java.lang.String TOOL_KEY
@Deprecated public EllipseShape()
public EllipseShape(java.awt.geom.RectangularShape rect)
public boolean isSymmetric()
isSymmetric
in class ShapeDelegate
public java.lang.String getToolKey()
getToolKey
in class ShapeDelegate
public boolean alterShape(java.awt.geom.Rectangle2D newBounds)
ShapeDelegate
alterShape
in class ShapeDelegate
newBounds
- The new bounding rectangle for the shape.public java.awt.Shape getShape()
ShapeDelegate
getShape
in class ShapeDelegate
public java.awt.geom.RectangularShape getEllipse()
public void setEllipse(java.awt.geom.RectangularShape ellipse)
public java.awt.geom.Rectangle2D getBounds2D(java.awt.Shape shape)
ShapeDelegate
return shape.getBounds2D();
getBounds2D
in class ShapeDelegate