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.StringTOOL_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 booleanalterShape(java.awt.geom.Rectangle2D newBounds)Directly modify the shape's frame so that it fits tightly within the new framing rectangle.java.awt.geom.GeneralPathconvertToPath()Convert this shape to a GeneralPathjava.awt.geom.RectangularShapegetRect()java.awt.ShapegetShape()The AWT shape this delegate producesjava.lang.StringgetToolKey()booleanisSymmetric()voidsetRect(java.awt.geom.RectangularShape rect)voidtranslateShape(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:
getToolKeyin classShapeDelegate
-
alterShape
public boolean alterShape(java.awt.geom.Rectangle2D newBounds)
Description copied from class:ShapeDelegateDirectly modify the shape's frame so that it fits tightly within the new framing rectangle.- Specified by:
alterShapein 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:ShapeDelegateMove the shape using the provided offsets. Default implementation calls alterShape.- Overrides:
translateShapein classShapeDelegate
-
getShape
public java.awt.Shape getShape()
Description copied from class:ShapeDelegateThe AWT shape this delegate produces- Specified by:
getShapein 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:ShapeDelegateConvert this shape to a GeneralPath- Overrides:
convertToPathin classShapeDelegate
-
isSymmetric
public boolean isSymmetric()
- Specified by:
isSymmetricin classShapeDelegate
-
-