Package com.inductiveautomation.rm.shape
Class RMShapeUtils
java.lang.Object
com.inductiveautomation.rm.shape.RMShapeUtils
Some shape utility methods.
- 
Nested Class SummaryNested Classes
- 
Constructor SummaryConstructors
- 
Method SummaryModifier 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- 
RMShapeUtilspublic RMShapeUtils()
 
- 
- 
Method Details- 
repaintConvenience to mark a whole list of shapes for repaint.
- 
getBoundsOfChildrenReturns the bounds of a given subset of this shape's children.
- 
groupShapespublic 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.
- 
getCombinedPathsShapeReturns a polygon shape by combining paths of given shapes.
- 
getCombinedPathReturns the combined path from given shapes.
- 
getSubtractedPathsShapeReturns a polygon shape by combining paths of given shapes.
- 
getSubtractedPathReturns the combined path from given shapes.
- 
getHoverTimerReturns the shared hover timer.
- 
setHoverTimerSets the hover timer.
- 
getHoverTimerReturns the hover timer, creating it if missing.
- 
getHoverShapeReturns the hover shape.
 
-