Class RectangleShape
- java.lang.Object
-
- com.inductiveautomation.vision.api.client.components.shapes.ShapeDelegate
-
- com.inductiveautomation.factorypmi.application.components.shapes.RectangleShape
-
public class RectangleShape extends ShapeDelegate
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.String
TOOL_KEY
-
Constructor Summary
Constructors Constructor Description RectangleShape()
Deprecated.RectangleShape(java.awt.geom.RectangularShape rect)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method 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 GeneralPathjava.awt.geom.RectangularShape
getRect()
java.awt.Shape
getShape()
The AWT shape this delegate producesjava.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.-
Methods inherited from class com.inductiveautomation.vision.api.client.components.shapes.ShapeDelegate
createArea, getBounds2D, getCenterpoint, isRotatable, rotate
-
-
-
-
Field Detail
-
TOOL_KEY
public static final java.lang.String TOOL_KEY
- See Also:
- Constant Field Values
-
-
Method Detail
-
getToolKey
public java.lang.String getToolKey()
- Specified by:
getToolKey
in classShapeDelegate
-
alterShape
public boolean alterShape(java.awt.geom.Rectangle2D newBounds)
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
public java.awt.Shape getShape()
Description copied from class:ShapeDelegate
The AWT shape this delegate produces- Specified by:
getShape
in classShapeDelegate
-
getRect
public java.awt.geom.RectangularShape getRect()
-
setRect
public void setRect(java.awt.geom.RectangularShape rect)
-
convertToPath
public java.awt.geom.GeneralPath 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
-
-