ilog.views.sdm.graphic
Class IlvExpandedFrame

java.lang.Object
  extended by ilog.views.IlvGraphic
      extended by ilog.views.graphic.IlvRectangle
          extended by ilog.views.graphic.IlvFilledRectangle
              extended by ilog.views.sdm.graphic.IlvExpandedFrame
All Implemented Interfaces:
IlvPersistentObject, Transferable, Serializable

public class IlvExpandedFrame
extends IlvFilledRectangle

An IlvGraphic that displays a solid color surrounded by a rounded border.

Since:
JViews 4.0
See Also:
Serialized Form

Field Summary
 
Fields inherited from class ilog.views.graphic.IlvRectangle
BOTTOM_LEFT, BOTTOM_RIGHT, drawrect, TOP_LEFT, TOP_RIGHT
 
Constructor Summary
IlvExpandedFrame()
          Constructs a standard IlvExpandedFrame.
IlvExpandedFrame(IlvExpandedFrame source)
          Creates a new IlvExpandedFrame by copying an existing one.
IlvExpandedFrame(IlvInputStream stream)
          Reads the object from an IlvInputStream.
 
Method Summary
 void draw(Graphics g, IlvTransformer t)
          Draws the IlvExpandedFrame.
 float getThickness()
          Returns the edge thickness.
 void setThickness(float val)
          Sets the thickness of the edge.
 void write(IlvOutputStream stream)
          Writes the object to an IlvOutputStream.
 
Methods inherited from class ilog.views.graphic.IlvFilledRectangle
copy, getForeground, setFillOn, setForeground, setRadius, setStrokeOn
 
Methods inherited from class ilog.views.graphic.IlvRectangle
applyTransform, boundingBox, contains, getBackground, getCorners, getDefinitionRect, getIntersectionWithOutline, getRadius, isCornersZoomable, isFillOn, isStrokeOn, moveResize, setBackground, setCorners, setCornersZoomable, setDefinitionRect, translate
 
Methods inherited from class ilog.views.IlvGraphic
addActionListener, addNamedPropertyListener, boundingBox, getAndAssociateObjectInteractor, getCenter, getDefaultInteractor, getGraphicBag, GetGraphicObject, 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, resize, rotate, scale, setEditable, setGraphicBag, setInApplyToObject, setMovable, setName, setNamedProperty, setNameImpl, setObjectInteractor, setPopupMenu, setPopupMenuName, setProperty, setSelectable, setToolTipText, setVisible, toString, zoomable
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

IlvExpandedFrame

public IlvExpandedFrame()
Constructs a standard IlvExpandedFrame.


IlvExpandedFrame

public IlvExpandedFrame(IlvExpandedFrame source)
Creates a new IlvExpandedFrame by copying an existing one.

Parameters:
source - The origin object for the copy.

IlvExpandedFrame

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

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

write

public void write(IlvOutputStream stream)
           throws IOException
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 instead.

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

setThickness

public void setThickness(float val)
Sets the thickness of the edge. The default value is 20.

Parameters:
val - The new value.

getThickness

public float getThickness()
Returns the edge thickness.

Returns:
The current thickness.

draw

public void draw(Graphics g,
                 IlvTransformer t)
Draws the IlvExpandedFrame.

Overrides:
draw in class IlvRectangle
Parameters:
g - The AWT graphics.
t - The ILOG JViews transformer.
See Also:
IlvGraphic.boundingBox(ilog.views.IlvTransformer), IlvGraphic.zoomable(), IlvGraphic


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