public class RMShapeUtils
extends java.lang.Object
Constructor and Description |
---|
RMShapeUtils() |
Modifier and Type | Method and Description |
---|---|
static Image |
createImage(RMShape aShape,
Color aColor)
Returns an image for the given shape, with given background color (null for clear) and scale.
|
static Rect |
getBoundsOfChildren(RMShape aShape,
java.util.List<? extends RMShape> aList)
Returns the bounds of a given subset of this shape's children.
|
static Shape |
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 Shape |
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 |
paintShape(Painter aPntr,
RMShape aShape,
Rect aBounds,
double aScale)
Paints a simple shape.
|
static void |
repaint(java.util.List<? extends RMShape> theShapes)
Convenience to mark a whole list of shapes for repaint.
|
public static void repaint(java.util.List<? extends RMShape> theShapes)
public static Rect 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 Shape getCombinedPath(java.util.List<RMShape> theShapes)
public static RMPolygonShape getSubtractedPathsShape(java.util.List<RMShape> theShapes, int anInset)
public static Shape getSubtractedPath(java.util.List<RMShape> theShapes, int anInset)
public static Image createImage(RMShape aShape, Color aColor)
public static void paintShape(Painter aPntr, RMShape aShape, Rect aBounds, double aScale)