|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Interfaz que implementan todas las capas que pueden ser colección de otras.
Method Summary | |
void |
addLayer(FLayer layer)
Añade una capa al final de la lista de subcapas |
void |
addLayerCollectionListener(LayerCollectionListener listener)
Añade un listener de los eventos de la colección de capas |
FLayer[] |
getActives()
Obtiene el array de capas activas en el subárbol que pende de este nodo |
FLayer |
getLayer(int index)
Obtiene el hijo i-ésimo directo de esta colección |
FLayer |
getLayer(java.lang.String layerName)
Método de conveniencia para buscar una capa por su nombre Es conveniente usar getLayer(int) siempre que se pueda, es más directo. |
int |
getLayersCount()
Obtiene el número de capas que hay en su mismo nivel Es decir, no cuenta las subcapas de un FLayers |
FLayer[] |
getVisibles()
Obtiene el array de capas visibles que penden del arbol cuya raíz es este nodo |
void |
moveTo(int from,
int to)
Mueve una capa de la posición from a la posición to. |
void |
removeLayer(FLayer lyr)
Borra un FLayer a partir del objeto FLayer que se pasa como parámetro. |
void |
removeLayer(int idLayer)
Borra una FLayer del vector a partir del identificador. |
void |
removeLayer(java.lang.String layerName)
Método de conveniencia para borrar una capa con ese nombre |
void |
removeLayerCollectionListener(LayerCollectionListener listener)
ELimina un listener de los eventos de la colección de capas |
void |
setAllActives(boolean active)
Pone todas las capas a activas o inactivas. |
void |
setAllVisibles(boolean visible)
Pone todas las capas a visibles o invisibles. |
Method Detail |
public void addLayerCollectionListener(LayerCollectionListener listener)
listener
- LayerCollectionListener.public void removeLayerCollectionListener(LayerCollectionListener listener)
listener
- LayerCollectionListener.public void addLayer(FLayer layer) throws CancelationException
layer
- FLayer.
CancelationException
public void moveTo(int from, int to) throws CancelationException
from
- origen.to
- destino.
CancelationException
public void removeLayer(FLayer lyr) throws CancelationException
lyr
- Layer a borrar.
CancelationException
public void removeLayer(int idLayer)
idLayer
- public void removeLayer(java.lang.String layerName)
layerName
- public FLayer[] getVisibles()
public FLayer[] getActives()
public FLayer getLayer(int index)
index
- Índice de la capa.
public FLayer getLayer(java.lang.String layerName)
layerName
- Nombre de la capa.
public int getLayersCount()
public void setAllActives(boolean active)
active
- boolean.public void setAllVisibles(boolean visible)
visible
- boolean.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |