Class RMShapeUtils


  • public class RMShapeUtils
    extends java.lang.Object
    Some shape utility methods.
    • Constructor Detail

      • RMShapeUtils

        public RMShapeUtils()
    • Method Detail

      • repaint

        public static void repaint​(java.util.List<? extends RMShape> theShapes)
        Convenience to mark a whole list of shapes for repaint.
      • getBoundsOfChildren

        public static RMRect getBoundsOfChildren​(RMShape aShape,
                                                 java.util.List<? extends RMShape> aList)
        Returns the bounds of a given subset of this shape's children.
      • groupShapes

        public 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.
      • getCombinedPathsShape

        public static RMPolygonShape getCombinedPathsShape​(java.util.List<RMShape> theShapes)
        Returns a polygon shape by combining paths of given shapes.
      • getCombinedPath

        public static RMPath getCombinedPath​(java.util.List<RMShape> theShapes)
        Returns the combined path from given shapes.
      • getSubtractedPathsShape

        public static RMPolygonShape getSubtractedPathsShape​(java.util.List<RMShape> theShapes,
                                                             int anInset)
        Returns a polygon shape by combining paths of given shapes.
      • getSubtractedPath

        public static RMPath getSubtractedPath​(java.util.List<RMShape> theShapes,
                                               int anInset)
        Returns the combined path from given shapes.
      • getHoverShape

        public static RMShape getHoverShape()
        Returns the hover shape.