Class PathShape
java.lang.Object
com.inductiveautomation.vision.api.client.components.shapes.ShapeDelegate
com.inductiveautomation.factorypmi.application.components.shapes.PathShape
- 
Field SummaryFields
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionbooleanalterShape(Rectangle2D newRect) Directly modify the shape's frame so that it fits tightly within the new framing rectangle.Convert this shape to a GeneralPathgetPath()getShape()The AWT shape this delegate producesbooleanSome shape delegates prefer to handle rotation themselves, instead of having the PathBasedVisionShape parent rotate their shape after the fact.booleanvoidvoidsetPath(GeneralPath path) voidtransform(AffineTransform transform) 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
- 
Field Details- 
TOOL_KEY- See Also:
 
 
- 
- 
Constructor Details- 
PathShapeDeprecated.For serialization clean copy
- 
PathShape
 
- 
- 
Method Details- 
getToolKey- Specified by:
- getToolKeyin class- ShapeDelegate
 
- 
getShapeDescription copied from class:ShapeDelegateThe AWT shape this delegate produces- Specified by:
- getShapein class- ShapeDelegate
 
- 
getPath
- 
setPath
- 
transform
- 
isSymmetricpublic boolean isSymmetric()- Specified by:
- isSymmetricin class- ShapeDelegate
 
- 
alterShapeDescription 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:
- newRect- 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
 
- 
isRotatablepublic boolean isRotatable()Description copied from class:ShapeDelegateSome shape delegates prefer to handle rotation themselves, instead of having the PathBasedVisionShape parent rotate their shape after the fact. Delegates that do this should return true from this method, and then handle the rotate method appropriately. Note that all rotations must go through the PathBasedVisionShape so that it can update the angle property.- Overrides:
- isRotatablein class- ShapeDelegate
 
- 
rotate- Overrides:
- rotatein class- ShapeDelegate
 
- 
convertToPathDescription copied from class:ShapeDelegateConvert this shape to a GeneralPath- Overrides:
- convertToPathin class- ShapeDelegate
 
 
-