|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.deegree.services.wms.utils.MapController
public class MapController
| Constructor Summary | |
|---|---|
MapController(MapService service,
ICRS crs,
int width,
int height)
|
|
| Method Summary | |
|---|---|
void |
endPanning()
|
boolean |
finishZoomin(int x,
int y)
Zoom in into zoom rectangle. |
ICRS |
getCRS()
|
Envelope |
getCurrentEnvelope()
|
BufferedImage |
getCurrentImage()
|
double |
getCurrentScale()
|
FeatureCollection |
getFeatures(int radius,
int x,
int y)
|
Layer |
getQueryLayer()
|
boolean |
isRepainting()
|
boolean |
isResizing()
|
boolean |
needsRepaint()
|
void |
paintMap(Graphics2D g,
boolean preview)
|
void |
pan(int sourcex,
int sourcey,
int currentx,
int currenty)
|
void |
setEnvelope(int minx,
int miny,
int maxx,
int maxy)
parameters are in window coordinates |
void |
setLayers(List<? extends Layer> layers)
|
void |
setQueryLayer(Layer layer)
|
void |
setSize(int width,
int height)
|
void |
setZoomRectEnd(int x,
int y)
|
void |
setZoomRectStart(int minx,
int miny)
|
void |
startPanning(int x,
int y)
Start panning with x/y as center/start point. |
void |
startResize()
|
void |
stopResize()
|
void |
stopZoomin()
Throw away zoom rectangle. |
Pair<Double,Double> |
translate(int x,
int y)
|
void |
updatePanning(int x,
int y)
|
void |
zoom(double factor,
int centerx,
int centery)
|
void |
zoomToMaxExtent()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public MapController(MapService service,
ICRS crs,
int width,
int height)
service - crs - width - height - | Method Detail |
|---|
public boolean isResizing()
public BufferedImage getCurrentImage()
public ICRS getCRS()
public Layer getQueryLayer()
public boolean isRepainting()
public void paintMap(Graphics2D g,
boolean preview)
g - preview -
public FeatureCollection getFeatures(int radius,
int x,
int y)
radius - x - y -
public void setLayers(List<? extends Layer> layers)
layers - public void startResize()
public void stopResize()
public void setSize(int width,
int height)
width - height -
public void zoom(double factor,
int centerx,
int centery)
factor - if positive, zoom outcenterx - if negative, the center will remain unchangedcentery - if negative, the center will remain unchanged
public void startPanning(int x,
int y)
x - y -
public void updatePanning(int x,
int y)
x - y - public void endPanning()
public void setEnvelope(int minx,
int miny,
int maxx,
int maxy)
minx - miny - maxx - maxy - public Envelope getCurrentEnvelope()
public void pan(int sourcex,
int sourcey,
int currentx,
int currenty)
sourcex - sourcey - currentx - currenty - public boolean needsRepaint()
public Pair<Double,Double> translate(int x,
int y)
x - y -
public void zoomToMaxExtent()
public double getCurrentScale()
public void setQueryLayer(Layer layer)
layer -
public void setZoomRectStart(int minx,
int miny)
minx - miny -
public void setZoomRectEnd(int x,
int y)
x - y - public void stopZoomin()
public boolean finishZoomin(int x,
int y)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||