|
||||||||||
| 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.IlvLabel
ilog.views.graphic.IlvFilledLabel
public class IlvFilledLabel
A label with a colored background.
| Constructor Summary | |
|---|---|
IlvFilledLabel()
Creates a new IlvFilledLabel with a center in (0, 0)
and an empty label. |
|
IlvFilledLabel(IlvFilledLabel source)
Creates a new IlvFilledLabel by copying an existing one. |
|
IlvFilledLabel(IlvInputStream stream)
Reads the object from an IlvInputStream. |
|
IlvFilledLabel(IlvPoint center,
String label)
Creates a new IlvFilledLabel. |
|
| Method Summary | |
|---|---|
IlvGraphic |
copy()
Copies the object. |
void |
draw(Graphics dst,
IlvTransformer t)
Draws the object. |
Color |
getBackground()
Returns the background color of the object. |
void |
setBackground(Color color)
Changes the background color of the object. |
void |
write(IlvOutputStream stream)
Writes the object to an IlvOutputStream. |
| Methods inherited from class ilog.views.graphic.IlvLabel |
|---|
applyTransform, boundingBox, contains, getCaretShape, getCenter, getFont, getForeground, getLabel, getLabelBBox, isAntialiasing, lineCount, lineOffset, makeSelection, pickCharacter, setAntialiasing, setCenter, setFont, setForeground, setLabel, supportMultiline, toString, zoomable |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public IlvFilledLabel()
IlvFilledLabel with a center in (0, 0)
and an empty label.
IlvFilledLabel(IlvPoint, String)
public IlvFilledLabel(IlvPoint center,
String label)
center - the center point of the object.label - the label of the object.public IlvFilledLabel(IlvFilledLabel source)
source - the origin object for the copy.
public IlvFilledLabel(IlvInputStream stream)
throws IlvReadFileException
stream - the input stream.
IlvReadFileException - if the format is not correct.| Method Detail |
|---|
public IlvGraphic copy()
copy in class IlvLabelIlvGraphic
public void draw(Graphics dst,
IlvTransformer t)
draw in class IlvLabeldst - The destination Graphics.t - The transformation used to draw the object.IlvGraphic.boundingBox(ilog.views.IlvTransformer),
IlvGraphic.zoomable(),
IlvGraphicpublic void setBackground(Color color)
setBackground in class IlvGraphiccolor - the new color.getBackground()public Color getBackground()
setBackground(java.awt.Color)
public void write(IlvOutputStream stream)
throws IOException
IlvOutputStream.
Note that even if this is a public method, you should not
call it directly, you should use the write
methods of the manager.
write in interface IlvPersistentObjectwrite in class IlvLabelstream - The output stream.
IOException - thrown when an exception occurs during
the write operation for this object.
|
||||||||||
| PREV CLASS Documentation homepage NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||