public abstract class IlvClippedPathDecoration extends Object implements IlvPathDecoration
draw() method with such
clipping.
draw() method with a phase.| Constructor and Description |
|---|
IlvClippedPathDecoration(double flatness)
Constructs a new
IlvClippedPathDecoration with the
specified flattening factor. |
IlvClippedPathDecoration(IlvInputStream stream)
Reads an
IlvClippedPathDecoration from the specified stream. |
| Modifier and Type | Method and Description |
|---|---|
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,
double 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.
|
double |
getFlatness()
Returns the flatness factor.
|
void |
write(IlvOutputStream stream)
Writes this
IlvClippedPathDecoration to the specified stream. |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitequivalentWidth, isZoomablepublic IlvClippedPathDecoration(double 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.public void write(IlvOutputStream stream) throws IOException
IlvClippedPathDecoration to the specified stream.stream - The output stream.IOException - If an error occurs when writing.public double 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, double 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.© Copyright Rogue Wave Software, Inc. 1997, 2017. All Rights Reserved.