|
||||||||||
| PREV CLASS Documentation homepage NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectilog.views.IlvGraphic
ilog.views.graphic.IlvGeneralPath
ilog.views.maps.graphic.IlvDecoratedPath
public class IlvDecoratedPath
A graphic object composed of decorations on a
java.awt.Shape.
IlvGeneralPath,
IlvPathDecoration,
Serialized Form| Constructor Summary | |
|---|---|
IlvDecoratedPath(IlvDecoratedPath source)
Copy constructor. |
|
IlvDecoratedPath(IlvInputStream stream)
Reads the object from an IlvInputStream. |
|
IlvDecoratedPath(Shape shape)
Constructs a new decorated path whose baseline is the specified java.awt.Shape. |
|
| Method Summary | |
|---|---|
IlvRect |
boundingBox(IlvTransformer t)
Computes the bounding box of this object for the specified transformer. |
boolean |
contains(IlvPoint p,
IlvPoint tp,
IlvTransformer t)
Tests if a point lies within the shape. |
IlvGraphic |
copy()
Returns a copy of this decorated path. |
void |
draw(Graphics graphics,
IlvTransformer t)
Draws this IlvDecoratedPath with the specified graphics
and the specified transformer. |
IlvPathDecoration |
getDecoration()
Returns the decoration for this decorated path. |
boolean |
isDecorationOn()
Returns true if the decoration of this decorated path
is to be drawn. |
void |
setDecoration(IlvPathDecoration decoration)
Sets the decoration for this decorated path. |
void |
setDecorationOn(boolean set)
Sets whether the decoration of this decorated path is to be drawn. |
void |
write(IlvOutputStream stream)
Writes this object to the specified IlvOutputStream. |
boolean |
zoomable()
Returns true if this object is zoomable. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public IlvDecoratedPath(Shape shape)
java.awt.Shape.
shape - The Shape of this decorated path.public IlvDecoratedPath(IlvDecoratedPath source)
source - The source decorated path.
public IlvDecoratedPath(IlvInputStream stream)
throws IlvReadFileException
IlvInputStream.
IlvReadFileException| Method Detail |
|---|
public void write(IlvOutputStream stream)
throws IOException
IlvOutputStream.
write in interface IlvPersistentObjectwrite in class IlvGeneralPathstream - The output stream.
IOException - thrown when an exception occurs during
the write operation for this object.public void setDecoration(IlvPathDecoration decoration)
decoration - The decoration.public IlvPathDecoration getDecoration()
public boolean isDecorationOn()
true if the decoration of this decorated path
is to be drawn.
public void setDecorationOn(boolean set)
set - If true, the decoration is drawn.
public void draw(Graphics graphics,
IlvTransformer t)
IlvDecoratedPath with the specified graphics
and the specified transformer.
draw in class IlvGeneralPathgraphics - The graphics to draw to.t - The viewing transformer.IlvGraphic.boundingBox(ilog.views.IlvTransformer),
IlvGraphic.zoomable(),
IlvGraphic
public boolean contains(IlvPoint p,
IlvPoint tp,
IlvTransformer t)
contains in class IlvGeneralPathp - The point to be tested.tp - The point p transformed by the transformer t.t - The transformation that was applied to the object when it
was drawn.
true if the point lies inside this graphic object.IlvGeneralPath.isContainsWhenNotFilled()public IlvGraphic copy()
copy in class IlvGeneralPathIlvGeneralPath.IlvGraphicpublic IlvRect boundingBox(IlvTransformer t)
boundingBox in interface IlvPolyPointsInterfaceboundingBox in class IlvGeneralPatht - The transformer.
IlvGeneralPath.getShapeBounds(IlvTransformer)public boolean zoomable()
true if this object is zoomable.
zoomable in class IlvGraphicIlvGraphic,
IlvGraphic.draw(java.awt.Graphics, ilog.views.IlvTransformer),
IlvGraphic.boundingBox(IlvTransformer),
IlvManager
|
||||||||||
| PREV CLASS Documentation homepage NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||