Package com.inductiveautomation.rm.shape
Class RMShapeUtils
java.lang.Object
com.inductiveautomation.rm.shape.RMShapeUtils
Some shape utility methods.
-
Nested Class Summary
Nested Classes -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic RMRectgetBoundsOfChildren(RMShape aShape, List<? extends RMShape> aList) Returns the bounds of a given subset of this shape's children.static RMPathgetCombinedPath(List<RMShape> theShapes) Returns the combined path from given shapes.static RMPolygonShapegetCombinedPathsShape(List<RMShape> theShapes) Returns a polygon shape by combining paths of given shapes.static RMShapeReturns the hover shape.static RMShapeUtils.HoverTimerReturns the shared hover timer.static RMShapeUtils.HoverTimergetHoverTimer(RMShapeMouseEvent anEvent) Returns the hover timer, creating it if missing.static RMPathgetSubtractedPath(List<RMShape> theShapes, int anInset) Returns the combined path from given shapes.static RMPolygonShapegetSubtractedPathsShape(List<RMShape> theShapes, int anInset) Returns a polygon shape by combining paths of given shapes.static RMParentShapegroupShapes(List<? extends RMShape> theShapes, RMParentShape groupShape) Adds the subset of children in given list into a given group shape, which is then added back to receiver.static voidConvenience to mark a whole list of shapes for repaint.static voidsetHoverTimer(RMShapeUtils.HoverTimer aTimer) Sets the hover timer.
-
Constructor Details
-
RMShapeUtils
public RMShapeUtils()
-
-
Method Details
-
repaint
Convenience to mark a whole list of shapes for repaint. -
getBoundsOfChildren
Returns the bounds of a given subset of this shape's children. -
groupShapes
public static RMParentShape groupShapes(List<? extends RMShape> theShapes, RMParentShape groupShape) Adds the subset of children in given list into a given group shape, which is then added back to receiver. -
getCombinedPathsShape
Returns a polygon shape by combining paths of given shapes. -
getCombinedPath
Returns the combined path from given shapes. -
getSubtractedPathsShape
Returns a polygon shape by combining paths of given shapes. -
getSubtractedPath
Returns the combined path from given shapes. -
getHoverTimer
Returns the shared hover timer. -
setHoverTimer
Sets the hover timer. -
getHoverTimer
Returns the hover timer, creating it if missing. -
getHoverShape
Returns the hover shape.
-