|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.partnersoft.geometry.xy.XyShapeList<T>
public class XyShapeList<T extends XyShape>
An ordered list of XyShapes. Useful for handling nonhomogenous collections of shapes, or for dealing with the results when regular shapes get demolished by cropping or transformations.
Copyright 2008 Partner Software, Inc.
| Constructor Summary | |
|---|---|
XyShapeList(java.util.List<T> shapes)
|
|
| Method Summary | |
|---|---|
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. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public XyShapeList(java.util.List<T> shapes)
| Method Detail |
|---|
public java.util.List<T> listShapes()
public XyBounds getBounds()
XyShape
getBounds in interface XyShape<XyShapeList>public XyShapeList<T> scaledBy(double factor)
XyShape
scaledBy in interface XyShape<XyShapeList>factor - scaling factor
public XyShape transformedBy(XyTransform transform)
XyShape
transformedBy in interface XyShape<XyShapeList>transform - affine transform to apply.
public XyShapeList<T> translatedBy(double offsetX,
double offsetY)
XyShape
translatedBy in interface XyShape<XyShapeList>offsetX - offset for the x dimensionoffsetY - offset for the y dimension
public java.util.Iterator<XyPoint> iterator()
iterator in interface java.lang.Iterable<XyPoint>
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||