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 SummaryFields Modifier and Type Field Description static java.lang.StringTOOL_KEY
 - 
Constructor SummaryConstructors Constructor Description RectangleShape()Deprecated.RectangleShape(java.awt.geom.RectangularShape rect)
 - 
Method SummaryAll 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.ShapeDelegatecreateArea, getBounds2D, getCenterpoint, isRotatable, rotate
 
- 
 
- 
- 
- 
Field Detail- 
TOOL_KEYpublic static final java.lang.String TOOL_KEY - See Also:
- Constant Field Values
 
 
- 
 - 
Method Detail- 
getToolKeypublic java.lang.String getToolKey() - Specified by:
- getToolKeyin class- ShapeDelegate
 
 - 
alterShapepublic 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 class- ShapeDelegate
- Parameters:
- newBounds- The new bounding rectangle for the shape.
- Returns:
- false if the shape was unable to alter itself into the given rectangle.
 
 - 
translateShapepublic void translateShape(double dX, double dY)Description copied from class:ShapeDelegateMove the shape using the provided offsets. Default implementation calls alterShape.- Overrides:
- translateShapein class- ShapeDelegate
 
 - 
getShapepublic java.awt.Shape getShape() Description copied from class:ShapeDelegateThe AWT shape this delegate produces- Specified by:
- getShapein class- ShapeDelegate
 
 - 
getRectpublic java.awt.geom.RectangularShape getRect() 
 - 
setRectpublic void setRect(java.awt.geom.RectangularShape rect) 
 - 
convertToPathpublic java.awt.geom.GeneralPath convertToPath() Description copied from class:ShapeDelegateConvert this shape to a GeneralPath- Overrides:
- convertToPathin class- ShapeDelegate
 
 - 
isSymmetricpublic boolean isSymmetric() - Specified by:
- isSymmetricin class- ShapeDelegate
 
 
- 
 
-