public class IltLinkSet extends IltAbstractLink
A link set has no graphical representation and is not displayed in the network component. Therefore, setting an object state to a link set has no meaning or at least no visual effect.
When a link is added to a link set, its ends are forced to those of the set if they do not match. A link can also give its ends to a set if the set has no ends when the link is added to it. Finally, when the end of a link set is changed, the ends of the links it contains are changed accordingly.
When a link set is in a manager, all the links it contains are also in this manager. Conversely, a link can be in a manager even though the link set it belongs to is not. As a consequence:
Modifier and Type | Class and Description |
---|---|
static class |
IltLinkSet.LinkSetEvent
Deprecated.
Please use the datasource methods instead.
|
static interface |
IltLinkSet.LinkSetListener
Deprecated.
Please use the datasource methods instead.
|
IltObject.ListPrimaryStateStyleValueProvider, IltObject.LogicalType, IltObject.TinyType
Modifier and Type | Field and Description |
---|---|
static IlpFloatKey |
LinkDistance
Deprecated.
Please use CSS property
linkDistance instead. |
static IlpFloatKey |
MappedLinkDistance |
static IltObjectInfo |
metainfo
Contains metainformation about this
IltObject class. |
DefaultLinkDistance, FromPort, FromPortAttribute, InnerBackgroundColor, InnerBorderWidth, InnerCenterWidth, InnerForegroundColor, InnerLineStyle, propSupport, ToPort, ToPortAttribute
_automaticDecorationsDirection, _cloneConstructor, AbbreviateBalloonAlarmCount, AbbreviateBaseAlarmCount, AckAlarmHighestSeverityAttribute, AckImpactAlarmHighestSeverityAttribute, AlarmBalloonColor, AlarmBalloonContentsCollapsed, AlarmBalloonCountIcon, AlarmBalloonCountLabel, AlarmBalloonPosition, AlarmBalloonShadowColor, AlarmBalloonTextAntialiasing, AlarmBalloonTextBackgroundColor, AlarmBalloonTextFont, AlarmBalloonTextForegroundColor, AlarmBalloonVisible, AlarmBorderColor, AlarmBorderThickness, AlarmBorderVisible, AlarmBrightColor, AlarmColor, AlarmColorLevel, AlarmColorVisible, AlarmCountAntialiasing, AlarmCountAttribute, AlarmCountBackgroundColor, AlarmCountFont, AlarmCountForegroundColor, AlarmCountIcon, AlarmCountIconPosition, AlarmCountIconVisible, AlarmCountLabel, AlarmCountNumberAttribute, AlarmCountVisible, AlarmCriticalAbbreviation, AlarmCriticalBrightColor, AlarmCriticalColor, AlarmCriticalDarkColor, AlarmCriticalDescription, AlarmDarkColor, AlarmHighestSeverityAttribute, AlarmLossOfConnectivityAbbreviation, AlarmLossOfConnectivityBrightColor, AlarmLossOfConnectivityColor, AlarmLossOfConnectivityDarkColor, AlarmLossOfConnectivityOverride, AlarmMajorAbbreviation, AlarmMajorBrightColor, AlarmMajorColor, AlarmMajorDarkColor, AlarmMajorDescription, AlarmMinorAbbreviation, AlarmMinorBrightColor, AlarmMinorColor, AlarmMinorDarkColor, AlarmMinorDescription, AlarmNotReportingAbbreviation, AlarmsAsMarks, AlarmSeverityColorMap, AlarmSeverityDescriptionMap, AlarmUnknownAbbreviation, AlarmUnknownBrightColor, AlarmUnknownColor, AlarmUnknownDarkColor, AlarmUnknownDescription, AlarmWarningAbbreviation, AlarmWarningBrightColor, AlarmWarningColor, AlarmWarningDarkColor, AlarmWarningDescription, Alpha, BackgroundColor, BaseSelectionBorderVisible, BaseStyleEnabled, BlinkingBackgroundColor, BlinkingBorderColor, BlinkingBorderColor2, BlinkingForegroundColor, BorderColor, BorderColor2, BorderLineStyle, BorderPattern, BorderWidth, BUSINESS_OBJECT_PROPERTY, CanBeLogical, CenterWidth, ChildrenDecorationConstraints, ChildrenDecorations, ContainerCollapseIconVisible, ContainerExpansionIconVisible, ContainerOutsideExpansionIconVisible, ContainerStatusVisible, DetailLevel, Direction, DottedBorderBackgroundColor, DottedBorderForegroundColor, DottedBorderLineStyle, ForcedWidth, ForegroundColor, GraphicRepresentationAttribute, HasAlarmColor, IconsVisible, ImpactAlarmCountAttribute, ImpactAlarmCountNumberAttribute, ImpactAlarmHighestSeverityAttribute, InfoIconInteractor, InfoIconThreshold, InfoWindowAlwaysVisible, InfoWindowBorderColor, InfoWindowColor, InfoWindowShadowColor, InfoWindowTextAntialiasing, InfoWindowTextBackgroundColor, InfoWindowTextFont, InfoWindowTextForegroundColor, InfoWindowVisible, IsEditable, IsLogical, IsSelectable, IsTiny, IsVisible, LabelAntialiasing, LabelBackgroundColor, LabelBorderColor, LabelDirection, LabelFont, LabelForegroundColor, LabelOffset, LabelPosition, LabelVisible, LabelZoomable, LineStyle, LinkPorts, ListAlarmStateAbbreviated, ListPrimaryAlarmState, ListPrimaryState, ListSecondaryAlarmState, LogicalBorderThickness, LogicalHeight, LogicalLabelAntialiasing, LogicalLabelFont, LogicalTypeAttribute, LogicalWidth, MappedBorderColor, MappedBorderColor2, MappedBrightColor, MappedColor, MappedColor2, MappedDarkColor, MultilineBaseAlarmCount, NameAttribute, NewAlarmCountAttribute, NewAlarmCountNumberAttribute, NewAlarmHighestSeverityAttribute, NewImpactAlarmCountAttribute, NewImpactAlarmCountNumberAttribute, NewImpactAlarmHighestSeverityAttribute, ObjectStateAttribute, PassiveIcon, PassiveIconVisible, Pattern, PlinthBrightColor, PlinthColor, PlinthDarkColor, PlinthHorizontalMargin, PlinthVerticalMargin, PlinthVisible, PositionAttribute, PrimaryAlarmState, PrimaryStateAttribute, ReliefBorders, SecondaryStatesAttribute, SecondaryStateStackerPosition, SelectionBorderBackgroundColor, SelectionBorderForegroundColor, SelectionBorderLineStyle, SelectionBorderThickness, ShortcutIcon, ShortcutIconMap, ShortcutIconVisible, ShortcutToolTipMap, SNMPSystemContact, SNMPSystemDescription, SNMPSystemLocation, SourceImage, TinyAlarmBorderThickness, TinyBorderThickness, TinyLabelAntialiasing, TinyLabelFont, TinyTypeAttribute, TrapAuthenticationFailureAbbreviation, TrapAuthenticationFailureBrightColor, TrapAuthenticationFailureColor, TrapAuthenticationFailureDarkColor, TrapAuthenticationFailureDescription, TrapColdStartAbbreviation, TrapColdStartBrightColor, TrapColdStartColor, TrapColdStartDarkColor, TrapColdStartDescription, TrapEGPNeighborLossAbbreviation, TrapEGPNeighborLossBrightColor, TrapEGPNeighborLossColor, TrapEGPNeighborLossDarkColor, TrapEGPNeighborLossDescription, TrapLinkFailureAbbreviation, TrapLinkFailureBrightColor, TrapLinkFailureColor, TrapLinkFailureDarkColor, TrapLinkFailureDescription, TrapWarmStartAbbreviation, TrapWarmStartBrightColor, TrapWarmStartColor, TrapWarmStartDarkColor, TrapWarmStartDescription
VALUE_NOT_SET
Constructor and Description |
---|
IltLinkSet()
Creates a new empty link set.
|
IltLinkSet(IlpClass ilpClass,
Object identifier)
Creates a new empty link set of the specified IlpClass and with the
specified identifier.
|
IltLinkSet(Object identifier)
Creates a new empty link set.
|
Modifier and Type | Method and Description |
---|---|
void |
addLink(IltAbstractLink link)
Deprecated.
Please use the datasource methods instead.
|
void |
addLinkSetListener(IltLinkSet.LinkSetListener listener) |
protected void |
copyFrom(IltObject o)
Copies the attributes from an original object.
|
ilog.tgo.graphic.internal.base.IltBaseElement |
createBase(IltcGraphicElementAggregate root)
Creates a base element, suitable for this particular kind of object, for
use with the Symbolic Graphic Representation Style.
|
void |
createGraphic(IltGraphicManager manager)
Deprecated.
Adding a object to a datasource, connected to a graphic component such as
an
IlpNetwork , is enough to make its graphic representation
visible. |
Enumeration |
getChildren()
Returns the list of children objects, contained in this object.
|
int |
getCount()
Returns the number of links that the link set contains.
|
static IltObjectInfo |
GetIlpClass()
Returns the IlpClass corresponding to this Java class.
|
float |
getLinkDistance()
Deprecated.
Please use CSS property
linkDistance instead. |
float |
getLinkDistance(IltGraphicManager manager)
Deprecated.
Please use CSS property
linkDistance instead. |
float |
getLinkDistance(IltGraphicManager manager,
IltGraphic graphic)
Deprecated.
Please use CSS property
linkDistance instead. |
Enumeration |
getLinks()
Deprecated.
Please use the datasource methods instead.
|
ilog.util.internal.IlAVector |
getMappedForUserList() |
IltObject |
getOwner()
Returns the owner of this link set, either a trail or
a link bundle.
|
double |
getWidth(IltGraphicManager manager,
IltGraphic graphic)
Returns the width of the graphic representation.
|
boolean |
hasLink(IltAbstractLink link)
Deprecated.
Please use the datasource methods instead.
|
void |
initializeCreatedGraphic(IltGraphicManager manager,
IltGraphic graphic)
This is called before adding a graphic representation to a given
view.
|
boolean |
isEmpty()
Returns
true if the link set gathers no links. |
void |
postCreateGraphic(IltGraphicManager manager,
IltGraphic graphic)
This method is called to add the link to a manager, for instance at the
end of computeGraphic.
|
IltGraphic |
preCreateGraphic(IltGraphicManager manager)
Creation of an IltGraphic.
|
void |
removeAllLinks()
Deprecated.
Please use the datasource methods instead.
|
void |
removeGraphic(IltGraphicManager manager)
Removes the graphic representation of this link from the given manager.
|
boolean |
removeLink(IltAbstractLink link)
Deprecated.
Please use the datasource methods instead.
|
void |
removeLinkSetListener(IltLinkSet.LinkSetListener listener) |
void |
setFrom(IltGraphicManager manager,
IltObject from)
Sets the object that is to use as the first extremity of the link in the
given manager.
|
void |
setLinkDistance(float d)
Deprecated.
Please use CSS property
linkDistance instead. |
void |
setLinkDistance(IltGraphicManager manager,
float d)
Deprecated.
Please use CSS property
linkDistance instead. |
void |
setNextFrom(IltObject nextFrom)
Sets the object that will be used as the first extremity of the link,
the next time the link is added to a manager.
|
void |
setNextTo(IltObject nextTo)
Sets the object that will be used as the second extremity of the link,
the next time the link is added to a manager.
|
void |
setOwner(IltObject o)
Sets the owner of this link set, which can be
a link bundle or a trail.
|
void |
setTo(IltGraphicManager manager,
IltObject to)
Sets the object that is to use as the second extremity of the link in the
given manager.
|
_getLinkSet, _setLinkSet, addPropertyChangeListener, applyTransform, copyFrom, createPositionUpdate, ForceInit, forgetShapeGraphicSettingInManager, getBaseRectangle, getCenterPoint, GetClassLegend, getDelegateFromTo, getFrom, getFrom, getFrom, getGraphicRepresentationStyle, getLinkSet, getLogicalFrom, getLogicalTo, getNextFrom, getNextTo, getOutermostParentGraphic, getRepresentation, getShape, getShape, getShapeInManager, getShapeInManager, getTo, getTo, getTo, getWidth, initializeVisibleGraphic, isValidPosition, removePropertyChangeListener, restoreVisibility, setBaseRectangle, setCenterPoint, setFrom, setFromOverride, setLinkLayoutProxyPresent, setLogicalFrom, setLogicalTo, setShape, setShape, setShape, setShape, setShapeGraphicSetting, setShapeInManager, setShapeInManagerAux, setShapeInManagerGraphicSetting, setTo, setToOverride, toString, transformPosition, updateFrom, updateShapeGraphicSettingInManager, usingDefaultShape
__getIlpObject, addGraphicChangedListener, addStateChangedListener, applyTransform, applyTransform, applyTransform, applyTransformInManager, clearState, cloneForRendering, computeGraphic, computeGraphic, computeGraphic, computeGraphic, computeGraphic, computeGraphicAtPosition, createTinyBase, debug, defaultShape, endDelayingComputeGraphic, EndDelayingComputeGraphic, fireAllGraphicChanged, fireGraphicChanged, FromGraphic, getAlarmState, getAttacherInfo, getAttacherInfoController, getAutomaticDecorationsDirection, getBaseRectangleInManager, GetBaseStyleMapping, getCenterPoint, getCenterPointInManager, getDefaultLabelPosition, getGraphic, getGraphic, getGraphicInHierarchy, getGraphicInteractions, getGraphicNotNull, getGraphicNotNullInHierarchy, getGraphicSetting, getGraphicSetting, getGraphicSettings, GetIltObject, getLabel, getLabelOffset, getLabelOffset, getLabelOffset, getLabelPosition, getLabelPosition, getLabelPosition, getLayoutProxy, getLegend, getLegend, getLocalStyle, getLocalStyle, getLogicalType, getName, getObjectInfo, getObjectMapper, getObjectState, getObjectSystemMapper, getPosition, getProperty, getState, getTinyType, getTrapState, hasState, initializeDefaultValues, initializeObject, InitStyle, isEditable, isNearlyVisible, IsPropertyTransient, isSelected, isSelected, isVisible, mapDirection, mappedForUser, objectStateChanged, objectStateCleared, objectStateSet, removeGraphic, removeGraphic, removeGraphicChangedListener, removeGraphicSetting, removeGraphicSetting, removeProperty, removeStateChangedListener, resetLabelOffset, resetLabelOffset, resetLabelPosition, resetLabelPosition, resetState, setAttributeValue, setAutomaticDecorationsDirection, setAutomaticDecorationsDirection, setBaseRectangleInManager, setCenterPoint, setCenterPoint, setCenterPointInManager, setEditable, setGraphic, setGraphicSetting, setGraphicSetting, setGraphicSetting, setGraphicSettings, setIlpClass, setLabel, setLabelOffset, setLabelOffset, setLabelPosition, setLabelPosition, setLegend, setLogicalType, setName, setObjectState, setPosition, setProperty, SetPropertyTransient, setSelected, setSelectedInternal, setState, setState, setTinyType, setVisible, startDelayingComputeGraphic, StartDelayingComputeGraphic, startVisibility
addAttributeValueListener, fireEvent, getAttributeGroup, getAttributeValue, getAttributeValue, getAttributeValueByName, getIdentifier, getIlpClass, getLocalAttributeValues, getObjectSupport, hasAttributeValue, removeAttributeValueListener, setAttributeValue, setAttributeValueByName, setLocalAttributeValues, setObjectSupport
public static IltObjectInfo metainfo
IltObject
class.@Deprecated public static IlpFloatKey LinkDistance
linkDistance
instead.IltObjectCustomization.getLinkDistance()
public static IlpFloatKey MappedLinkDistance
public IltLinkSet()
Like all types of links, the new
link set has no ends. You can set its ends using the
setFrom
and setTo
methods.
If you do no set them, these ends will be defined
from the first link with ends that is added to the set.
An ID is automatically generated with
IlpIDGenerator.GetID()
.
public IltLinkSet(Object identifier)
Like all types of links, the new
link set has no ends. You can set its ends using the
setFrom
and setTo
methods. If you do not set them,
these ends will be
defined from the first link with ends that is added to the set.
identifier
- The identifier of this new instance.IltAbstractLink.setFrom(ilog.tgo.model.IltObject)
,
IltAbstractLink.setTo(ilog.tgo.model.IltObject)
public IltLinkSet(IlpClass ilpClass, Object identifier)
Like all types of links, the new link set has no ends.
You can set its ends using the
setFrom
and setTo
methods. If you do not set them, they will be
defined from the first link with ends that is added to the set.
ilpClass
- The business class of this new instance. It must be a
subclass of IltLinkSet
.identifier
- The identifier of this new instance.IltAbstractLink.setFrom(ilog.tgo.model.IltObject)
,
IltAbstractLink.setTo(ilog.tgo.model.IltObject)
public void addLinkSetListener(IltLinkSet.LinkSetListener listener)
public void removeLinkSetListener(IltLinkSet.LinkSetListener listener)
public static IltObjectInfo GetIlpClass()
IltObjectInfo
.public IltObject getOwner()
public void setOwner(IltObject o)
public boolean isEmpty()
true
if the link set gathers no links.public int getCount()
@Deprecated public boolean hasLink(IltAbstractLink link)
true
if the specified link is in the
link set.link
- The link to be tested.IlpDataSource.getContainerInterface(java.lang.Object)
,
IlpContainer
@Deprecated public void addLink(IltAbstractLink link)
link
- The link to be added to the link set.IlpDataSource.getContainerInterface(java.lang.Object)
,
IlpDefaultDataSource.setParent(java.lang.Object, java.lang.Object)
,
IlpDefaultDataSource.setChildren(java.lang.Object, java.util.List<? extends java.lang.Object>)
,
IlpContainer
@Deprecated public boolean removeLink(IltAbstractLink link)
true
. Otherwise,
this method does nothing and returns false
.
Once removed, the link keeps the same ends. It is not removed from the managers it is in. The link removed from the set will be displayed beside the link set.
link
- The link to be removed from the link set.IlpDataSource.getContainerInterface(java.lang.Object)
,
IlpDefaultDataSource.setParent(java.lang.Object, java.lang.Object)
,
IlpDefaultDataSource.setChildren(java.lang.Object, java.util.List<? extends java.lang.Object>)
,
IlpContainer
@Deprecated public void removeAllLinks()
@Deprecated public Enumeration getLinks()
Enumeration
.IltAbstractLink
.IlpDataSource.getContainerInterface(java.lang.Object)
,
IlpContainer
public Enumeration getChildren()
getChildren
in class IltObject
@Deprecated public void createGraphic(IltGraphicManager manager)
IlpNetwork
, is enough to make its graphic representation
visible.
Note: This method is not supposed to be used when this
IltLinkSet
is in a data source.
createGraphic
in class IltObject
public IltGraphic preCreateGraphic(IltGraphicManager manager)
preCreateGraphic
in class IltObject
public void postCreateGraphic(IltGraphicManager manager, IltGraphic graphic)
postCreateGraphic
in class IltAbstractLink
public void removeGraphic(IltGraphicManager manager)
removeGraphic
in class IltAbstractLink
public double getWidth(IltGraphicManager manager, IltGraphic graphic)
getWidth
in class IltAbstractLink
public void setFrom(IltGraphicManager manager, IltObject from)
setFrom
in class IltAbstractLink
manager
- the manager where to change the link's from endfrom
- the new from end of the linkpublic void setTo(IltGraphicManager manager, IltObject to)
setTo
in class IltAbstractLink
manager
- the manager where to change the link's to endto
- the new to end of the linkpublic void setNextFrom(IltObject nextFrom)
setNextFrom
in class IltAbstractLink
IltAbstractLink.setFrom(ilog.tgo.model.IltObject)
public void setNextTo(IltObject nextTo)
setNextTo
in class IltAbstractLink
IltAbstractLink.setTo(ilog.tgo.model.IltObject)
@Deprecated public float getLinkDistance(IltGraphicManager manager)
linkDistance
instead.manager
- The manager to which the link set belongs.
Note: This method is not supposed to be used when this
IltLinkSet
is in a data source.
@Deprecated public float getLinkDistance(IltGraphicManager manager, IltGraphic graphic)
linkDistance
instead.manager
- The manager to which the link set belongs.graphic
- The graphic representation in this manager.
Note: This method is not supposed to be used when this
IltLinkSet
is in a data source.
@Deprecated public void setLinkDistance(IltGraphicManager manager, float d)
linkDistance
instead.manager
- The manager to which the link set belongs.d
- The distance between two links.
Note: This method is not supposed to be used when this
IltLinkSet
is in a data source.
@Deprecated public float getLinkDistance()
linkDistance
instead.IltAbstractLink.DefaultLinkDistance
.IltAbstractLink.DefaultLinkDistance
@Deprecated public void setLinkDistance(float d)
linkDistance
instead.public void initializeCreatedGraphic(IltGraphicManager manager, IltGraphic graphic)
initializeCreatedGraphic
in class IltObject
public ilog.tgo.graphic.internal.base.IltBaseElement createBase(IltcGraphicElementAggregate root)
IltObject
createBase
in class IltObject
IltCompositeGraphic.createBase(IltcGraphicElementAggregate, IltObject)
,
IltObject.createTinyBase(IltcGraphicElementAggregate)
protected void copyFrom(IltObject o)
IltObject
copyFrom
in class IltObject
IltObject.cloneForRendering(boolean)
public ilog.util.internal.IlAVector getMappedForUserList()
getMappedForUserList
in class IltObject
© Copyright Rogue Wave Software, Inc. 1997, 2018. All Rights Reserved.