public class XyShapeList<T extends XyShape> extends java.lang.Object implements XyShape<XyShapeList>
Copyright 2008 Partner Software, Inc.
| Constructor and Description |
|---|
XyShapeList(java.util.List<T> shapes) |
| Modifier and Type | Method and Description |
|---|---|
XyBounds |
getBounds()
Returns an XyBounds object representing the rectangular extents of this
shape.
|
java.util.Iterator<XyPoint> |
iterator() |
java.util.List<T> |
listShapes() |
XyShapeList<T> |
scaledBy(double factor)
Return a scaled version of the shape by multiplying all coordinates by
the given factor in both dimensions.
|
XyShape |
transformedBy(XyTransform transform)
Transform the shape using the given transform.
|
XyShapeList<T> |
translatedBy(double offsetX,
double offsetY)
Translate the shape by adding all coordinates to the given x and y
offsets.
|
public XyShapeList(java.util.List<T> shapes)
public java.util.List<T> listShapes()
public XyBounds getBounds()
XyShapegetBounds in interface XyShape<XyShapeList>public XyShapeList<T> scaledBy(double factor)
XyShapescaledBy in interface XyShape<XyShapeList>factor - scaling factorpublic XyShape transformedBy(XyTransform transform)
XyShapetransformedBy in interface XyShape<XyShapeList>transform - affine transform to apply.public XyShapeList<T> translatedBy(double offsetX, double offsetY)
XyShapetranslatedBy in interface XyShape<XyShapeList>offsetX - offset for the x dimensionoffsetY - offset for the y dimension