|
||||||||||
| PREV CLASS Documentation homepage NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectilog.views.maps.graphic.IlvMultiPathDecoration
public class IlvMultiPathDecoration
This class implements a path decoration composed of multiple path
decorations.
When drawing, a multipath decoration draws the decorations in the
order they are set, and with the following behavior:
IlvClippedPathDecoration,
then it will be drawn using a clipped Shape.draw() method of IlvDecoratedPath.
| Constructor Summary | |
|---|---|
IlvMultiPathDecoration(IlvInputStream stream)
Creates a new IlvMultiPathDecoration by reading it from a
stream. |
|
IlvMultiPathDecoration(IlvPathDecoration[] deco)
Constructs a new IlvMultiPathDecoration that draws the decoration
using the specified decorations. |
|
| Method Summary | |
|---|---|
IlvRect |
boundingBox(Shape shape,
IlvRect r,
IlvTransformer t)
Returns the bounding box of the specified shape, if it is decorated using this decoration. |
void |
draw(Graphics2D graphics,
Shape shape,
IlvTransformer t)
Draws the decoration for the specified shape in the specified graphics. |
float |
equivalentWidth(IlvTransformer t)
Returns an equivalent line width for the specified transformer. |
boolean |
isZoomable()
Returns true if this path decoration is zoomable. |
void |
write(IlvOutputStream stream)
Writes this decoration to an IlvOutputStream. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public IlvMultiPathDecoration(IlvInputStream stream)
IlvMultiPathDecoration by reading it from a
stream.
stream - The stream to read from.public IlvMultiPathDecoration(IlvPathDecoration[] deco)
IlvMultiPathDecoration that draws the decoration
using the specified decorations.
deco - An array of decorations to use.| Method Detail |
|---|
public void write(IlvOutputStream stream)
throws IOException
IlvOutputStream.
write in interface IlvPersistentObjectstream - The output stream to write to.
IOException - if there is a standard IO error.IlvPersistentObject.write(ilog.views.io.IlvOutputStream)
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 IlvRect boundingBox(Shape shape,
IlvRect r,
IlvTransformer t)
r 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 whose bounding box is to be computed.r - The IlvRect that will contain the result.t - The transformer for this bounding box.public boolean isZoomable()
true if this path decoration is zoomable.
isZoomable in interface IlvPathDecorationpublic float equivalentWidth(IlvTransformer t)
equivalentWidth in interface IlvPathDecorationt - The transformer to compute the equivalent width.
|
||||||||||
| PREV CLASS Documentation homepage NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||