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, rotatepublic 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 ShapeDelegatepublic boolean alterShape(java.awt.geom.Rectangle2D newBounds)
ShapeDelegatealterShape in class ShapeDelegatenewBounds - The new bounding rectangle for the shape.public void translateShape(double dX,
double dY)
ShapeDelegatetranslateShape in class ShapeDelegatepublic java.awt.Shape getShape()
ShapeDelegategetShape in class ShapeDelegatepublic java.awt.geom.RectangularShape getRect()
public void setRect(java.awt.geom.RectangularShape rect)
public java.awt.geom.GeneralPath convertToPath()
ShapeDelegateconvertToPath in class ShapeDelegatepublic boolean isSymmetric()
isSymmetric in class ShapeDelegate