Package com.inductiveautomation.rm.shape
Class RMShapeUtils
- java.lang.Object
- 
- com.inductiveautomation.rm.shape.RMShapeUtils
 
- 
 public class RMShapeUtils extends java.lang.ObjectSome shape utility methods.
- 
- 
Nested Class SummaryNested Classes Modifier and Type Class Description static classRMShapeUtils.HoverTimerA Timer subclass.
 - 
Constructor SummaryConstructors Constructor Description RMShapeUtils()
 - 
Method SummaryAll Methods Static Methods Concrete Methods Modifier and Type Method Description static RMRectgetBoundsOfChildren(RMShape aShape, java.util.List<? extends RMShape> aList)Returns the bounds of a given subset of this shape's children.static RMPathgetCombinedPath(java.util.List<RMShape> theShapes)Returns the combined path from given shapes.static RMPolygonShapegetCombinedPathsShape(java.util.List<RMShape> theShapes)Returns a polygon shape by combining paths of given shapes.static RMShapegetHoverShape()Returns the hover shape.static RMShapeUtils.HoverTimergetHoverTimer()Returns the shared hover timer.static RMShapeUtils.HoverTimergetHoverTimer(RMShapeMouseEvent anEvent)Returns the hover timer, creating it if missing.static RMPathgetSubtractedPath(java.util.List<RMShape> theShapes, int anInset)Returns the combined path from given shapes.static RMPolygonShapegetSubtractedPathsShape(java.util.List<RMShape> theShapes, int anInset)Returns a polygon shape by combining paths of given shapes.static RMParentShapegroupShapes(java.util.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 voidrepaint(java.util.List<? extends RMShape> theShapes)Convenience to mark a whole list of shapes for repaint.static voidsetHoverTimer(RMShapeUtils.HoverTimer aTimer)Sets the hover timer.
 
- 
- 
- 
Method Detail- 
repaintpublic static void repaint(java.util.List<? extends RMShape> theShapes) Convenience to mark a whole list of shapes for repaint.
 - 
getBoundsOfChildrenpublic static RMRect getBoundsOfChildren(RMShape aShape, java.util.List<? extends RMShape> aList) Returns the bounds of a given subset of this shape's children.
 - 
groupShapespublic static RMParentShape groupShapes(java.util.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.
 - 
getCombinedPathsShapepublic static RMPolygonShape getCombinedPathsShape(java.util.List<RMShape> theShapes) Returns a polygon shape by combining paths of given shapes.
 - 
getCombinedPathpublic static RMPath getCombinedPath(java.util.List<RMShape> theShapes) Returns the combined path from given shapes.
 - 
getSubtractedPathsShapepublic static RMPolygonShape getSubtractedPathsShape(java.util.List<RMShape> theShapes, int anInset) Returns a polygon shape by combining paths of given shapes.
 - 
getSubtractedPathpublic static RMPath getSubtractedPath(java.util.List<RMShape> theShapes, int anInset) Returns the combined path from given shapes.
 - 
getHoverTimerpublic static RMShapeUtils.HoverTimer getHoverTimer() Returns the shared hover timer.
 - 
setHoverTimerpublic static void setHoverTimer(RMShapeUtils.HoverTimer aTimer) Sets the hover timer.
 - 
getHoverTimerpublic static RMShapeUtils.HoverTimer getHoverTimer(RMShapeMouseEvent anEvent) Returns the hover timer, creating it if missing.
 - 
getHoverShapepublic static RMShape getHoverShape() Returns the hover shape.
 
- 
 
-