ilog.views.sdm.graphic
Class IlvDefaultLaneGraphic

java.lang.Object
  extended by ilog.views.IlvGraphic
      extended by ilog.views.graphic.IlvGraphicSet
          extended by ilog.views.sdm.graphic.IlvGeneralNode
              extended by ilog.views.sdm.graphic.IlvDefaultLaneGraphic
All Implemented Interfaces:
GraphicBagHierarchyEventReceiver, ManagerViewsHierarchyEventReceiver, IlvGraphicBag, IlvLabelInterface, IlvPersistentObject, ilog.views.sdm.internal.labellayout.IlvSDMLabeledNode, Transferable, Serializable

public class IlvDefaultLaneGraphic
extends IlvGeneralNode

This is the default graphic object used to represent swim lanes. It is an IlvGeneralNode whose label can be either near the top of the shape (and horizontal), or near the left of the shape (and vertical). In addition, the lane graphic has a separator line below or to the right of the label.

Since:
JViews 6.0
See Also:
Serialized Form

Nested Class Summary
 
Nested classes/interfaces inherited from class ilog.views.graphic.IlvGraphicSet
IlvGraphicSet.DelegateObjectInteractor
 
Field Summary
 
Fields inherited from class ilog.views.sdm.graphic.IlvGeneralNode
CUSTOM, DIAMOND, ELLIPSE, EXPAND_ONLY, EXPAND_OR_SHRINK, High_Quality_Icons, icon, LABEL_UNCHANGED, labels, layoutNeeded, LINEAR_GRADIENT, MARKER, NO_AUTO_RESIZE, NO_FILL, RADIAL_GRADIENT, realizeNeeded, RECTANGLE, ROUND_RECTANGLE, shape, SHRINK_ONLY, SOLID_COLOR, TEXTURE, TRIANGLE_DOWN, TRIANGLE_LEFT, TRIANGLE_RIGHT, TRIANGLE_UP, TRUNCATE, WORD_WRAP
 
Fields inherited from class ilog.views.graphic.IlvGraphicSet
list
 
Constructor Summary
IlvDefaultLaneGraphic()
          Creates a new lane graphic.
IlvDefaultLaneGraphic(IlvDefaultLaneGraphic source)
          Creates a copy of the specified lane graphic.
IlvDefaultLaneGraphic(IlvInputStream stream)
          Reads a lane graphic from an input stream.
 
Method Summary
 IlvGraphic copy()
          Returns a copy of this lane graphic.
protected  void doLayout()
          This method is overridden to lay out the label and the separator according to the orientation of the lane.
 boolean isHorizontal()
          Returns true if the label is horizontal and near the top of the shape, false if the label is vertical and near the left of the shape.
 boolean isSeparatorVisible()
           
protected  void realize()
          This method is overridden to create the additional separator line.
 void setHorizontal(boolean horizontal)
          Changes the position and the orientation of the label.
 void setSeparatorVisible(boolean separatorVisible)
           
 void write(IlvOutputStream stream)
          Writes this general node to an output stream.
 
Methods inherited from class ilog.views.sdm.graphic.IlvGeneralNode
applyTransform, boundingBox, drawCore, getAnchor, getBaseBoundingBox, getDecorations, getDecorations, getFillAngle, getFillColor1, getFillColor2, getFillEnd, getFillStart, getFillStyle, getFillTexture, getHorizontalAutoResizeMargin, getHorizontalAutoResizeMode, getIcon, getIconPosition, getLabel, getLabelAlignment, getLabelBBox, getLabelColor, getLabelFont, getLabelMargin, getLabelMode, getLabelPosition, getLabelScaleFactor, getLabelSpacing, getLineSpacing, getMaxLabelZoom, getMinLabelZoom, getShape, getShapeAspectRatio, getShapeBBox, getShapeHeight, getShapeType, getShapeWidth, getStrokeColor, getStrokeDashArray, getStrokeDashPhase, getStrokeEndCaps, getStrokeLineJoins, getStrokeMiterLimit, getStrokeWidth, getVerticalAutoResizeMargin, getVerticalAutoResizeMode, getWordWrapChars, getWordWrapMargin, getWordWrapMode, isKeepingAspectRatio, isLabelAntialiasing, isLabelZoomable, isTruncatedLabelSuffix, isUseIlvText, isUseIlvTextDefault, moveLabel, moveResize, setAnchor, setBackground, setDecorations, setDecorations, setFillAngle, setFillColor1, setFillColor2, setFillEnd, setFillStart, setFillStyle, setFillTexture, setForeground, setHorizontalAutoResizeMargin, setHorizontalAutoResizeMode, setIcon, setIconPosition, setKeepingAspectRatio, setLabel, setLabelAlignment, setLabelAntialiasing, setLabelColor, setLabelFont, setLabelMargin, setLabelMode, setLabelPosition, setLabelScaleFactor, setLabelSpacing, setLabelZoomable, setLineSpacing, setMaxLabelZoom, setMinLabelZoom, setShape, setShapeAspectRatio, setShapeHeight, setShapeType, setShapeWidth, setStrokeColor, setStrokeDashArray, setStrokeDashPhase, setStrokeEndCaps, setStrokeLineJoins, setStrokeMiterLimit, setStrokeWidth, setTruncatedLabelSuffix, setUseIlvText, setUseIlvTextDefault, setVerticalAutoResizeMargin, setVerticalAutoResizeMode, setWordWrapChars, setWordWrapMargin, setWordWrapMode, supportMultiline, updateLabelingModel, zoomable
 
Methods inherited from class ilog.views.graphic.IlvGraphicSet
addGraphicBagHierarchyListener, addManagerViewsHierarchyListener, addObject, addObjectAt, applyToObject, contains, contains, draw, enableGraphicBagHierarchyEventForwarding, enableManagerViewsHierarchyEventForwarding, fireGraphicBagHierarchyEvent, fireManagerViewsHierarchyEvent, firstContains, getAlpha, getCardinal, getClip, getIndex, getIntersectionWithOutline, getObject, getObject, getObjectName, getObjects, getOriginalPopupMenu, getPopupMenu, getToolTipText, isPersistent, moveObject, needsGraphicBagHierarchyEvent, needsManagerViewsHierarchyEvent, reDrawObj, reDrawRegion, removeAll, removeGraphicBagHierarchyListener, removeManagerViewsHierarchyListener, removeObject, removeObjectAt, reshapeObject, setAlpha, setClip, setGraphicBag, setObjectName
 
Methods inherited from class ilog.views.IlvGraphic
addActionListener, addNamedPropertyListener, boundingBox, getAndAssociateObjectInteractor, getCenter, getDefaultInteractor, getGraphicBag, GetGraphicObject, getName, getNamedProperty, getObjectInteractor, getPopupMenu, getPopupMenuName, getProperty, getToolTipText, getTopLevelGraphicBag, getTransferData, getTransferDataFlavors, hasProperty, inside, intersects, isDataFlavorSupported, isEditable, isInApplyToObject, isMovable, isSelectable, isVisible, makeSelection, move, move, notifyObjectInteractorToManager, processActionEvent, reDraw, removeActionListener, removeNamedProperty, removeNamedPropertyListener, removeProperty, replaceProperty, resize, rotate, scale, setEditable, setFillOn, setInApplyToObject, setMovable, setName, setNamedProperty, setNameImpl, setObjectInteractor, setPopupMenu, setPopupMenuName, setProperty, setSelectable, setStrokeOn, setToolTipText, setVisible, toString, translate
 
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

IlvDefaultLaneGraphic

public IlvDefaultLaneGraphic()
Creates a new lane graphic.


IlvDefaultLaneGraphic

public IlvDefaultLaneGraphic(IlvDefaultLaneGraphic source)
Creates a copy of the specified lane graphic.

Parameters:
source - The lane graphic to copy.

IlvDefaultLaneGraphic

public IlvDefaultLaneGraphic(IlvInputStream stream)
                      throws IlvReadFileException
Reads a lane graphic from an input stream.

Parameters:
stream - The input stream
Throws:
IlvReadFileException - If an I/O error occurred.
Method Detail

copy

public IlvGraphic copy()
Returns a copy of this lane graphic.

Overrides:
copy in class IlvGeneralNode
Returns:
A new general node that is a copy of this one.
See Also:
IlvGraphic

write

public void write(IlvOutputStream stream)
           throws IOException
Description copied from class: IlvGeneralNode
Writes this general node to an output stream.

Specified by:
write in interface IlvPersistentObject
Overrides:
write in class IlvGeneralNode
Parameters:
stream - The output stream.
Throws:
IOException - if a write error occurred.

isHorizontal

public boolean isHorizontal()
Returns true if the label is horizontal and near the top of the shape, false if the label is vertical and near the left of the shape.


setHorizontal

public void setHorizontal(boolean horizontal)
Changes the position and the orientation of the label.

Parameters:
horizontal - If true, the label is near the top of the shape and horizontal, if false the label is near the left of the shape and vertical.

isSeparatorVisible

public boolean isSeparatorVisible()

setSeparatorVisible

public void setSeparatorVisible(boolean separatorVisible)

realize

protected void realize()
This method is overridden to create the additional separator line.

Overrides:
realize in class IlvGeneralNode

doLayout

protected void doLayout()
This method is overridden to lay out the label and the separator according to the orientation of the lane.

Overrides:
doLayout in class IlvGeneralNode


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