|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Interfaz que tienen que implementar todas las capas.
Method Summary | |
void |
addError(FMapDriverException error)
add an error cause to describe the layer's wrong status |
boolean |
addLayerListener(LayerListener o)
Añade un listener LayerListener a la lista de listeners. |
void |
clean()
|
void |
draw(java.awt.Graphics2D g,
ViewPort viewPort)
Dibuja la capa |
ICoordTrans |
getCoordTrans()
Devuelve las coordenadas de transformación. |
FMapDriverException |
getError(int i)
return the specified error |
java.util.List |
getErrors()
Returns a list with all layer errors |
java.awt.geom.Rectangle2D |
getFullExtent()
Obtiene la extensión completa de la capa |
long |
getId()
|
java.lang.String |
getInfoString()
Devuelve una cadena con informacion sobre la capa. |
LayerListener[] |
getLayerListeners()
|
MapContext |
getMapContext()
Devuelve el FMap al que está añadida la capa o null si la capa no ha sido añadida a ningún FMap |
double |
getMaxScale()
La capa no se visualiza si está por encima de esa escala |
java.lang.String |
getMemo()
|
double |
getMinScale()
La capa no se visualiza si está por debajo de esa escala |
java.lang.String |
getName()
Devuelve el nombre de la capa. |
int |
getNumErrors()
returns the number of errors that causes layer unavailable status |
java.lang.Object |
getProperty(java.lang.Object key)
Useful to associate any object to a layer. |
boolean |
isActive()
Devuelve true si la capa esta activa. |
boolean |
isAvailable()
|
boolean |
isDirty()
|
boolean |
isInfoable()
|
boolean |
isInTOC()
If the layer appears in the TOC then true is returned, if false the layer will not be displayed at the TOC although it remains in the view and in the project |
boolean |
isOk()
Return if the layer is in OK status (it hasnt got errors) |
boolean |
isVisible()
Devuelve true si la capa es visible. |
boolean |
isWithinScale(double scale)
|
boolean |
isWritable()
|
void |
load()
Realiza las operaciones de inicialización de la capa. |
void |
reload()
Intenta recuperar una capa ante un posible error. |
boolean |
removeLayerListener(LayerListener o)
Borra de la lista el LayerListener que se pasa como parámetro. |
void |
setActive(boolean selected)
Pone la capa actual a activa o inactiva según el boolean que se pasa como parámetro. |
void |
setAvailable(boolean available)
|
void |
setCoordTrans(ICoordTrans ct)
Inserta las coordenadas de transformación. |
void |
setDirty(boolean dirty)
true if this layer need a repaint. |
void |
setInfoable(boolean info)
|
void |
setMapContext(MapContext m)
|
void |
setMaxScale(double maxScale)
|
void |
setMemo(java.lang.String memo)
|
void |
setMinScale(double minScale)
|
void |
setName(java.lang.String name)
Inserta un nombre a la capa. |
void |
setProperty(java.lang.Object key,
java.lang.Object obj)
|
void |
setVisible(boolean visibility)
Pone la capa en modo visible o no visible. |
java.lang.StringBuffer |
toXML(java.lang.String name,
java.lang.String proyectPath)
|
boolean |
visibleRequired()
Devuelve true si la capa esta establecida como visible. |
void |
wakeUp(boolean driver_is_already_open)
|
Method Detail |
public void setActive(boolean selected)
selected
- activa.public boolean isActive()
public void setName(java.lang.String name)
name
- nombre.public java.lang.String getName()
public void setMemo(java.lang.String memo)
public java.lang.String getMemo()
public void load() throws FMapDriverException
DriverIOException
FMapDriverException
public void setVisible(boolean visibility)
visibility
- visibilidad.public void setInfoable(boolean info)
public long getId()
public boolean isVisible()
isAvialable()
,
setAvialable()
,
visibleRequired()
public boolean isInfoable()
public MapContext getMapContext()
public void setMapContext(MapContext m)
public java.awt.geom.Rectangle2D getFullExtent() throws FMapDriverException
FMapDriverException
public void draw(java.awt.Graphics2D g, ViewPort viewPort) throws FMapDriverException
g
- Graphics2D sobre el que dibujar.viewPort
- Propiedades de la vista.
FMapDriverException
public void setCoordTrans(ICoordTrans ct)
ct
- Coordenadas de transformación.public ICoordTrans getCoordTrans()
public boolean addLayerListener(LayerListener o)
o
- Listener.
public LayerListener[] getLayerListeners()
public boolean removeLayerListener(LayerListener o)
o
- Listener.
public boolean isWithinScale(double scale)
public double getMinScale()
public double getMaxScale()
public void setMinScale(double minScale)
public void setMaxScale(double maxScale)
public boolean isInTOC()
public boolean isDirty()
public void setDirty(boolean dirty)
dirty
- public boolean isOk()
public int getNumErrors()
public FMapDriverException getError(int i)
i
-
public void addError(FMapDriverException error)
error
- public java.util.List getErrors()
public void setAvailable(boolean available)
public boolean isAvailable()
public void reload() throws FMapDriverException
DriverIOException
FMapDriverException
public boolean visibleRequired()
public java.lang.String getInfoString()
public boolean isWritable()
public java.lang.Object getProperty(java.lang.Object key)
key
-
public void setProperty(java.lang.Object key, java.lang.Object obj)
key
- obj
- public void wakeUp(boolean driver_is_already_open)
public java.lang.StringBuffer toXML(java.lang.String name, java.lang.String proyectPath)
public void clean()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |