|
||||||||||
| 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
ilog.views.maps.graphic.IlvShapedPathDecoration
public class IlvShapedPathDecoration
A path decoration that is a Shape repeated at specified
intervals.
A zoomable IlvShapedPathDecoration has its decoration
and decoration repetition interval zooming depending on the zoom level
of the view.
A non-zoomable IlvShapedPathDecoration displays its
decoration at a fixed size.
IlvClippedPathDecoration,
IlvDecoratedPath| Constructor Summary | |
|---|---|
IlvShapedPathDecoration(IlvInputStream stream)
Reads an IlvShapedPathDecoration from the specified stream. |
|
IlvShapedPathDecoration(Shape decoration,
float interval,
boolean zoomable)
Constructs a new IlvShapedPathDecoration, with the
specified paint, no stroke, and a default phase and flatness of 0. |
|
IlvShapedPathDecoration(Shape decoration,
float interval,
float phase,
float flatness,
boolean zoomable)
Constructs a new IlvShapedPathDecoration with the
specified flattening factor. |
|
| 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 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 |
equivalentWidth(IlvTransformer t)
Returns an equivalent line width to this path decoration, if it is drawn using the specified transformer. |
Shape |
getDecoration()
Returns the shape used as decoration of this path decoration. |
float |
getInterval()
Returns the interval of the decoration repetition. |
float |
getPhase()
Returns the phase before drawing the first decoration. |
boolean |
isZoomable()
Returns true if this path decoration is zoomable. |
void |
write(IlvOutputStream stream)
Writes this IlvShapedPathDecoration to the specified stream. |
| Methods inherited from class ilog.views.maps.graphic.IlvClippedPathDecoration |
|---|
getFlatness |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public IlvShapedPathDecoration(Shape decoration,
float interval,
boolean zoomable)
IlvShapedPathDecoration, with the
specified paint, no stroke, and a default phase and flatness of 0.
decoration - The decoration to repeat.interval - The interval at which the decoration is repeated.zoomable - If true, the decoration is zoomable.
public IlvShapedPathDecoration(Shape decoration,
float interval,
float phase,
float flatness,
boolean zoomable)
IlvShapedPathDecoration with the
specified flattening factor.
decoration - The decoration to repeat.interval - The interval at which the decoration is repeated.phase - The phase for decoration drawing (like dash phase).flatness - The flatness used to iterate on the decorated path.zoomable - If true, the decoration is zoomable.
public IlvShapedPathDecoration(IlvInputStream stream)
throws IlvReadFileException
IlvShapedPathDecoration from the specified stream.
IlvReadFileException| Method Detail |
|---|
public void write(IlvOutputStream stream)
throws IOException
IlvShapedPathDecoration to the specified stream.
write in interface IlvPersistentObjectwrite in class IlvClippedPathDecorationstream - The output stream.
IOException - If an error occurs when writing.public Shape getDecoration()
public float getInterval()
public float getPhase()
public void draw(Graphics2D graphics,
Shape subshape,
float phase,
IlvTransformer t)
draw in class IlvClippedPathDecorationgraphics - The Graphics2D to draw in.subshape - The Shape to draw.phase - The phase to draw this decoration.t - The viewing transformer.public float equivalentWidth(IlvTransformer t)
equivalentWidth in interface IlvPathDecorationt - The transformer to compute the equivalent width.
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 IlvPathDecorationboundingBox in class IlvClippedPathDecorationshape - The shape which 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 IlvPathDecoration
public void draw(Graphics2D graphics,
Shape shape,
IlvTransformer t)
draw in interface IlvPathDecorationdraw in class IlvClippedPathDecorationgraphics - The Graphics2D to draw in.shape - The Shape to draw.t - The viewing transformer.IlvClippedPathDecoration.draw(java.awt.Graphics2D, java.awt.Shape, ilog.views.IlvTransformer)
|
||||||||||
| PREV CLASS Documentation homepage NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||