public static class IltCompositeGrapher.LayerPolicy extends IltLayerPolicy
For a typical subclass, you will probably have to write the following code:
IltcLayer
members that reference the
layers used by the layer policy.
IltcLayer
members by using
the methods addLayerOnTop
and
addLayerAtBottom
. To position new layers between existing
layers, use addLayerBelow
and pass as an argument the result
of one of the layer accessors.
getDefaultLayer
method that returns a layer according
to the object being changed.getElementLayer
method if you want to
change the layering of the graphic elements of a given composite graphic.
Modifier and Type | Field and Description |
---|---|
protected IltcLayer |
_alarmBalloonLayer |
protected IltcLayer |
_cardLayer |
protected IltcLayer |
_groupLayer |
protected IltcLayer |
_infoWindowLayer |
protected IltcLayer |
_linkLayer |
protected IltcLayer |
_mainLayer |
protected IltcCompositeManager |
_manager |
protected IltcLayer |
_secondaryStateModifiersLayer |
protected IltcLayer |
_shelfLayer |
protected IlvManagerLayer |
_subNetworkLayer |
protected IltcLayer |
_systemWindowLayer |
Constructor and Description |
---|
LayerPolicy()
Create a new layer policy.
|
LayerPolicy(IltcCompositeManager manager)
Creates a new layer policy.
|
Modifier and Type | Method and Description |
---|---|
void |
attach(IltcCompositeManager mgr)
Attaches the layer policy to the given manager.
|
void |
detach(IltcCompositeManager cmgr)
Detaches the layer policy from the given manager.
|
IltcLayer |
getAlarmBalloonLayer()
Returns the layer which holds the alarm balloons of all objects.
|
IltcLayer |
getCardLayer()
Returns the layer which holds the card carriers and composite cards,
including all its items.
|
IltcLayer |
getDefaultLayer(IltcCompositeGraphic graphic)
Returns the default layer for a given graphic.
|
IltcLayer |
getElementLayer(IltcCompositeGraphic graphic,
IltGraphicElementName elementName)
Returns the layer to be used for a specific graphic element, part of
a composite object.
|
IltcLayer |
getGroupLayer()
Returns the layer which holds the groups.
|
IltcLayer |
getInfoWindowLayer()
Returns the layer which holds the information windows of all objects.
|
protected IltcLayer |
getLayerOf(IltObject object)
Returns the layer of a given object in this manager, if it is visible.
|
IltcLayer |
getLinkLayer()
Returns the layer which holds the links.
|
IltcLayer |
getMainLayer()
Returns the layer which holds the base of network elements,
off-page connectors, shelves and stand-alone shelf items.
|
IltcLayer |
getSecondaryStateModifiersLayer()
Returns the layer which holds the secondary states of all objects.
|
IltcLayer |
getShelfLayer()
Returns the layer which holds the shelves and its items.
|
IlvManagerLayer |
getSubNetworkLayer()
Returns the layer which holds the subgraphers.
|
IltcLayer |
getSystemWindowLayer()
Returns the layer which holds the system windows of all objects.
|
boolean |
isRemovable(IltcLayer layer)
Returns
true if the specified layer is free to be removed
from the manager. |
getElementLayer
getDefaultLayer
protected IltcCompositeManager _manager
protected IlvManagerLayer _subNetworkLayer
protected IltcLayer _groupLayer
protected IltcLayer _cardLayer
protected IltcLayer _shelfLayer
protected IltcLayer _linkLayer
protected IltcLayer _mainLayer
protected IltcLayer _secondaryStateModifiersLayer
protected IltcLayer _alarmBalloonLayer
protected IltcLayer _infoWindowLayer
protected IltcLayer _systemWindowLayer
public LayerPolicy(IltcCompositeManager manager)
Special layers will be allocated to place the different
decorations. The layers are created when the layer policy is
attached to the manager (See attach(ilog.tgo.composite.IltcCompositeManager)
)
Layers will be created in the following order:
public LayerPolicy()
Special layers will be allocated to place the different decorations. The layers are created when the layer policy is attached to the manager.
Layers will be created in the following order:
public IltcLayer getDefaultLayer(IltcCompositeGraphic graphic)
getDefaultLayer
in class IltLayerPolicy
protected IltcLayer getLayerOf(IltObject object)
public IltcLayer getElementLayer(IltcCompositeGraphic graphic, IltGraphicElementName elementName)
IltLayerPolicy
null
means to use the composite
object's layer.getElementLayer
in class IltLayerPolicy
public boolean isRemovable(IltcLayer layer)
true
if the specified layer is free to be removed
from the manager.isRemovable
in class IltLayerPolicy
public void attach(IltcCompositeManager mgr)
This method performs all the needed initialization, for instance, creating new layers where the decorations will be placed.
attach
in class IltLayerPolicy
IltLayerPolicy.detach(ilog.tgo.composite.IltcCompositeManager)
,
IltCompositeGrapher.setLayerPolicy(IltcLayerPolicy)
public void detach(IltcCompositeManager cmgr)
This method performs all the needed clean up, removing the layers that have been added by this layer policy.
detach
in class IltLayerPolicy
IltLayerPolicy.attach(ilog.tgo.composite.IltcCompositeManager)
,
IltCompositeGrapher.setLayerPolicy(IltcLayerPolicy)
public IlvManagerLayer getSubNetworkLayer()
getSubNetworkLayer
in class IltcLayerPolicy
public IltcLayer getGroupLayer()
public IltcLayer getCardLayer()
public IltcLayer getShelfLayer()
public IltcLayer getLinkLayer()
public IltcLayer getMainLayer()
public IltcLayer getSecondaryStateModifiersLayer()
public IltcLayer getAlarmBalloonLayer()
public IltcLayer getInfoWindowLayer()
public IltcLayer getSystemWindowLayer()
© Copyright 2024 Rogue Wave Software, Inc., a Perforce company.. All Rights Reserved.