|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.iver.cit.gvsig.fmap.layers.FLyrDefault com.iver.cit.gvsig.fmap.layers.FLayers
Representa un nodo interno en el árbol de capas
Constructor Summary | |
FLayers(FMap fmap,
FLayers parent)
Crea un nuevo FLayers. |
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 |
void |
draw(java.awt.image.BufferedImage image,
java.awt.Graphics2D g,
ViewPort viewPort,
Cancellable cancel)
Dibuja la capa |
FLayer[] |
getActives()
Obtiene el array de capas activas en el subárbol que pende de este nodo |
FMap |
getFMap()
Devuelve el FMap al que está añadida la capa o null si la capa no ha sido añadida a ningún FMap |
java.awt.geom.Rectangle2D |
getFullExtent()
Obtiene la extensión completa de la capa |
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 |
double |
getMaxScale()
La capa no se visualiza si está por encima de esa escala |
double |
getMinScale()
La capa no se visualiza si está por debajo de esa escala |
FLayer[] |
getVisibles()
Obtiene el array de capas visibles que penden del arbol cuya raíz es este nodo |
XMLEntity |
getXMLEntity()
Devuelve el XMLEntity a partir del objeto. |
void |
moveTo(int from,
int to)
Mueve una capa de la posición from a la posición to. |
void |
print(java.awt.Graphics2D g,
ViewPort viewPort,
Cancellable cancel)
Dibuja la capa |
void |
process(FeatureVisitor visitor)
Realiza un proceso sobre las geometrías de la capa indicadas por el bitset que se pasa como parámetro |
void |
process(FeatureVisitor visitor,
java.util.BitSet subset)
Realiza un proceso sobre las geometrías de la capa indicadas por el bitset que se pasa como parámetro |
void |
removeLayer(FLayer lyr)
Borra una capa de la colección de capas. |
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. |
void |
setCoordTrans(ICoordTrans ct)
Inserta las coordenadas de transformación. |
void |
setMaxScale(double maxScale)
|
void |
setMinScale(double minScale)
|
void |
setXMLEntity(XMLEntity xml)
DOCUMENT ME! |
Methods inherited from class com.iver.cit.gvsig.fmap.layers.FLyrDefault |
addLayerListener, getCoordTrans, getLayerText, getName, getParentLayer, getProjection, getTransparency, getVirtualLayers, isActive, isVisible, isWithinScale, load, removeLayerListener, reProject, setActive, setLayerText, setName, setParentLayer, setProjection, setTransparency, setVirtualLayers, setVisible |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public FLayers(FMap fmap, FLayers parent)
fmap
- parent
- Method Detail |
public void addLayerCollectionListener(LayerCollectionListener listener)
addLayerCollectionListener
in interface LayerCollection
listener
- public void setAllVisibles(boolean visible)
LayerCollection
setAllVisibles
in interface LayerCollection
visible
- boolean.LayerCollection.setAllVisibles(boolean)
public void removeLayerCollectionListener(LayerCollectionListener listener)
removeLayerCollectionListener
in interface LayerCollection
listener
- public void addLayer(FLayer layer) throws CancelationException
addLayer
in interface LayerCollection
layer
-
CancelationException
public void moveTo(int from, int to) throws CancelationException
moveTo
in interface LayerCollection
from
- origen.to
- destino.
CancelationException
public void removeLayer(FLayer lyr) throws CancelationException
removeLayer
in interface LayerCollection
lyr
- FLayer
CancelationException
public void removeLayer(int idLayer)
removeLayer
in interface LayerCollection
idLayer
- public void removeLayer(java.lang.String layerName)
removeLayer
in interface LayerCollection
layerName
- public FLayer[] getVisibles()
getVisibles
in interface LayerCollection
public FLayer getLayer(int index)
getLayer
in interface LayerCollection
index
- Índice.
public FLayer getLayer(java.lang.String layerName)
getLayer
in interface LayerCollection
layerName
- nombre.
public int getLayersCount()
getLayersCount
in interface LayerCollection
public void draw(java.awt.image.BufferedImage image, java.awt.Graphics2D g, ViewPort viewPort, Cancellable cancel) throws DriverException
FLayer
draw
in interface FLayer
image
- Imagen utilizada para acelerar el dibujado en pantalla.g
- Graphics2D sobre el que dibujar.viewPort
- Propiedades de la vista.cancel
- PAra poder cancelar el dibujado.
DriverException
com.iver.cit.gvsig.fmap.layers.FLayer#draw(java.awt.image.BufferedImage,
java.awt.Graphics2D, com.iver.cit.gvsig.fmap.ViewPort)
public void print(java.awt.Graphics2D g, ViewPort viewPort, Cancellable cancel) throws DriverException
FLayer
print
in interface FLayer
g
- Graphics2D de la impresora sobre el que dibujar.viewPort
- Propiedades de la vista.cancel
-
DriverException
FLayer.print(java.awt.Graphics2D,
com.iver.cit.gvsig.fmap.ViewPort,
com.iver.cit.gvsig.fmap.operations.Cancellable)
public java.awt.geom.Rectangle2D getFullExtent() throws DriverException
FLayer
getFullExtent
in interface FLayer
DriverException
FLayer.getFullExtent()
public XMLEntity getXMLEntity()
FLyrDefault
getXMLEntity
in interface FLayer
getXMLEntity
in class FLyrDefault
com.iver.cit.gvsig.fmap.layers.FLayer#getProperties()
public void setXMLEntity(XMLEntity xml) throws XMLException
setXMLEntity
in interface FLayer
setXMLEntity
in class FLyrDefault
xml
- DOCUMENT ME!
XMLException
com.iver.cit.gvsig.fmap.layers.FLyrDefault#setXMLEntity(com.iver.utiles.XMLEntity)
public void process(FeatureVisitor visitor, java.util.BitSet subset) throws DriverException, VisitException
VectorialData
process
in interface VectorialData
visitor
- Visitor que se recibirá las visitas de las geometríassubset
- BitSet indicando los índices de las geometrías que
visitarán
DriverException
VisitException
VectorialData.process(com.iver.cit.gvsig.fmap.operations.strategies.FeatureVisitor,
java.util.BitSet)
public void process(FeatureVisitor visitor) throws DriverException, VisitException
VectorialData
process
in interface VectorialData
visitor
- Visitor que se recibirá las visitas de las geometrías
DriverException
VisitException
VectorialData.process(com.iver.cit.gvsig.fmap.operations.strategies.FeatureVisitor)
public FMap getFMap()
FLayer
getFMap
in interface FLayer
getFMap
in class FLyrDefault
FLayer.getFMap()
public void setCoordTrans(ICoordTrans ct)
FLyrDefault
setCoordTrans
in interface FLayer
setCoordTrans
in class FLyrDefault
ct
- Cooredenadas de transformación.public void setAllActives(boolean active)
LayerCollection
setAllActives
in interface LayerCollection
active
- boolean.LayerCollection.setAllActives(boolean)
public FLayer[] getActives()
LayerCollection
getActives
in interface LayerCollection
LayerCollection.getActives()
public double getMinScale()
FLayer
getMinScale
in interface FLayer
getMinScale
in class FLyrDefault
public double getMaxScale()
FLayer
getMaxScale
in interface FLayer
getMaxScale
in class FLyrDefault
public void setMinScale(double minScale)
setMinScale
in interface FLayer
setMinScale
in class FLyrDefault
public void setMaxScale(double maxScale)
setMaxScale
in interface FLayer
setMaxScale
in class FLyrDefault
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |