|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectus.zuercher.gpx2map.plotter.AbstractShape
public abstract class AbstractShape
AbstractShape represents a figure to be drawn on the output map.
| Field Summary | |
|---|---|
protected List<List<Pixel>> |
pixelsByRow
Each element of pixelsByRow contains the a List of
Pixels for a horizontal row of the shape. |
protected int |
zOrdering
The Z-ordering for this shape. |
| Constructor Summary | |
|---|---|
protected |
AbstractShape()
Constructs an AbstractShape. |
| Method Summary | |
|---|---|
abstract void |
computePixels(Dimension bounds)
The AbstractPlotter calls this method to allow the shape to
compute its Pixels. |
AbstractShapePixelRowIterator |
getPixelRowIterator()
Returns an AbstractShapePixelRowIterator on
pixelsByRow. |
int |
getZOrdering()
Returns the Z-ordering for this AbstractShape. |
void |
setZOrdering(int zOrdering)
Sets the Z-ordering for this AbstractShape. |
abstract int |
startDrawingRow()
Returns the vertical position of the first row in this shape. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected List<List<Pixel>> pixelsByRow
pixelsByRow contains the a List of
Pixels for a horizontal row of the shape.
protected int zOrdering
| Constructor Detail |
|---|
protected AbstractShape()
pixelsByRow.
| Method Detail |
|---|
public abstract void computePixels(Dimension bounds)
AbstractPlotter calls this method to allow the shape to
compute its Pixels. This allows simple shapes, such
as marker styles to delay populating pixelsByRow until its
necessary for plotting.
When computing pixels, the AbstractShape implementation should not include pixels outside the given image bounds.
bounds - maximum image dimensionspublic abstract int startDrawingRow()
public final AbstractShapePixelRowIterator getPixelRowIterator()
AbstractShapePixelRowIterator on
pixelsByRow. The AbstractPlotter guarantees this
method will not be called until after computePixels(Dimension).
AbstractShapePixelRowIterator on
pixelsByRow.public void setZOrdering(int zOrdering)
zOrdering - the new Z-ordering for this shape.getZOrdering()public int getZOrdering()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||