public class IlvDefaultLaneGraphic extends IlvGeneralNode
IlvGeneralNode whose label can be either near the
top or bottom of the shape (and horizontal), or near the left or
right of the shape (and vertical).
In addition, the lane graphic has a separator line to separate the
label from the remaining area.IlvGraphicSet.DelegateObjectInteractorCUSTOM, 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_WRAPlist| Constructor and Description |
|---|
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.
|
| Modifier and Type | Method and Description |
|---|---|
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.
|
int |
getLabelPosition()
Sets the label position.
|
IlvRect |
getShapeBBox()
Returns the bounds of the shape (excluding label and border stroke).
|
int |
getSide()
Returns the side where the label is placed.
|
boolean |
isHorizontal()
Deprecated.
Use
getSide() |
boolean |
isSeparatorVisible()
Returns true if separator is visible
|
IlvSelection |
makeSelection()
Creates a selection object for this object.
|
protected void |
realize()
This method is overridden to create the additional separator line.
|
void |
setHorizontal(boolean horizontal)
Deprecated.
Use
setSide(int) |
void |
setLabelPosition(int pos)
Sets the label position.
|
void |
setSeparatorVisible(boolean separatorVisible)
Controls separator visibility
|
void |
setSide(int side)
Changes the position and the orientation of the label.
|
void |
write(IlvOutputStream stream)
Writes this general node to an output stream.
|
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, getLabelScaleFactor, getLabelSpacing, getLineSpacing, getMaxLabelZoom, getMinLabelZoom, getShape, getShapeAspectRatio, getShapeHeight, getShapeType, getShapeWidth, getStrokeColor, getStrokeDashArray, getStrokeDashPhase, getStrokeEndCaps, getStrokeLineJoins, getStrokeMiterLimit, getStrokeWidth, getVerticalAutoResizeMargin, getVerticalAutoResizeMode, getWordWrapChars, getWordWrapMargin, getWordWrapMode, invalidateBBoxCache, 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, 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, shouldElementBePartOfClip, shouldRestrictListOfElementsForClip, supportMultiline, updateLabelingModel, zoomableaddGraphicBagHierarchyListener, addManagerViewsHierarchyListener, addObject, addObjectAt, applyToObject, applyToObjectImpl, baseTextDirectionChanged, componentOrientationChanged, contains, contains, draw, enableGraphicBagHierarchyEventForwarding, enableManagerViewsHierarchyEventForwarding, fireGraphicBagHierarchyEvent, fireManagerViewsHierarchyEvent, firstContains, getAlpha, getCardinal, getClip, getIndex, getIntersectionWithOutline, getObject, getObject, getObjectName, getObjects, getOriginalPopupMenu, getPopupMenu, getToolTipText, invalidateAndApplyToObject, isBaseTextDirectionSensitive, isComponentOrientationSensitive, isLocaleSensitive, isPersistent, moveObject, needsGraphicBagHierarchyEvent, needsManagerViewsHierarchyEvent, reDrawObj, reDrawRegion, removeAll, removeGraphicBagHierarchyListener, removeManagerViewsHierarchyListener, removeObject, removeObjectAt, reshapeObject, setAlpha, setBaseTextDirection, setClip, setGraphicBag, setInsideApply, setObjectNamecalcResolvedBaseTextDirection, getBaseTextDirection, getComponentOrientation, getResolvedBaseTextDirection, getULocale, invalidateBidiCache, setBaseTextDirection, setBaseTextDirectionDuringConstructionaddActionListener, addNamedPropertyListener, allViewsRemoved, blinkingStateOn, boundingBox, callDraw, getAndAssociateObjectInteractor, getBlinkingAction, getBlinkingObjectOwner, getBlinkingOffPeriod, getBlinkingOnPeriod, getCenter, getDefaultInteractor, getGraphicBag, GetGraphicObject, getLocale, getName, getNamedProperty, getObjectInteractor, getPopupMenu, getPopupMenuName, getProperty, getToolTipBaseTextDirection, getToolTipText, getTopLevelGraphicBag, getTransferData, getTransferDataFlavors, getZOrderIndex, hasProperty, inside, intersects, isDataFlavorSupported, isEditable, isInApplyToObject, isMovable, isSelectable, isVisible, localeChanged, move, move, needsViewNotification, notifyObjectInteractorToManager, processActionEvent, reDraw, registerBlinkingResource, removeActionListener, removeNamedProperty, removeNamedPropertyListener, removeProperty, replaceProperty, resize, rotate, scale, setBlinkingAction, setBlinkingOffPeriod, setBlinkingOnPeriod, setEditable, setFillOn, setInApplyToObject, setMovable, setName, setNamedProperty, setNameImpl, setObjectInteractor, setPopupMenu, setPopupMenuName, setProperty, setSelectable, setStrokeOn, setToolTipBaseTextDirection, setToolTipText, setVisible, setZOrderIndex, toString, translate, updateNeedsViewNotification, usesBidiMarkers, viewAddedOrRemovedclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitgetGraphicBagpublic IlvDefaultLaneGraphic()
public IlvDefaultLaneGraphic(IlvDefaultLaneGraphic source)
source - The lane graphic to copy.public IlvDefaultLaneGraphic(IlvInputStream stream) throws IlvReadFileException
stream - The input streamIlvReadFileException - If an I/O error occurred.public IlvGraphic copy()
copy in class IlvGeneralNodeIlvGraphicpublic void write(IlvOutputStream stream) throws IOException
write in interface IlvPersistentObjectwrite in class IlvGeneralNodestream - The output stream.IOException - if a write error occurred.@Deprecated public boolean isHorizontal()
getSide()true if the label is vertical and near the left
of the shape, false otherwise.@Deprecated public void setHorizontal(boolean horizontal)
setSide(int)horizontal - If true, the label is near the left
of the shape and vertical, if false the label is near the
top of the shape and horizontal.public int getSide()
setSide(int)public void setSide(int side)
IlvDirection.Left,
IlvDirection.Right,
IlvDirection.Top, and
IlvDirection.Bottom.side - The side.getSide()public boolean isSeparatorVisible()
public void setSeparatorVisible(boolean separatorVisible)
separatorVisible - the new valuepublic void setLabelPosition(int pos)
IlvDirection.Center, the label is
shown inside the lane, otherwise it is shown outside the lane.setLabelPosition in class IlvGeneralNodepos - The new label position, which is
one of the static fields of the IlvDirection
interface.public int getLabelPosition()
IlvDirection.Center, the label is
shown inside the lane, otherwise it is shown outside the lane.getLabelPosition in class IlvGeneralNodeIlvDirection interface.public IlvRect getShapeBBox()
getShapeBBox in class IlvGeneralNodeprotected void realize()
realize in class IlvGeneralNodeprotected void doLayout()
doLayout in class IlvGeneralNodepublic IlvSelection makeSelection()
IlvDrawSelection.
Override this method in your custom graphic object to use a different selection object.
You should normally not call this method directly.makeSelection in class IlvGraphicIlvDrawSelection© Copyright 2024 Rogue Wave Software, Inc., a Perforce company.. All Rights Reserved.