public class IlvMapCompositeLink extends IlvCompositeLink implements IlvMapGraphic
IlvMapCompositeLink is an IlvCompositeLink implementing the IlvMapGraphic interface.
It accepts an IlvLinkStyle to define its graphical attributes.| Modifier and Type | Field and Description |
|---|---|
protected IlvLinkStyle |
style
The map style in use.
|
| Constructor and Description |
|---|
IlvMapCompositeLink(IlvGraphic from,
IlvGraphic to,
boolean oriented,
IlvPoint[] points)
Creates a new
IlvMapCompositeLink instance. |
IlvMapCompositeLink(IlvInputStream stream)
Reads an
IlvMapCompositeLink object from an
IlvInputStream. |
IlvMapCompositeLink(IlvMapCompositeLink source)
Creates an
IlvMapCompositeLink instance by copying an existing
one. |
| Modifier and Type | Method and Description |
|---|---|
IlvGraphic |
copy()
Copies the object.
|
IlvGraphic |
copy(IlvCoordinateTransformation transform)
Copies the element and applies the specified transformation to its coordinates.
|
void |
draw(Graphics g,
IlvTransformer t)
Draws this link.
|
int |
getEndCap()
Retrieves the end cap from the style.
|
Color |
getForeground()
Retrieves the foreground from the style.
|
int |
getLineJoin()
Retrieves the line join from the style.
|
float[] |
getLineStyle()
Retrieves the line style from the style.
|
double |
getLineWidth()
Retrieves the line width from the style.
|
double |
getMaximumLineWidth()
Retrieves the maximum line width from the style.
|
IlvMapStyle |
getStyle()
Retrieves the
IlvMapStyle attached to this graphic. |
boolean |
isOriented()
This method delegates to the link supplied with the
setLink method. |
IlvMapGeometry |
makeGeometry()
Returns an
IlvMapLineString geometry. |
void |
setEndCap(int end)
Sets the end cap in the
IlvLinkStyle object. |
void |
setForeground(Color color)
Sets the foreground in the
IlvLinkStyle object. |
void |
setLineJoin(int join)
Sets the line join in the
IlvLinkStyle object. |
void |
setLineStyle(float[] s)
Sets the line style in the
IlvLinkStyle object. |
void |
setLineWidth(double width)
Sets the line width in the
IlvLinkStyle object. |
void |
setOriented(boolean oriented)
This method delegates to the link supplied with the
setLink method. |
void |
setStyle(IlvMapStyle stl)
Implements the
IlvMapGraphic interface. |
void |
write(IlvOutputStream stream)
Writes this
IlvMapGraphicPath object to the
IlvOutputStream passed as parameter |
addObject, allowsPointInsertion, allowsPointMove, allowsPointRemoval, applyToObject, applyTransform, baseTextDirectionChanged, boundingBox, componentOrientationChanged, contains, createCompositeNode, doLayout, drawCore, getAction, getAlpha, getAttachableGraphic, getBaseBoundingBox, getBaseTextDirection, getChildren, getChildren, getCompositeNode, getConnectionPoints, getConnectionReferencePoint, getConstraints, getConstraints, getEventMaps, getLabel, getLabelBBox, getLineWidth, getLink, getLinkPoints, getObject, getObjects, getParent, getPointAt, getPointsCardinal, getRoot, getToolTipText, getVisibilityThresholds, getVisibilityThresholds, hasActions, insertPoint, invalidate, invalidateBBoxCache, isBaseTextDirectionSensitive, isSensitive, isSpline, isValid, localeChanged, moveObject, movePoint, pointsInBBox, reDrawObj, reDrawRegion, removeObject, removePoint, reshapeObject, setAlpha, setBaseTextDirection, setBaseTextDirectionDuringConstruction, setChildren, setChildren, setConstraints, setConstraints, setGraphicBag, setIntermediateLinkPoints, setLabel, setLink, setMaximumLineWidth, setObjectName, setSensitive, setToolTipText, setVisibilityThresholds, setVisibilityThresholds, supportMultilinearrowBBox, arrowContains, drawArrow, finalize, getArrowSize, getFrom, getFromBoundingBox, getFromTransformer, getLinkConnectorConnectionPoint, getLinkPoints, getLocalTransformerOf, getOpposite, getTo, getToBoundingBox, getToTransformer, getVisibleFrom, getVisibleTo, isPersistent, makeSelection, setFrom, setLinkPoints, setTo, zoomableaddActionListener, addNamedPropertyListener, allViewsRemoved, blinkingStateOn, boundingBox, callDraw, getAndAssociateObjectInteractor, getBlinkingAction, getBlinkingObjectOwner, getBlinkingOffPeriod, getBlinkingOnPeriod, getCenter, getComponentOrientation, getDefaultInteractor, getGraphicBag, GetGraphicObject, getIntersectionWithOutline, getLocale, getName, getNamedProperty, getObjectInteractor, getPopupMenu, getPopupMenu, getPopupMenuName, getProperty, getResolvedBaseTextDirection, getToolTipBaseTextDirection, getToolTipText, getTopLevelGraphicBag, getTransferData, getTransferDataFlavors, getULocale, getZOrderIndex, hasProperty, inside, intersects, invalidateBidiCache, isComponentOrientationSensitive, isDataFlavorSupported, isEditable, isInApplyToObject, isLocaleSensitive, isMovable, isSelectable, isVisible, move, move, moveResize, needsViewNotification, notifyObjectInteractorToManager, processActionEvent, reDraw, registerBlinkingResource, removeActionListener, removeNamedProperty, removeNamedPropertyListener, removeProperty, replaceProperty, resize, rotate, scale, setBackground, setBlinkingAction, setBlinkingOffPeriod, setBlinkingOnPeriod, setEditable, setFillOn, setInApplyToObject, setMovable, setName, setNamedProperty, setNameImpl, setObjectInteractor, setPopupMenu, setPopupMenuName, setProperty, setSelectable, setStrokeOn, setToolTipBaseTextDirection, setVisible, setZOrderIndex, toString, translate, updateNeedsViewNotification, usesBidiMarkers, viewAddedOrRemovedclone, equals, getClass, hashCode, notify, notifyAll, wait, wait, waitgetGraphicBagprotected IlvLinkStyle style
public IlvMapCompositeLink(IlvMapCompositeLink source)
IlvMapCompositeLink instance by copying an existing
one.
This method retrieves the latest copy of to and from nodes (if any) and connects to these instead.
It also retrieves the possible IlvLinkconnectors to connect them to the link copy.source - The source IlvMapCompositeLink object.public IlvMapCompositeLink(IlvGraphic from, IlvGraphic to, boolean oriented, IlvPoint[] points)
IlvMapCompositeLink instance.from - The origin object.to - The destination object.oriented - If true, an arrow is drawn at the destination point.points - The array of points defining the polyline.public IlvMapCompositeLink(IlvInputStream stream) throws IlvReadFileException
IlvMapCompositeLink object from an
IlvInputStream.stream - The stream to read from.IlvReadFileException - if there is a problem reading from
stream.public void write(IlvOutputStream stream) throws IOException
IlvMapGraphicPath object to the
IlvOutputStream passed as parameterwrite in interface IlvPersistentObjectwrite in class IlvCompositeLinkstream - The stream to write to.IOException - if there is a problem writing to stream.public void setEndCap(int end)
IlvLinkStyle object.setEndCap in class IlvCompositeLinkend - The end cap to be set in the IlvLinkStyle
object.IlvCompositeLink.setLink(ilog.views.IlvLinkImage),
IlvCompositeLink.getLink(),
IlvLinkImage.setEndCap(int)public int getEndCap()
getEndCap in class IlvCompositeLinkIlvLinkStyle object.IlvCompositeLink.setLink(ilog.views.IlvLinkImage),
IlvCompositeLink.getLink(),
IlvLinkImage.getEndCap()public void setForeground(Color color)
IlvLinkStyle object.setForeground in class IlvCompositeLinkcolor - The foreground to be set in the IlvLinkStyle
object.IlvCompositeLink.setLink(ilog.views.IlvLinkImage),
IlvCompositeLink.getLink(),
IlvLinkImage.setForeground(java.awt.Color)public Color getForeground()
getForeground in class IlvCompositeLinkIlvLinkStyle
object.IlvCompositeLink.setLink(ilog.views.IlvLinkImage),
IlvCompositeLink.getLink(),
IlvLinkImage.getForeground()public void setLineJoin(int join)
IlvLinkStyle object.setLineJoin in class IlvCompositeLinkjoin - The line join to be set in the IlvLinkStyle
object.IlvCompositeLink.setLink(ilog.views.IlvLinkImage),
IlvCompositeLink.getLink(),
IlvLinkImage.setLineJoin(int)public int getLineJoin()
getLineJoin in class IlvCompositeLinkIlvLinkStyle
object.IlvCompositeLink.setLink(ilog.views.IlvLinkImage),
IlvCompositeLink.getLink(),
IlvLinkImage.getLineJoin()public void setLineStyle(float[] s)
IlvLinkStyle object.setLineStyle in class IlvCompositeLinks - The line style to be set in the IlvLinkStyle
object.IlvCompositeLink.setLink(ilog.views.IlvLinkImage),
IlvCompositeLink.getLink(),
IlvLinkImage.setLineStyle(float[])public float[] getLineStyle()
getLineStyle in class IlvCompositeLinkIlvLinkStyle
object.IlvCompositeLink.setLink(ilog.views.IlvLinkImage),
IlvCompositeLink.getLink(),
IlvLinkImage.getLineStyle()public void setLineWidth(double width)
IlvLinkStyle object.setLineWidth in class IlvCompositeLinkwidth - The line width to be set in the IlvLinkStyle
object.IlvCompositeLink.setLink(ilog.views.IlvLinkImage),
IlvCompositeLink.getLink(),
IlvLinkImage.setLineWidth(double)public double getLineWidth()
getLineWidth in class IlvCompositeLinkIlvLinkStyle object.IlvCompositeLink.setLink(ilog.views.IlvLinkImage),
IlvCompositeLink.getLink(),
IlvLinkImage.getLineWidth()public double getMaximumLineWidth()
getMaximumLineWidth in class IlvCompositeLinkIlvLinkStyle object.IlvCompositeLink.setLink(ilog.views.IlvLinkImage),
IlvCompositeLink.getLink(),
IlvLinkImage.getMaximumLineWidth()public boolean isOriented()
setLink method.isOriented in class IlvCompositeLinkIlvCompositeLink.isOriented()public void setOriented(boolean oriented)
setLink method.setOriented in class IlvCompositeLinkIlvCompositeLink.setOriented(boolean)public IlvMapStyle getStyle()
IlvMapStyle attached to this graphic.getStyle in interface IlvMapGraphicIlvMapStyle attached to this graphic.public void setStyle(IlvMapStyle stl)
IlvMapGraphic interface.setStyle in interface IlvMapGraphicstl - The IlvMapStyle object to set. Must be an
IlvLinkStyle instance.public void draw(Graphics g, IlvTransformer t)
draw in class IlvCompositeLinkg - The destination Graphics.t - The transformation used to draw the object.IlvGeneralPath.draw(java.awt.Graphics, ilog.views.IlvTransformer)public IlvGraphic copy()
copy in class IlvCompositeLinkIlvMapCompositeLink instance.IlvGraphicpublic IlvGraphic copy(IlvCoordinateTransformation transform) throws IlvCoordinateTransformationException
copy in interface IlvMapGraphictransform - Transformation to apply.IlvCoordinateTransformationExceptionIlvMapGraphic.copy(ilog.views.maps.srs.coordtrans.IlvCoordinateTransformation)public IlvMapGeometry makeGeometry()
IlvMapLineString geometry.makeGeometry in interface IlvMapGraphicIlvMapLineString geometry.IlvMapGraphic.makeGeometry()© Copyright 2024 Rogue Wave Software, Inc., a Perforce company.. All Rights Reserved.