|
||||||||||
| PREV CLASS Documentation homepage NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectilog.views.maps.graphic.IlvShapeEndedPathDecoration
public class IlvShapeEndedPathDecoration
A path decoration that draws the decorations with a shape at each end of the path. This class is typically used to draw arrows.
| Constructor Summary | |
|---|---|
IlvShapeEndedPathDecoration(IlvInputStream stream)
Reads an IlvShapeEndedPathDecoration from the specified stream. |
|
IlvShapeEndedPathDecoration(Shape start,
Shape end,
float flatness,
boolean zoomable)
Constructs a new IlvShapeEndedPathDecoration with the
specified shapes at each ends. |
|
| 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. |
Shape |
getEnd()
Returns the end shape for this decoration. |
float |
getFlatness()
Returns the flatness used when drawing this decoration. |
Shape |
getStart()
Returns the start shape for this decoration. |
boolean |
isZoomable()
Returns true if this path decoration is zoomable. |
void |
write(IlvOutputStream stream)
Writes this IlvShapeEndedPathDecoration to the specified stream. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public IlvShapeEndedPathDecoration(Shape start,
Shape end,
float flatness,
boolean zoomable)
IlvShapeEndedPathDecoration with the
specified shapes at each ends.
start - The Shape used to decorate the path start.end - The Shape used to decorate the path end.flatness - The flatness used to iterate on the decorated path.zoomable - If true, the decoration is made zoomable.
public IlvShapeEndedPathDecoration(IlvInputStream stream)
throws IlvReadFileException
IlvShapeEndedPathDecoration from the specified stream.
IlvReadFileException| Method Detail |
|---|
public void write(IlvOutputStream stream)
throws IOException
IlvShapeEndedPathDecoration to the specified stream.
write in interface IlvPersistentObjectstream - the output stream
IOException - thrown when an exception occurs during
the write operation for this object.public float getFlatness()
public Shape getStart()
public Shape getEnd()
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 | |||||||||