|
||||||||||
| PREV CLASS Documentation homepage NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectilog.views.maps.graphic.IlvClippedPathDecoration
public abstract class IlvClippedPathDecoration
This abstract class implements a clipping behavior on path decorations.
Clipped path decorations have the ability to do the rendering of decorations
only on the part of the path that intersects the clip area of the graphics.
This abstract class implements the draw() method with such
clipping.
Subclasses of clipped path decoration just have to implement the
draw() method with a phase.
| Constructor Summary | |
|---|---|
IlvClippedPathDecoration(float flatness)
Constructs a new IlvClippedPathDecoration with the
specified flattening factor. |
|
IlvClippedPathDecoration(IlvInputStream stream)
Reads an IlvClippedPathDecoration from the specified stream. |
|
| Method Summary | |
|---|---|
abstract IlvRect |
boundingBox(Shape shape,
IlvRect rect,
IlvTransformer t)
Returns the bounding box of the specified shape, if it is decorated using this decoration. |
abstract void |
draw(Graphics2D graphics,
Shape subshape,
float phase,
IlvTransformer t)
Draws the decoration for the specified shape, which is a sub-shape of the original shape. |
void |
draw(Graphics2D graphics,
Shape shape,
IlvTransformer t)
Draws the decoration for the specified shape in the specified graphics. |
float |
getFlatness()
Returns the flatness factor. |
void |
write(IlvOutputStream stream)
Writes this IlvClippedPathDecoration to the specified stream. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface ilog.views.maps.graphic.IlvPathDecoration |
|---|
equivalentWidth, isZoomable |
| Constructor Detail |
|---|
public IlvClippedPathDecoration(float flatness)
IlvClippedPathDecoration with the
specified flattening factor.
flatness - The flatness used when clipping.
public IlvClippedPathDecoration(IlvInputStream stream)
throws IlvReadFileException
IlvClippedPathDecoration from the specified stream.
stream - The input stream.
IlvReadFileException - If an error occurs when reading.| Method Detail |
|---|
public void write(IlvOutputStream stream)
throws IOException
IlvClippedPathDecoration to the specified stream.
stream - The output stream.
IOException - If an error occurs when writing.public float getFlatness()
public void draw(Graphics2D graphics,
Shape shape,
IlvTransformer t)
draw in interface IlvPathDecorationgraphics - The Graphics2D to draw in.shape - The Shape to draw.t - The viewing transformer.
public abstract void draw(Graphics2D graphics,
Shape subshape,
float phase,
IlvTransformer t)
Paint should have been
set to the Graphics2D to draw this decoration.
graphics - The Graphics2D to draw in.subshape - The Shape to draw.phase - The phase to draw this decoration.t - The viewing transformer.
public abstract IlvRect boundingBox(Shape shape,
IlvRect rect,
IlvTransformer t)
rect is non-null, the result is put in r and
returned, otherwise the result is returned in a newly allocated
IlvRect.
boundingBox in interface IlvPathDecorationshape - The shape which bounding box is to be computed.rect - The IlvRect that will contain the result.t - The transformer for this bounding box.
|
||||||||||
| PREV CLASS Documentation homepage NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||