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, translateShapepublic static final java.lang.String TOOL_KEY
@Deprecated public EllipseShape()
public EllipseShape(java.awt.geom.RectangularShape rect)
public boolean isSymmetric()
isSymmetric in class ShapeDelegatepublic java.lang.String getToolKey()
getToolKey in class ShapeDelegatepublic boolean alterShape(java.awt.geom.Rectangle2D newBounds)
ShapeDelegatealterShape in class ShapeDelegatenewBounds - The new bounding rectangle for the shape.public java.awt.Shape getShape()
ShapeDelegategetShape in class ShapeDelegatepublic 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