Class EllipseShape
- java.lang.Object
-
- com.inductiveautomation.vision.api.client.components.shapes.ShapeDelegate
-
- com.inductiveautomation.factorypmi.application.components.shapes.EllipseShape
-
public class EllipseShape extends ShapeDelegate
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.StringTOOL_KEY
-
Constructor Summary
Constructors Constructor Description EllipseShape()Deprecated.EllipseShape(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.Rectangle2DgetBounds2D(java.awt.Shape shape)Provides a way for the delegate to do custom calculation of the shape's bounds.java.awt.geom.RectangularShapegetEllipse()java.awt.ShapegetShape()The AWT shape this delegate producesjava.lang.StringgetToolKey()booleanisSymmetric()voidsetEllipse(java.awt.geom.RectangularShape ellipse)-
Methods inherited from class com.inductiveautomation.vision.api.client.components.shapes.ShapeDelegate
convertToPath, createArea, getCenterpoint, isRotatable, rotate, translateShape
-
-
-
-
Field Detail
-
TOOL_KEY
public static final java.lang.String TOOL_KEY
- See Also:
- Constant Field Values
-
-
Method Detail
-
isSymmetric
public boolean isSymmetric()
- Specified by:
isSymmetricin classShapeDelegate
-
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.
-
getShape
public java.awt.Shape getShape()
Description copied from class:ShapeDelegateThe AWT shape this delegate produces- Specified by:
getShapein classShapeDelegate
-
getEllipse
public java.awt.geom.RectangularShape getEllipse()
-
setEllipse
public void setEllipse(java.awt.geom.RectangularShape ellipse)
-
getBounds2D
public java.awt.geom.Rectangle2D getBounds2D(java.awt.Shape shape)
Description copied from class:ShapeDelegateProvides a way for the delegate to do custom calculation of the shape's bounds. Default implementation is:return shape.getBounds2D();
- Overrides:
getBounds2Din classShapeDelegate
-
-