public class RectangleShape extends ShapeDelegate
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
TOOL_KEY |
Constructor and Description |
---|
RectangleShape()
Deprecated.
|
RectangleShape(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.GeneralPath |
convertToPath()
Convert this shape to a GeneralPath
|
java.awt.geom.RectangularShape |
getRect() |
java.awt.Shape |
getShape()
The AWT shape this delegate produces
|
java.lang.String |
getToolKey() |
boolean |
isSymmetric() |
void |
setRect(java.awt.geom.RectangularShape rect) |
void |
translateShape(double dX,
double dY)
Move the shape using the provided offsets.
|
createArea, getBounds2D, getCenterpoint, isRotatable, rotate
public static final java.lang.String TOOL_KEY
@Deprecated public RectangleShape()
public RectangleShape(java.awt.geom.RectangularShape rect)
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 void translateShape(double dX, double dY)
ShapeDelegate
translateShape
in class ShapeDelegate
public java.awt.Shape getShape()
ShapeDelegate
getShape
in class ShapeDelegate
public java.awt.geom.RectangularShape getRect()
public void setRect(java.awt.geom.RectangularShape rect)
public java.awt.geom.GeneralPath convertToPath()
ShapeDelegate
convertToPath
in class ShapeDelegate
public boolean isSymmetric()
isSymmetric
in class ShapeDelegate