public class IlvMultiPathDecoration extends Object implements IlvPathDecoration, IlvPersistentObject
IlvClippedPathDecoration
,
then it will be drawn using a clipped Shape
.draw()
method of IlvDecoratedPath
.Constructor and Description |
---|
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. |
Modifier and Type | Method and Description |
---|---|
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.
|
double |
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 . |
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.public void write(IlvOutputStream stream) throws IOException
IlvOutputStream
.write
in interface IlvPersistentObject
stream
- 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 IlvPathDecoration
graphics
- 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 IlvPathDecoration
shape
- 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 IlvPathDecoration
public double equivalentWidth(IlvTransformer t)
equivalentWidth
in interface IlvPathDecoration
t
- The transformer to compute the equivalent width.© Copyright Rogue Wave Software, Inc. 1997, 2018. All Rights Reserved.