|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.iver.cit.gvsig.fmap.FMap
Modelo del mapa.
Nested Class Summary | |
class |
FMap.LayerEventListener
Evento Layer. |
Field Summary | |
static double[] |
CHANGE
|
static double[] |
CHANGEM
|
static int |
CONTAINS
|
static int |
CROSSES
|
static int |
DISJOINT
|
static int |
EQUALS
|
static int |
INTERSECTS
|
static int |
OVERLAPS
|
static int |
TOUCHES
|
static int |
WITHIN
|
Constructor Summary | |
FMap(ViewPort vp)
Crea un nuevo FMap. |
Method Summary | |
boolean |
addAtomicEventListener(AtomicEventListener listener)
Añade un AtomicEventListener. |
void |
addLayerListener(LegendListener listener)
Añade un LegendListener. |
void |
addToTrackLayer(FLayer vectorial)
Añade una capa al grupo de capas que se sitúa por encima de todas las otras capas |
void |
beginAtomicEvent()
Inicializa los AtomicEvent. |
void |
callLegendChanged(LegendChangedEvent e)
Método ejecutado cuando hay un cambio de leyenda que se quiera reflejar. |
FMap |
cloneFMap()
Crea un nuevo FMap totalmente desligado, se replican las capas y el ViewPort |
static FMap |
createFromXML(XMLEntity xml)
Crea un nuevo FMAp a partir del XMLEntity. |
void |
createIndex()
|
FMap |
createNewFMap(ViewPort vp)
Crea un nuevo FMap con la información del ViewPort que se pasa como parámetro. |
void |
draw(java.awt.image.BufferedImage image,
java.awt.Graphics2D g)
|
void |
draw(java.awt.image.BufferedImage image,
java.awt.Graphics2D g,
Cancellable cancel)
|
void |
drawLabels(java.awt.image.BufferedImage b)
Dibuja en la imagen que se pasa como parámetro el contenido de las capas visibles del mapa y teniendo en cuenta los datos del ViewPort contenido en este FMap |
void |
endAtomicEvent()
Finaliza los AtomicEvent. |
java.awt.geom.Rectangle2D |
getFullExtent()
Método de conveniencia. |
FLayers |
getLayers()
Devuelve las capas que contiene el mapa. |
IProjection |
getProjection()
|
long |
getScaleView()
Devuelve la escala de la vista en pantalla. |
java.awt.geom.Rectangle2D |
getSelectionBounds()
|
ViewPort |
getViewPort()
Devuelve el ViewPort. |
XMLEntity |
getXMLEntity()
Devuelve el XMLEntity. |
void |
invalidate()
Método de conveniencia que se usa provisionalmente para solicitar un refresco de todo lo que dependa del FMap (MapContext). |
void |
print(java.awt.Graphics2D g)
Imprime el las capas que contiene el FMap sobre el Graphics2D que se pasa como parámetro, normalmente es el Graphics de la impresora. |
void |
process(FeatureVisitor visitor)
|
void |
processSelected(FeatureVisitor visitor)
|
Record[] |
queryByPoint(java.awt.geom.Point2D p,
double tolerance)
|
Record[] |
queryByRect(java.awt.geom.Rectangle2D rect)
|
Record[] |
queryByShape(IGeometry g,
int relationship)
|
boolean |
removeAtomicEventListener(AtomicEventListener listener)
Borra un AtomicEventListener de la lista de listeners. |
void |
removeLayerListener(LegendListener listener)
Borra un LegendListener. |
void |
reProject(ICoordTrans arg0)
|
void |
select(FeatureVisitor visitor)
|
void |
selectByPoint(java.awt.geom.Point2D p,
double tolerance)
|
void |
selectByRect(java.awt.geom.Rectangle2D rect)
|
void |
selectByShape(IGeometry g,
int relationship)
|
void |
selectFromSelection()
|
void |
setProjection(IProjection proj)
Inserta la proyección. |
void |
setVectorial(VectorialAdapter v)
|
void |
setViewPort(ViewPort viewPort)
Inserta un ViewPort. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public static final double[] CHANGEM
public static final double[] CHANGE
public static final int EQUALS
public static final int DISJOINT
public static final int INTERSECTS
public static final int TOUCHES
public static final int CROSSES
public static final int WITHIN
public static final int CONTAINS
public static final int OVERLAPS
Constructor Detail |
public FMap(ViewPort vp)
vp
- ViewPort.Method Detail |
public void addLayerListener(LegendListener listener)
listener
- LegendListener a añadir.public void callLegendChanged(LegendChangedEvent e)
e
- LegendChangedEvent.public void removeLayerListener(LegendListener listener)
listener
- LegendListener a borrar.public FLayers getLayers()
public void drawLabels(java.awt.image.BufferedImage b)
b
- Imagen.public void invalidate()
public void print(java.awt.Graphics2D g) throws DriverException
g
- Graphics2D
DriverException
public FMap createNewFMap(ViewPort vp)
vp
- ViewPort.
public FMap cloneFMap() throws XMLException
XMLException
public void addToTrackLayer(FLayer vectorial)
vectorial
- FLayer.public long getScaleView()
public void setVectorial(VectorialAdapter v)
com.iver.cit.gvsig.fmap.operations.strategies.Strategy#setVectorial(com.iver.cit.gvsig.fmap.VectorialAdapter)
public void process(FeatureVisitor visitor)
com.iver.cit.gvsig.fmap.operations.strategies.Strategy#process(com.iver.cit.gvsig.fmap.FeatureSelectorVisitor)
public void processSelected(FeatureVisitor visitor)
com.iver.cit.gvsig.fmap.operations.strategies.Strategy#processSelected(com.iver.cit.gvsig.fmap.FeatureVisitor)
public void select(FeatureVisitor visitor)
com.iver.cit.gvsig.fmap.operations.strategies.Strategy#select(com.iver.cit.gvsig.fmap.FeatureSelectorVisitor,
VectorialSubSet)
public void selectFromSelection()
com.iver.cit.gvsig.fmap.operations.strategies.Strategy#selectFromSelection()
public void createIndex()
Strategy.createIndex()
public IProjection getProjection()
org.cresques.geo.Projected#getProjection()
public void setProjection(IProjection proj)
proj
- Proyección.public void reProject(ICoordTrans arg0)
org.cresques.geo.Projected#reProject(org.cresques.cts.ICoordTrans)
public void selectByPoint(java.awt.geom.Point2D p, double tolerance) throws DriverException
DriverException
com.iver.cit.gvsig.fmap.operations.strategies.Strategy#selectByPoint(java.awt.geom.Point2D,
double)
public void selectByRect(java.awt.geom.Rectangle2D rect) throws DriverException
DriverException
com.iver.cit.gvsig.fmap.operations.strategies.Strategy#selectByRect(java.awt.geom.Rectangle2D)
public void selectByShape(IGeometry g, int relationship)
com.iver.cit.gvsig.fmap.operations.strategies.Strategy#selectByShape(com.iver.cit.gvsig.fmap.fshape.IGeometry,
int)
public Record[] queryByPoint(java.awt.geom.Point2D p, double tolerance)
Strategy.queryByPoint(Point2D,
double)
public Record[] queryByRect(java.awt.geom.Rectangle2D rect)
Strategy.queryByRect(java.awt.geom.Rectangle2D)
public Record[] queryByShape(IGeometry g, int relationship)
com.iver.cit.gvsig.fmap.operations.strategies.Strategy#queryByShape(com.iver.cit.gvsig.fmap.fshape.IGeometry,
int)
public java.awt.geom.Rectangle2D getSelectionBounds()
Strategy.getSelectionBounds()
public void draw(java.awt.image.BufferedImage image, java.awt.Graphics2D g, Cancellable cancel) throws DriverException
DriverException
com.iver.cit.gvsig.fmap.operations.LayerOperations#draw(java.awt.image.BufferedImage,
java.awt.Graphics2D, FStyle2D)
public void draw(java.awt.image.BufferedImage image, java.awt.Graphics2D g) throws DriverException
DriverException
com.iver.cit.gvsig.fmap.operations.LayerOperations#draw(java.awt.image.BufferedImage,
java.awt.Graphics2D, FStyle2D)
public ViewPort getViewPort()
public void setViewPort(ViewPort viewPort)
viewPort
- The viewPort to set.public java.awt.geom.Rectangle2D getFullExtent() throws DriverException
DriverException
public XMLEntity getXMLEntity()
public static FMap createFromXML(XMLEntity xml) throws XMLException
xml
- XMLEntity
XMLException
public boolean addAtomicEventListener(AtomicEventListener listener)
listener
- AtomicEventListener.
public boolean removeAtomicEventListener(AtomicEventListener listener)
listener
- AtomicEventListener a borrar.
public void beginAtomicEvent()
public void endAtomicEvent()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |