ilog.views.sdm.graphic
Class IlvPowerLabel

java.lang.Object
  extended by ilog.views.IlvGraphic
      extended by ilog.views.graphic.IlvZoomableLabel
          extended by ilog.views.sdm.graphic.IlvPowerLabel
All Implemented Interfaces:
IlvFontInterface, IlvGraphicBag, IlvLabelInterface, IlvPersistentObject, Transferable, Serializable

Deprecated. replaced by IlvZoomableLabel

public class IlvPowerLabel
extends IlvZoomableLabel
implements IlvGraphicBag

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).

Since:
JDK1.2, JViews 4.0
See Also:
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 ilog.views.graphic.IlvZoomableLabel
adaptPaint, copy, getBackgroundPaint, getBottomMargin, getCenter, getClip, getFillPaint, getFont, getJustification, getLabel, getLabelBBox, getLeftMargin, getMultilineSpacing, getRightMargin, getStroke, getStrokePaint, getTopMargin, getTransformer, isAntialiasing, isBackgroundOn, isBorderOn, isFillOn, isFractionalMetrics, isPaintAbsolute, isStrokeOn, IsTransformerDependentRendering, moveResize, resize, setBackgroundOn, setBackgroundPaint, setBorderOn, setBottomMargin, setCenter, setClip, setFillOn, setFillPaint, setForeground, setFractionalMetrics, setJustification, setLeftMargin, setMultilineSpacing, setPaintAbsolute, setRightMargin, setStrokePaint, setTopMargin, SetTransformerDependentRendering, toString
 
Methods inherited from class ilog.views.IlvGraphic
addActionListener, addNamedPropertyListener, boundingBox, getAndAssociateObjectInteractor, getCenter, getDefaultInteractor, getGraphicBag, GetGraphicObject, getIntersectionWithOutline, getName, getNamedProperty, getObjectInteractor, getPopupMenu, getPopupMenu, getPopupMenuName, getProperty, getToolTipText, getToolTipText, getTopLevelGraphicBag, getTransferData, getTransferDataFlavors, hasProperty, inside, intersects, isDataFlavorSupported, isEditable, isInApplyToObject, isMovable, isPersistent, isSelectable, isVisible, makeSelection, move, move, notifyObjectInteractorToManager, processActionEvent, reDraw, removeActionListener, removeNamedProperty, removeNamedPropertyListener, removeProperty, replaceProperty, rotate, scale, setBackground, setEditable, setGraphicBag, setInApplyToObject, setMovable, setName, setNamedProperty, setNameImpl, setObjectInteractor, setPopupMenu, setPopupMenuName, setProperty, setSelectable, setToolTipText, setVisible, translate, zoomable
 
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

IlvPowerLabel

public IlvPowerLabel()
Deprecated. 
Bean constructor.


IlvPowerLabel

public IlvPowerLabel(IlvPoint position,
                     String label)
Deprecated. 
Creates a new IlvPowerLabel instance. It calls the other constructor with the compatibility flag set.

Parameters:
position - The upper left corner of the label.
label - The text of the label.

IlvPowerLabel

public IlvPowerLabel(IlvPowerLabel source)
Deprecated. 
Copy constructor of IlvPowerLabel.

Parameters:
source - The object that is copied.

IlvPowerLabel

public IlvPowerLabel(IlvInputStream stream)
              throws IlvReadFileException
Deprecated. 
Reads the object from an IlvInputStream.

Parameters:
stream - The input stream.
Throws:
IlvReadFileException - if the format is not correct.
Method Detail

setBackgroundGraphic

public void setBackgroundGraphic(IlvGraphic g)
Deprecated. 
Changes the background graphic.

Parameters:
g - The new background graphic.

getBackgroundGraphic

public IlvGraphic getBackgroundGraphic()
Deprecated. 
Returns the background graphic.


setMarginX

public void setMarginX(float v)
Deprecated. 
Changes the X margin.

Parameters:
v - The new margin.

getMarginX

public float getMarginX()
Deprecated. 
Returns the X margin.


setMarginY

public void setMarginY(float v)
Deprecated. 
Changes the Y margin.

Parameters:
v - The new margin.

getMarginY

public float getMarginY()
Deprecated. 
Returns the Y margin.


setLabel

public void setLabel(String label)
Deprecated. 
Changes the label.

Specified by:
setLabel in interface IlvLabelInterface
Overrides:
setLabel in class IlvZoomableLabel
Parameters:
label - The new label.
See Also:
IlvZoomableLabel.getLabel()

supportMultiline

public boolean supportMultiline()
Deprecated. 
Returns false.

Specified by:
supportMultiline in interface IlvLabelInterface
Overrides:
supportMultiline in class IlvZoomableLabel

setFont

public void setFont(Font font)
Deprecated. 
Changes the font of the object.

Specified by:
setFont in interface IlvFontInterface
Overrides:
setFont in class IlvZoomableLabel
Parameters:
font - The new font.
See Also:
IlvZoomableLabel.getFont()

setStroke

public void setStroke(Stroke stroke)
Deprecated. 
Changes the object used when stroking the path.

Overrides:
setStroke in class IlvZoomableLabel
Parameters:
stroke - The new stroke object.
See Also:
setStrokeOn(boolean)

setAntialiasing

public void setAntialiasing(boolean set)
Deprecated. 
Changes the anti-aliasing mode of the label. Changing this mode may change the bounding box of the object.

Overrides:
setAntialiasing in class IlvZoomableLabel
Parameters:
set - The new mode.

setStrokeOn

public void setStrokeOn(boolean set)
Deprecated. 
When set to 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.

Overrides:
setStrokeOn in class IlvZoomableLabel
Parameters:
set - true if the object is to be stroked.
See Also:
setStroke(java.awt.Stroke)

draw

public void draw(Graphics dst,
                 IlvTransformer t)
Deprecated. 
Draws the object.

Overrides:
draw in class IlvZoomableLabel
Parameters:
dst - The destination Graphics.
t - The transformation used to draw the object.
See Also:
IlvGraphic.boundingBox(ilog.views.IlvTransformer), IlvGraphic.zoomable(), IlvGraphic

boundingBox

public IlvRect boundingBox(IlvTransformer t)
Deprecated. 
Returns the bounding rectangle of the object.

Overrides:
boundingBox in class IlvZoomableLabel
Parameters:
t - The transformer used to draw the object.
See Also:
IlvGraphic.draw(java.awt.Graphics, ilog.views.IlvTransformer), IlvGraphic.zoomable(), IlvGraphic

contains

public boolean contains(IlvPoint p,
                        IlvPoint tp,
                        IlvTransformer t)
Deprecated. 
Tests whether a point lies within the outline of the object.

Overrides:
contains in class IlvZoomableLabel
Parameters:
p - 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.
Returns:
true if the point lies inside this graphic object.
See Also:
IlvGraphic

applyTransform

public void applyTransform(IlvTransformer t)
Deprecated. 
Applies a transformation to the shape of the object.

Overrides:
applyTransform in class IlvZoomableLabel
Parameters:
t - The transformer to be applied.
See Also:
IlvGraphic

write

public void write(IlvOutputStream stream)
           throws IOException
Deprecated. 
Writes the object to an 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.

Specified by:
write in interface IlvPersistentObject
Overrides:
write in class IlvZoomableLabel
Parameters:
stream - The output stream.
Throws:
IOException - thrown when an exception occurs during the write operation for this object.

addObject

public void addObject(IlvGraphic graphic,
                      boolean redraw)
Deprecated. 
Adds a graphic object to the bag.

Specified by:
addObject in interface IlvGraphicBag
Parameters:
graphic - The graphic object.
redraw - If true the object is redrawn.

removeObject

public void removeObject(IlvGraphic graphic,
                         boolean redraw)
Deprecated. 
Removes a graphic object from the bag.

Specified by:
removeObject in interface IlvGraphicBag
Parameters:
graphic - The graphic object.
redraw - If true the object is redrawn.

getObjects

public IlvGraphicEnumeration getObjects()
Deprecated. 
Implementation of the IlvGraphicBag interface. Do not call this method directly.

Specified by:
getObjects in interface IlvGraphicBag
Since:
JViews 5.0

reDrawObj

public void reDrawObj(IlvGraphic graphic)
Deprecated. 
Redraws a graphic object located in the bag.

Specified by:
reDrawObj in interface IlvGraphicBag
Parameters:
graphic - The graphic object.

reDrawRegion

public void reDrawRegion(IlvRegion region)
Deprecated. 
Redraws a region of the bag.

Specified by:
reDrawRegion in interface IlvGraphicBag
Parameters:
region - The region to redraw.

reshapeObject

public void reshapeObject(IlvGraphic graphic,
                          IlvRect newrect,
                          boolean redraw)
Deprecated. 
Changes the size of a graphic object.

Specified by:
reshapeObject in interface IlvGraphicBag
Parameters:
graphic - The graphic object.
newrect - The new desired bounding rectangle.
redraw - If true the object is redrawn.

moveObject

public void moveObject(IlvGraphic graphic,
                       float x,
                       float y,
                       boolean redraw)
Deprecated. 
Changes the location of a graphic object.

Specified by:
moveObject in interface IlvGraphicBag
Parameters:
graphic - The graphic object.
x - The new desired x position.
y - The new desired y position.
redraw - If true the object is redrawn.

applyToObject

public void applyToObject(IlvGraphic graphic,
                          IlvApplyObject f,
                          Object arg,
                          boolean redraw)
Deprecated. 
Applies a method to a graphic object of the bag.

Specified by:
applyToObject in interface IlvGraphicBag
Parameters:
graphic - The graphic object.
f - The method to apply.
arg - The arguments passed to the method f.
redraw - If true the object is redrawn.

setObjectName

public boolean setObjectName(IlvGraphic graphic,
                             String name)
Deprecated. 
Changes the name of a graphic object.

Specified by:
setObjectName in interface IlvGraphicBag
Parameters:
graphic - The graphic object.
name - The new name.
Returns:
true if the name can be changed.

getObject

public IlvGraphic getObject(String name)
Deprecated. 
Returns the graphic object with that name if it exists in the bag, otherwise returns null.

Specified by:
getObject in interface IlvGraphicBag
Parameters:
name - The graphic object name.
Since:
JViews 6.0


Copyright © 1996-2007 ILOG S.A. All rights reserved.   Documentation homepage.