|
||||||||||
| 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.graphic.IlvDefaultCollapsedGraphic
public class IlvDefaultCollapsedGraphic
A graphic object that shows a folder with a label underneath.
This graphic object is the default graphic object that
is used to represent a collapsed manager.
IlvManager.setCollapsedGraphic(ilog.views.IlvGraphic),
IlvManager.setCollapsed(boolean),
Serialized Form| Constructor Summary | |
|---|---|
IlvDefaultCollapsedGraphic()
Creates the graphic object. |
|
IlvDefaultCollapsedGraphic(IlvDefaultCollapsedGraphic origin)
Creates the graphic object by copying the specified one. |
|
IlvDefaultCollapsedGraphic(IlvInputStream stream)
Reads the object from an IlvInputStream. |
|
| Method Summary | |
|---|---|
void |
applyTransform(IlvTransformer t)
Applies a transformation to the shape of the object. |
IlvRect |
boundingBox(IlvTransformer t)
Returns the bounding rectangle of the object. |
boolean |
contains(IlvPoint p,
IlvPoint tp,
IlvTransformer t)
Tests if a point lies within the outline of the object. |
IlvGraphic |
copy()
Copies the object. |
void |
draw(Graphics g,
IlvTransformer t)
Draws the object. |
Font |
getFont()
Returns the font of the label. |
IlvPoint |
getIntersectionWithOutline(IlvPoint innerPoint,
IlvPoint outerPoint,
IlvTransformer t)
Returns the intersection of the line segment from inner point to outer point with the shape of the graphic object. |
String |
getLabel()
Returns the label of the object. |
IlvRect |
getLabelBBox(IlvTransformer t)
Returns the area where the label is displayed. |
Paint |
getLabelFillPaint()
Returns the paint object used to fill the label. |
void |
setFont(Font font)
Changes the font of the label. |
void |
setLabel(String label)
Changes the label. |
void |
setLabelFillPaint(Paint paint)
Changes the paint object used to fill the label. |
boolean |
supportMultiline()
Returns true if the label can be a multi-line label;
false otherwise. |
void |
write(IlvOutputStream stream)
Writes the object to an IlvOutputStream. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public IlvDefaultCollapsedGraphic()
public IlvDefaultCollapsedGraphic(IlvDefaultCollapsedGraphic origin)
origin - The origin of the copy.
public IlvDefaultCollapsedGraphic(IlvInputStream stream)
throws IOException,
IlvReadFileException
IlvInputStream.
stream - The input stream.
IlvReadFileException - if the format is not correct.
IOExceptionwrite(IlvOutputStream)| Method Detail |
|---|
public IlvGraphic copy()
copy in class IlvGeneralPathIlvGeneralPath.IlvGraphic
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 setLabel(String label)
setLabel in interface IlvLabelInterfacelabel - The new labelgetLabel()public String getLabel()
getLabel in interface IlvLabelInterfacesetLabel(java.lang.String)public boolean supportMultiline()
true if the label can be a multi-line label;
false otherwise.
supportMultiline in interface IlvLabelInterfacepublic IlvRect getLabelBBox(IlvTransformer t)
getLabelBBox in interface IlvLabelInterfacet - the transformer used to draw the graphic object.public void setFont(Font font)
font - The new font.getFont()public Font getFont()
setFont(java.awt.Font)public void setLabelFillPaint(Paint paint)
paint - the new filling object.getLabelFillPaint()public Paint getLabelFillPaint()
setLabelFillPaint(java.awt.Paint)
public void draw(Graphics g,
IlvTransformer t)
draw in class IlvGeneralPathg - The destination Graphics.t - The transformation used to draw the object.IlvGraphic.boundingBox(ilog.views.IlvTransformer),
IlvGraphic.zoomable(),
IlvGraphicpublic void applyTransform(IlvTransformer t)
applyTransform in class IlvGeneralPatht - The transformer to be applied.IlvGeneralPath.setClip(java.awt.Shape)
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 used to draw the object.
true if the point lies inside this graphic object.IlvGeneralPath.isContainsWhenNotFilled()public IlvRect boundingBox(IlvTransformer t)
boundingBox in interface IlvPolyPointsInterfaceboundingBox in class IlvGeneralPatht - The transformer used to draw the object.IlvGeneralPath.getShapeBounds(IlvTransformer)
public IlvPoint getIntersectionWithOutline(IlvPoint innerPoint,
IlvPoint outerPoint,
IlvTransformer t)
innerPoint is not inside the graphic object,
or if outerPoint is not outside the graphic object, it
must return a valid point. For instance, if there is no intersection,
it can return the start point.
getIntersectionWithOutline in class IlvGeneralPathinnerPoint - A point usually inside the graphic object, given in
manager view coordinates.outerPoint - A point usually outside of the graphic object, given in
manager view coordinates.t - The transformation used to draw the object.IlvClippingLinkConnector
|
||||||||||
| PREV CLASS Documentation homepage NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||