Class ArrowShape
- java.lang.Object
- 
- com.inductiveautomation.vision.api.client.components.shapes.ShapeDelegate
- 
- com.inductiveautomation.factorypmi.application.components.shapes.ArrowShape
 
 
- 
 public class ArrowShape extends ShapeDelegate 
- 
- 
Field SummaryFields Modifier and Type Field Description static java.lang.StringTOOL_KEY
 - 
Constructor SummaryConstructors Constructor Description ArrowShape()ArrowShape(java.awt.geom.Point2D origin, float length, float angle, float shaftWidth, float headLength, float headWidth)ArrowShape(java.awt.geom.Point2D origin, float length, float angle, float shaftWidth, float headLength, float headWidth, boolean doubleSided)
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanalterShape(java.awt.geom.Rectangle2D newRect)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 GeneralPathfloatgetAngle()floatgetHeadLength()floatgetHeadWidth()floatgetLength()java.awt.geom.Point2DgetOrigin()floatgetShaftWidth()java.awt.ShapegetShape()The AWT shape this delegate producesjava.awt.geom.Point2DgetTipPoint()java.lang.StringgetToolKey()booleanisDoubleSided()booleanisRotatable()Some shape delegates prefer to handle rotation themselves, instead of having the PathBasedVisionShape parent rotate their shape after the fact.booleanisSymmetric()voidrotate(double angle, java.awt.geom.Point2D anchor)voidsetAngle(float angle)voidsetDoubleSided(boolean doubleSided)voidsetHeadLength(float headLength)voidsetHeadWidth(float headWidth)voidsetLength(float length)voidsetOrigin(java.awt.geom.Point2D origin)voidsetShaftWidth(float shaftWidth)voidtranslateShape(double dX, double dY)Move the shape using the provided offsets.voidupdateShape()- 
Methods inherited from class com.inductiveautomation.vision.api.client.components.shapes.ShapeDelegatecreateArea, getBounds2D, getCenterpoint
 
- 
 
- 
- 
- 
Field Detail- 
TOOL_KEYpublic static final java.lang.String TOOL_KEY - See Also:
- Constant Field Values
 
 
- 
 - 
Constructor Detail- 
ArrowShapepublic ArrowShape() 
 - 
ArrowShapepublic ArrowShape(java.awt.geom.Point2D origin, float length, float angle, float shaftWidth, float headLength, float headWidth)
 - 
ArrowShapepublic ArrowShape(java.awt.geom.Point2D origin, float length, float angle, float shaftWidth, float headLength, float headWidth, boolean doubleSided)
 
- 
 - 
Method Detail- 
getToolKeypublic java.lang.String getToolKey() - Specified by:
- getToolKeyin class- ShapeDelegate
 
 - 
getShapepublic java.awt.Shape getShape() Description copied from class:ShapeDelegateThe AWT shape this delegate produces- Specified by:
- getShapein class- ShapeDelegate
 
 - 
isSymmetricpublic boolean isSymmetric() - Specified by:
- isSymmetricin 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
 
 - 
rotatepublic void rotate(double angle, java.awt.geom.Point2D anchor)- Overrides:
- rotatein class- ShapeDelegate
 
 - 
getTipPointpublic java.awt.geom.Point2D getTipPoint() 
 - 
updateShapepublic void updateShape() 
 - 
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
 
 - 
alterShapepublic boolean alterShape(java.awt.geom.Rectangle2D newRect) 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:
- newRect- The new bounding rectangle for the shape.
- Returns:
- false if the shape was unable to alter itself into the given rectangle.
 
 - 
convertToPathpublic java.awt.geom.GeneralPath convertToPath() Description copied from class:ShapeDelegateConvert this shape to a GeneralPath- Overrides:
- convertToPathin class- ShapeDelegate
 
 - 
getOriginpublic java.awt.geom.Point2D getOrigin() 
 - 
setOriginpublic void setOrigin(java.awt.geom.Point2D origin) 
 - 
getLengthpublic float getLength() 
 - 
setLengthpublic void setLength(float length) 
 - 
getAnglepublic float getAngle() 
 - 
setAnglepublic void setAngle(float angle) 
 - 
getShaftWidthpublic float getShaftWidth() 
 - 
setShaftWidthpublic void setShaftWidth(float shaftWidth) 
 - 
getHeadLengthpublic float getHeadLength() 
 - 
setHeadLengthpublic void setHeadLength(float headLength) 
 - 
getHeadWidthpublic float getHeadWidth() 
 - 
setHeadWidthpublic void setHeadWidth(float headWidth) 
 - 
isDoubleSidedpublic boolean isDoubleSided() 
 - 
setDoubleSidedpublic void setDoubleSided(boolean doubleSided) 
 
- 
 
-