Class RectangleShape
java.lang.Object
com.inductiveautomation.vision.api.client.components.shapes.ShapeDelegate
com.inductiveautomation.factorypmi.application.components.shapes.RectangleShape
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionboolean
alterShape
(Rectangle2D newBounds) Directly modify the shape's frame so that it fits tightly within the new framing rectangle.Convert this shape to a GeneralPathgetRect()
getShape()
The AWT shape this delegate producesboolean
void
setRect
(RectangularShape rect) void
translateShape
(double dX, double dY) Move the shape using the provided offsets.Methods inherited from class com.inductiveautomation.vision.api.client.components.shapes.ShapeDelegate
createArea, getBounds2D, getCenterpoint, isRotatable, rotate
-
Field Details
-
TOOL_KEY
- See Also:
-
-
Constructor Details
-
RectangleShape
Deprecated.For serialization clean copy -
RectangleShape
-
-
Method Details
-
getToolKey
- Specified by:
getToolKey
in classShapeDelegate
-
alterShape
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 classShapeDelegate
- Parameters:
newBounds
- The new bounding rectangle for the shape.- Returns:
- false if the shape was unable to alter itself into the given rectangle.
-
translateShape
public void translateShape(double dX, double dY) Description copied from class:ShapeDelegate
Move the shape using the provided offsets. Default implementation calls alterShape.- Overrides:
translateShape
in classShapeDelegate
-
getShape
Description copied from class:ShapeDelegate
The AWT shape this delegate produces- Specified by:
getShape
in classShapeDelegate
-
getRect
-
setRect
-
convertToPath
Description copied from class:ShapeDelegate
Convert this shape to a GeneralPath- Overrides:
convertToPath
in classShapeDelegate
-
isSymmetric
public boolean isSymmetric()- Specified by:
isSymmetric
in classShapeDelegate
-