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 RMRect |
getBoundsOfChildren(RMShape aShape,
java.util.List<? extends RMShape> aList)
Returns the bounds of a given subset of this shape's children.
|
static RMPath |
getCombinedPath(java.util.List<RMShape> theShapes)
Returns the combined path from given shapes.
|
static RMPolygonShape |
getCombinedPathsShape(java.util.List<RMShape> theShapes)
Returns a polygon shape by combining paths of given shapes.
|
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 RMPath |
getSubtractedPath(java.util.List<RMShape> theShapes,
int anInset)
Returns the combined path from given shapes.
|
static RMPolygonShape |
getSubtractedPathsShape(java.util.List<RMShape> theShapes,
int anInset)
Returns a polygon shape by combining paths of given shapes.
|
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.
|
static void |
repaint(java.util.List<? extends RMShape> theShapes)
Convenience to mark a whole list of shapes for repaint.
|
static void |
setHoverTimer(RMShapeUtils.HoverTimer aTimer)
Sets the hover timer.
|
public static void repaint(java.util.List<? extends RMShape> theShapes)
public static RMRect getBoundsOfChildren(RMShape aShape, java.util.List<? extends RMShape> aList)
public static RMParentShape groupShapes(java.util.List<? extends RMShape> theShapes, RMParentShape groupShape)
public static RMPolygonShape getCombinedPathsShape(java.util.List<RMShape> theShapes)
public static RMPath getCombinedPath(java.util.List<RMShape> theShapes)
public static RMPolygonShape getSubtractedPathsShape(java.util.List<RMShape> theShapes, int anInset)
public static RMPath getSubtractedPath(java.util.List<RMShape> theShapes, int anInset)
public static RMShapeUtils.HoverTimer getHoverTimer()
public static void setHoverTimer(RMShapeUtils.HoverTimer aTimer)
public static RMShapeUtils.HoverTimer getHoverTimer(RMShapeMouseEvent anEvent)
public static RMShape getHoverShape()