public class IltcLayer extends Object implements IlpLayer
IltcCompositeManager.addLayerOnTop(ilog.tgo.composite.IltcLayer)
,
IltcCompositeManager.addLayerBelow(ilog.tgo.composite.IltcLayer)
,
IltcCompositeManager.addIlvManagerLayerOnTop(ilog.tgo.composite.IltcLayer)
,
IltcCompositeManager.addIlvManagerLayerBelow(ilog.tgo.composite.IltcLayer)
Constructor and Description |
---|
IltcLayer(IlvManager manager,
int index,
IltcCompositeManager owner) |
Modifier and Type | Method and Description |
---|---|
void |
addVisibilityFilter(IlvLayerVisibilityFilter filter)
Adds a visibility filter.
|
IlvRect |
computeBBox(IlvTransformer t)
Returns the bbox of the 2 layers underneath.
|
protected void |
destroy(IlvManager manager)
Deletes the layer and frees the associated range of IlvManagerLayers.
|
int |
getCardinal()
Returns the number of objects in this layer.
|
IlvGraphicEnumeration |
getElements()
Returns an enumeration of the objects in this layer.
|
int |
getEndIndex()
Returns the current index of the last manager layer in use by this
macro-layer, plus one.
|
IlvManagerLayer |
getLayerFor(IlvManager manager,
IlpGraphic graphic)
Returns the right manager layer for a given object.
|
String |
getName()
Returns the layer's name, or
null if is has not yet been set. |
ilog.tgo.composite.internal.IltcCompositePartLayer |
getProxyLayer() |
int |
getStartIndex()
Returns the current index of the first manager layer in use by this
macro-layer.
|
Enumeration |
getVisibilityFilters()
Returns an enumeration of all installed visibility filters.
|
boolean |
isVisible(IlvManager manager)
Returns the visibility of this macro-layer in the manager.
|
boolean |
isVisible(IlvManagerView view)
Returns the visibility of this macro-layer in a view.
|
void |
map(IlvApplyObject f,
Object arg)
Applies a function to all the objects in the set.
|
void |
mapInside(IlvRect rect,
IlvRect trect,
IlvApplyObject f,
Object arg,
IlvTransformer t)
Applies a function to all objects located in a specified rectangle.
|
void |
mapIntersects(IlvRect rect,
IlvRect trect,
IlvApplyObject f,
Object arg,
IlvTransformer t)
Applies a function to all objects with a bounding box that intersects
a specified rectangle.
|
void |
removeVisibilityFilter(IlvLayerVisibilityFilter filter)
Removes an installed visibility filter.
|
void |
setName(String name)
Sets the layer's name.
|
void |
setVisible(IlvManager manager,
boolean visible)
Changes the visibility of this macro-layer in the manager.
|
void |
setVisible(IlvManager manager,
IlvManagerView view,
boolean visible)
Changes the visibility of this macro-layer in a view.
|
public IltcLayer(IlvManager manager, int index, IltcCompositeManager owner)
public IlvRect computeBBox(IlvTransformer t)
public int getStartIndex()
getStartIndex
in interface IlpLayer
public int getEndIndex()
getEndIndex
in interface IlpLayer
public String getName()
null
if is has not yet been set.public void setName(String name)
Note: Layer names should be unique within a given IltcCompositeManager.
public void map(IlvApplyObject f, Object arg)
f
- The function to be applied.arg
- The argument of the function.public void mapInside(IlvRect rect, IlvRect trect, IlvApplyObject f, Object arg, IlvTransformer t)
f
to all graphic objects
inside the rectangle rect
.
Note that the applied function should not add, remove, or change the bounding box of a graphic object.
rect
- The rectangle.trect
- The transformed rectangle.f
- The method to be applied.arg
- The argument passed to the method.t
- The transformer used to display the set.public void mapIntersects(IlvRect rect, IlvRect trect, IlvApplyObject f, Object arg, IlvTransformer t)
Note that the applied function should not add, remove, or change the bounding box of a graphic object.
rect
- The rectangle.trect
- The transformed rectangle.f
- The method to be applied.arg
- The argument passed to the method.t
- The transformer used to display the set.public void addVisibilityFilter(IlvLayerVisibilityFilter filter)
Note: To make sure the changes are reflected graphically,
you will need to call IlvManager.reDrawViews
afterwards.
Note: Visibility filters don't work in subgraphers.
public void removeVisibilityFilter(IlvLayerVisibilityFilter filter)
Note: To make sure the changes are reflected graphically,
you will need to call IlvManager.reDrawViews
afterwards.
Note: Visibility filters don't work in subgraphers.
public Enumeration getVisibilityFilters()
public boolean isVisible(IlvManager manager)
public boolean isVisible(IlvManagerView view)
Note: This function works only for layers in a top-level grapher, not for layers in a subgrapher.
public void setVisible(IlvManager manager, boolean visible)
setVisible
in interface IlpLayer
public void setVisible(IlvManager manager, IlvManagerView view, boolean visible)
setVisible
in interface IlpLayer
public final ilog.tgo.composite.internal.IltcCompositePartLayer getProxyLayer()
protected void destroy(IlvManager manager)
public IlvManagerLayer getLayerFor(IlvManager manager, IlpGraphic graphic)
getLayerFor
in interface IlpLayer
public IlvGraphicEnumeration getElements()
public int getCardinal()
© Copyright Rogue Wave Software, Inc. 1997, 2018. All Rights Reserved.