public static class IlvDecorationPropertyEditor.PredefinedDecoration extends Object implements IlvPathDecoration, IlvPersistentObject
Constructor and Description |
---|
PredefinedDecoration(IlvInputStream stream)
Creates a PredefinedDecoration by reading the id from a stream.
|
Modifier and Type | Method and Description |
---|---|
IlvRect |
boundingBox(Shape shape,
IlvRect rect,
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.
|
boolean |
equals(Object t) |
double |
equivalentWidth(IlvTransformer t)
Returns an equivalent line width to this path decoration,
if it is drawn using the specified transformer.
|
IlvPathDecoration |
getDelegate()
Returns the delegate decoration.
|
boolean |
isZoomable()
Returns
true if this path decoration is zoomable. |
void |
write(IlvOutputStream stream)
Writes the attributes of a persistent object.
|
public PredefinedDecoration(IlvInputStream stream)
stream
- stream to read from.public boolean equals(Object t)
equals
in class Object
Object.equals(java.lang.Object)
public void draw(Graphics2D graphics, Shape shape, IlvTransformer t)
draw
in interface IlvPathDecoration
IlvPathDecoration.draw(java.awt.Graphics2D, java.awt.Shape, ilog.views.IlvTransformer)
public IlvRect boundingBox(Shape shape, IlvRect rect, 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.rect
- The IlvRect
that will contain the result.t
- The transformer for this bounding box.IlvPathDecoration.boundingBox(java.awt.Shape, ilog.views.IlvRect, ilog.views.IlvTransformer)
public boolean isZoomable()
true
if this path decoration is zoomable.isZoomable
in interface IlvPathDecoration
IlvPathDecoration.isZoomable()
public double equivalentWidth(IlvTransformer t)
equivalentWidth
in interface IlvPathDecoration
t
- The transformer to compute the equivalent width.IlvPathDecoration.equivalentWidth(ilog.views.IlvTransformer)
public void write(IlvOutputStream stream) throws IOException
write
in interface IlvPersistentObject
stream
- the output streamIOException
- thrown when an exception occurs during
the write operation for this object.IlvPersistentObject.write(ilog.views.io.IlvOutputStream)
public IlvPathDecoration getDelegate()
© Copyright 2024 Rogue Wave Software, Inc., a Perforce company.. All Rights Reserved.