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.String
TOOL_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 boolean
alterShape(java.awt.geom.Rectangle2D newBounds)
Directly modify the shape's frame so that it fits tightly within the new framing rectangle.java.awt.geom.Rectangle2D
getBounds2D(java.awt.Shape shape)
Provides a way for the delegate to do custom calculation of the shape's bounds.java.awt.geom.RectangularShape
getEllipse()
java.awt.Shape
getShape()
The AWT shape this delegate producesjava.lang.String
getToolKey()
boolean
isSymmetric()
void
setEllipse(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:
isSymmetric
in classShapeDelegate
-
getToolKey
public java.lang.String getToolKey()
- Specified by:
getToolKey
in classShapeDelegate
-
alterShape
public boolean alterShape(java.awt.geom.Rectangle2D newBounds)
Description copied from class:ShapeDelegate
Directly modify the shape's frame so that it fits tightly within the new framing rectangle.- Specified by:
alterShape
in 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:ShapeDelegate
The AWT shape this delegate produces- Specified by:
getShape
in 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:ShapeDelegate
Provides a way for the delegate to do custom calculation of the shape's bounds. Default implementation is:return shape.getBounds2D();
- Overrides:
getBounds2D
in classShapeDelegate
-
-