Class RMShapeUtils


  • public class RMShapeUtils
    extends java.lang.Object
    • Constructor Detail

      • RMShapeUtils

        public RMShapeUtils()
    • Method Detail

      • setNeedsRepaintDeep

        public static void setNeedsRepaintDeep​(RMShape aShape)
        Convenience to mark an entire tree of shapes for repaint.
      • setNeedsRepaint

        public static void setNeedsRepaint​(java.util.List shapes)
        Convenience to mark a whole list of shapes for repaint.
      • addChildToShape

        public static void addChildToShape​(RMShape aChild,
                                           RMShape aParent,
                                           RMUndoer anUndoer)
        Adds given child to given parent shape for given undoer.
      • removeChildrenFromShape

        public static void removeChildrenFromShape​(java.util.List children,
                                                   RMShape aParent,
                                                   RMUndoer anUndoer)
      • addPathsFromShapes

        public static RMPath addPathsFromShapes​(java.util.List shapes)
        Returns the combined path from given shapes.
      • subtractPathsFromShapes

        public static RMPath subtractPathsFromShapes​(java.util.List shapes,
                                                     int inset)
        Returns the combined path from given shapes.