public abstract class IltLayerPolicy extends IltcLayerPolicy
Constructor and Description |
---|
IltLayerPolicy() |
Modifier and Type | Method and Description |
---|---|
void |
attach(IltcCompositeManager manager)
Attaches this layer policy to the manager.
|
void |
detach(IltcCompositeManager manager)
Detaches the layer policy from the manager and dispose its contents.
|
abstract IltcLayer |
getDefaultLayer(IltcCompositeGraphic graphic)
Returns the default layer to be used when adding a composite object
to the manager.
|
IltcLayer |
getElementLayer(IltcCompositeGraphic graphic,
ilog.tgo.composite.internal.IltcGraphicElement g)
Implementation of a deprecated method of the superclass.
|
abstract IltcLayer |
getElementLayer(IltcCompositeGraphic graphic,
IltGraphicElementName elementName)
Returns the layer to be used for a specific graphic element, part of
a composite object.
|
abstract boolean |
isRemovable(IltcLayer layer)
Returns
true if the specified layer is free to be removed
from the manager. |
getDefaultLayer, getSubNetworkLayer
public abstract IltcLayer getDefaultLayer(IltcCompositeGraphic graphic)
getDefaultLayer
in class IltcLayerPolicy
public abstract IltcLayer getElementLayer(IltcCompositeGraphic graphic, IltGraphicElementName elementName)
null
means to use the composite
object's layer.public IltcLayer getElementLayer(IltcCompositeGraphic graphic, ilog.tgo.composite.internal.IltcGraphicElement g)
getElementLayer
in class IltcLayerPolicy
public abstract boolean isRemovable(IltcLayer layer)
true
if the specified layer is free to be removed
from the manager.isRemovable
in class IltcLayerPolicy
public void attach(IltcCompositeManager manager)
This method is called when the layer policy is set
in a IltCompositeGrapher
.
This method is responsible for performing any layer creation or initialization.
attach
in class IltcLayerPolicy
detach(ilog.tgo.composite.IltcCompositeManager)
,
IltCompositeGrapher.setLayerPolicy(IltcLayerPolicy)
public void detach(IltcCompositeManager manager)
This method is called when the layer policy is being replaced.
This method is responsible for performing any layer clean up. All layers created by this layer policy should be removed in this method.
detach
in class IltcLayerPolicy
attach(ilog.tgo.composite.IltcCompositeManager)
,
IltCompositeGrapher.setLayerPolicy(IltcLayerPolicy)
© Copyright 2024 Rogue Wave Software, Inc., a Perforce company.. All Rights Reserved.