public class RMShapeUtils
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
static class |
RMShapeUtils.HoverTimer
A Timer subclass.
|
Constructor and Description |
---|
RMShapeUtils() |
Modifier and Type | Method and Description |
---|---|
static RMPath |
addPathsFromShapes(java.util.List<RMShape> theShapes)
Returns the combined path from given shapes.
|
static float |
getAutosizeAlignmentX(RMShape aShape)
Returns the autosizing as horizontal alignment.
|
static float |
getAutosizeAlignmentY(RMShape aShape)
Returns the autosizing as vertical alignment.
|
static RMRect |
getBoundsOfChildren(RMShape aShape,
java.util.List<? extends RMShape> aList)
Returns the bounds of a given subset of this shape's children.
|
static RMShape |
getHoverShape()
Returns the hover shape.
|
static RMShapeUtils.HoverTimer |
getHoverTimer()
Returns the shared hover timer.
|
static RMShapeUtils.HoverTimer |
getHoverTimer(RMShapeMouseEvent anEvent)
Returns the hover timer, creating it if missing.
|
static RMShape |
groupShapes(java.util.List<? extends RMShape> theShapes,
RMShape groupShape)
Adds the subset of children in given list into a given group shape, which is then added back to receiver.
|
static boolean |
hasActionDeep(RMShape aShape)
Returns whether a shape or any of its children has an action.
|
static void |
removeChildren(RMShape aShape,
java.util.List<? extends RMShape> theShapes)
Removes children from shape.
|
static void |
repaint(java.util.List<? extends RMShape> theShapes)
Convenience to mark a whole list of shapes for repaint.
|
static void |
repaintDeep(RMShape aShape)
Convenience to mark an entire tree of shapes for repaint.
|
static void |
setHoverTimer(RMShapeUtils.HoverTimer aTimer)
Sets the hover timer.
|
static RMPath |
subtractPathsFromShapes(java.util.List<? extends RMShape> theShapes,
int inset)
Returns the combined path from given shapes.
|
public static void repaint(java.util.List<? extends RMShape> theShapes)
public static void repaintDeep(RMShape aShape)
public static RMRect getBoundsOfChildren(RMShape aShape, java.util.List<? extends RMShape> aList)
public static void removeChildren(RMShape aShape, java.util.List<? extends RMShape> theShapes)
public static RMShape groupShapes(java.util.List<? extends RMShape> theShapes, RMShape groupShape)
public static RMPath addPathsFromShapes(java.util.List<RMShape> theShapes)
public static RMPath subtractPathsFromShapes(java.util.List<? extends RMShape> theShapes, int inset)
public static boolean hasActionDeep(RMShape aShape)
public static float getAutosizeAlignmentX(RMShape aShape)
public static float getAutosizeAlignmentY(RMShape aShape)
public static RMShapeUtils.HoverTimer getHoverTimer()
public static void setHoverTimer(RMShapeUtils.HoverTimer aTimer)
public static RMShapeUtils.HoverTimer getHoverTimer(RMShapeMouseEvent anEvent)
public static RMShape getHoverShape()