|
||||||||||
| 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.IlvZoomableLabel
ilog.views.sdm.graphic.IlvPowerLabel
IlvZoomableLabel
public class IlvPowerLabel
A graphic widget to display a zoomable label with a background graphic. The background graphic is drawn below the label, its bounding box is fixed by the label length (for example: a relief rectangle).
IlvGraphicFactories.ZoomableLabel,
Serialized Form| Constructor Summary | |
|---|---|
IlvPowerLabel()
Deprecated. Bean constructor. |
|
IlvPowerLabel(IlvInputStream stream)
Deprecated. Reads the object from an IlvInputStream. |
|
IlvPowerLabel(IlvPoint position,
String label)
Deprecated. Creates a new IlvPowerLabel instance. |
|
IlvPowerLabel(IlvPowerLabel source)
Deprecated. Copy constructor of IlvPowerLabel. |
|
| Method Summary | |
|---|---|
void |
addObject(IlvGraphic graphic,
boolean redraw)
Deprecated. Adds a graphic object to the bag. |
void |
applyToObject(IlvGraphic graphic,
IlvApplyObject f,
Object arg,
boolean redraw)
Deprecated. Applies a method to a graphic object of the bag. |
void |
applyTransform(IlvTransformer t)
Deprecated. Applies a transformation to the shape of the object. |
IlvRect |
boundingBox(IlvTransformer t)
Deprecated. Returns the bounding rectangle of the object. |
boolean |
contains(IlvPoint p,
IlvPoint tp,
IlvTransformer t)
Deprecated. Tests whether a point lies within the outline of the object. |
void |
draw(Graphics dst,
IlvTransformer t)
Deprecated. Draws the object. |
IlvGraphic |
getBackgroundGraphic()
Deprecated. Returns the background graphic. |
float |
getMarginX()
Deprecated. Returns the X margin. |
float |
getMarginY()
Deprecated. Returns the Y margin. |
IlvGraphic |
getObject(String name)
Deprecated. Returns the graphic object with that name if it exists in the bag, otherwise returns null. |
IlvGraphicEnumeration |
getObjects()
Deprecated. Implementation of the IlvGraphicBag interface. |
void |
moveObject(IlvGraphic graphic,
float x,
float y,
boolean redraw)
Deprecated. Changes the location of a graphic object. |
void |
reDrawObj(IlvGraphic graphic)
Deprecated. Redraws a graphic object located in the bag. |
void |
reDrawRegion(IlvRegion region)
Deprecated. Redraws a region of the bag. |
void |
removeObject(IlvGraphic graphic,
boolean redraw)
Deprecated. Removes a graphic object from the bag. |
void |
reshapeObject(IlvGraphic graphic,
IlvRect newrect,
boolean redraw)
Deprecated. Changes the size of a graphic object. |
void |
setAntialiasing(boolean set)
Deprecated. Changes the anti-aliasing mode of the label. |
void |
setBackgroundGraphic(IlvGraphic g)
Deprecated. Changes the background graphic. |
void |
setFont(Font font)
Deprecated. Changes the font of the object. |
void |
setLabel(String label)
Deprecated. Changes the label. |
void |
setMarginX(float v)
Deprecated. Changes the X margin. |
void |
setMarginY(float v)
Deprecated. Changes the Y margin. |
boolean |
setObjectName(IlvGraphic graphic,
String name)
Deprecated. Changes the name of a graphic object. |
void |
setStroke(Stroke stroke)
Deprecated. Changes the object used when stroking the path. |
void |
setStrokeOn(boolean set)
Deprecated. When set to true, the shape of the
object is stroked. |
boolean |
supportMultiline()
Deprecated. Returns false. |
void |
write(IlvOutputStream stream)
Deprecated. Writes the object to an IlvOutputStream. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface ilog.views.IlvGraphicBag |
|---|
getGraphicBag |
| Constructor Detail |
|---|
public IlvPowerLabel()
public IlvPowerLabel(IlvPoint position,
String label)
IlvPowerLabel instance. It calls the
other constructor with the compatibility flag set.
position - The upper left corner of the label.label - The text of the label.public IlvPowerLabel(IlvPowerLabel source)
IlvPowerLabel.
source - The object that is copied.
public IlvPowerLabel(IlvInputStream stream)
throws IlvReadFileException
IlvInputStream.
stream - The input stream.
IlvReadFileException - if the format is not correct.| Method Detail |
|---|
public void setBackgroundGraphic(IlvGraphic g)
g - The new background graphic.public IlvGraphic getBackgroundGraphic()
public void setMarginX(float v)
v - The new margin.public float getMarginX()
public void setMarginY(float v)
v - The new margin.public float getMarginY()
public void setLabel(String label)
setLabel in interface IlvLabelInterfacesetLabel in class IlvZoomableLabellabel - The new label.IlvZoomableLabel.getLabel()public boolean supportMultiline()
false.
supportMultiline in interface IlvLabelInterfacesupportMultiline in class IlvZoomableLabelpublic void setFont(Font font)
setFont in interface IlvFontInterfacesetFont in class IlvZoomableLabelfont - The new font.IlvZoomableLabel.getFont()public void setStroke(Stroke stroke)
setStroke in class IlvZoomableLabelstroke - The new stroke object.setStrokeOn(boolean)public void setAntialiasing(boolean set)
setAntialiasing in class IlvZoomableLabelset - The new mode.public void setStrokeOn(boolean set)
true, the shape of the
object is stroked. Note that this may
change its bounding rectangle. For this reason
if the object is contained inside a manager
you should modify the shape using the applyToObject
method of the manager.
setStrokeOn in class IlvZoomableLabelset - true if the object is to be stroked.setStroke(java.awt.Stroke)
public void draw(Graphics dst,
IlvTransformer t)
draw in class IlvZoomableLabeldst - The destination Graphics.t - The transformation used to draw the object.IlvGraphic.boundingBox(ilog.views.IlvTransformer),
IlvGraphic.zoomable(),
IlvGraphicpublic IlvRect boundingBox(IlvTransformer t)
boundingBox in class IlvZoomableLabelt - The transformer used to draw the object.IlvGraphic.draw(java.awt.Graphics, ilog.views.IlvTransformer),
IlvGraphic.zoomable(),
IlvGraphic
public boolean contains(IlvPoint p,
IlvPoint tp,
IlvTransformer t)
contains in class IlvZoomableLabelp - 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.IlvGraphicpublic void applyTransform(IlvTransformer t)
applyTransform in class IlvZoomableLabelt - The transformer to be applied.IlvGraphic
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 IlvZoomableLabelstream - The output stream.
IOException - thrown when an exception occurs during
the write operation for this object.
public void addObject(IlvGraphic graphic,
boolean redraw)
addObject in interface IlvGraphicBaggraphic - The graphic object.redraw - If true the object is redrawn.
public void removeObject(IlvGraphic graphic,
boolean redraw)
removeObject in interface IlvGraphicBaggraphic - The graphic object.redraw - If true the object is redrawn.public IlvGraphicEnumeration getObjects()
IlvGraphicBag interface.
Do not call this method directly.
getObjects in interface IlvGraphicBagpublic void reDrawObj(IlvGraphic graphic)
reDrawObj in interface IlvGraphicBaggraphic - The graphic object.public void reDrawRegion(IlvRegion region)
reDrawRegion in interface IlvGraphicBagregion - The region to redraw.
public void reshapeObject(IlvGraphic graphic,
IlvRect newrect,
boolean redraw)
reshapeObject in interface IlvGraphicBaggraphic - The graphic object.newrect - The new desired bounding rectangle.redraw - If true the object is redrawn.
public void moveObject(IlvGraphic graphic,
float x,
float y,
boolean redraw)
moveObject in interface IlvGraphicBaggraphic - The graphic object.x - The new desired x position.y - The new desired y position.redraw - If true the object is redrawn.
public void applyToObject(IlvGraphic graphic,
IlvApplyObject f,
Object arg,
boolean redraw)
applyToObject in interface IlvGraphicBaggraphic - The graphic object.f - The method to apply.arg - The arguments passed to the method f.redraw - If true the object is redrawn.
public boolean setObjectName(IlvGraphic graphic,
String name)
setObjectName in interface IlvGraphicBaggraphic - The graphic object.name - The new name.
true if the name can be changed.public IlvGraphic getObject(String name)
null.
getObject in interface IlvGraphicBagname - The graphic object name.
|
||||||||||
| PREV CLASS Documentation homepage NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||