|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectus.zuercher.gpx2map.plotter.AbstractShape
us.zuercher.gpx2map.plotter.Shape
public class Shape
Shape extends AbstractShape
to draw arbitrary shapes at
predetermined locations.
Field Summary | |
---|---|
private Collection<Pixel> |
pixels
Pixel data used to render the Shape. |
private int |
startDrawingRow
Minimum Y coordinate of all pixels. |
Fields inherited from class us.zuercher.gpx2map.plotter.AbstractShape |
---|
pixelsByRow, zOrdering |
Constructor Summary | |
---|---|
Shape(Collection<Pixel> pixels)
Constructs a new Shape that draws the given Pixels . |
Method Summary | |
---|---|
void |
computePixels(Dimension bounds)
Organizes this Shape's Pixels as necessary for plotting. |
int |
startDrawingRow()
Returns the starting row of shape data. |
Methods inherited from class us.zuercher.gpx2map.plotter.AbstractShape |
---|
getPixelRowIterator, getZOrdering, setZOrdering |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
private Collection<Pixel> pixels
private final int startDrawingRow
Constructor Detail |
---|
public Shape(Collection<Pixel> pixels)
Pixels
.
pixels
- shape dataMethod Detail |
---|
public int startDrawingRow()
startDrawingRow
in class AbstractShape
AbstractShape.startDrawingRow()
public void computePixels(Dimension bounds)
Pixels
as necessary for plotting.
computePixels
in class AbstractShape
bounds
- the image dimensionsAbstractShape.computePixels(Dimension)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |