|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.partnersoft.maps.app.MapViewLogic
public class MapViewLogic
Nonvisual plumbing for controlling a MapView.
| Constructor Summary | |
|---|---|
MapViewLogic(MapApp app)
|
|
| Method Summary | |
|---|---|
void |
addViewListener(MapViewListener listener)
|
void |
clearRotation()
|
void |
discretePan(int countX,
int countY)
This is a base function for discrete panning. |
void |
discreteZoom(int count)
Base function for discrete zooming. |
void |
dragPan(double buttonDownX,
double buttonDownY,
int buttonDownPixelX,
int buttonDownPixelY,
int startX,
int startY,
int endX,
int endY)
|
void |
dragRotate(double buttonDownX,
double buttonDownY,
int buttonDownPixelX,
int buttonDownPixelY,
int startX,
int startY,
int endX,
int endY)
|
void |
dragStart()
This is important to keep the undo from being annoyingly fine-grained. |
void |
dragStop()
|
void |
dragZoom(double buttonDownX,
double buttonDownY,
int buttonDownPixelX,
int buttonDownPixelY,
int startX,
int startY,
int endX,
int endY)
|
void |
ensureVisible(double x,
double y)
Ensures that the given coordinate is visible. |
java.lang.String |
getLegend()
|
int |
getNearestZoomTo(double scale)
|
MapViewState |
getState()
|
void |
goHome()
|
void |
incrementalZoom(double locusX,
double locusY,
int locusPixelX,
int locusPixelY,
int amount)
Incremental zoom. |
void |
incrementalZoom(int amount)
|
protected void |
initialize()
Initializes the view from preferences. |
void |
pan(double deltaX,
double deltaY)
Panning by map coordinates. |
void |
panDown()
Convenience method for discrete panning down. |
void |
panDownLeft()
Down and left. |
void |
panDownRight()
Down and right. |
void |
panLeft()
Convenience method for discrete panning left. |
void |
panRight()
Convenience method for discrete panning right. |
void |
panUp()
Convenience method for discrete panning up. |
void |
panUpLeft()
Up and left. |
void |
panUpRight()
Up and right. |
void |
pixelCenterOn(int pixelX,
int pixelY)
Centers on a given pixel. |
void |
pixelPan(int startPixelX,
int startPixelY,
int endPixelX,
int endPixelY)
Panning by pixel. |
void |
pixelRotate(int startX,
int startY,
int endX,
int endY)
|
void |
pixelZoom(int pixelsRight,
int pixelsDown)
Zooming by pixel. |
void |
removeViewListener(MapViewListener listener)
|
void |
rotate(double theta)
Rotate a bit. |
void |
setCenter(double x,
double y)
Sets the center of the map view. |
void |
setCoordinateDisplay(double x,
double y)
Sets the coordinate display and grid display fields. |
void |
setEverything(double centerX,
double centerY,
double scale,
double rotation,
int baselineMillis)
Sets everything. |
void |
setEverything(java.lang.String legendName,
double centerX,
double centerY,
double scale,
double rotation,
int baselineMillis)
Sets everything. |
void |
setGroupVisibility(java.lang.String mapsetName,
java.lang.String groupName,
boolean visible)
|
void |
setLegend(java.lang.String legendName)
Sets the current legend, by name. |
void |
setMeasureDisplay(double x,
double y)
|
void |
setMeasureDisplay(java.lang.String whatnot)
|
void |
setScale(double newScale)
Sets the scale to a specific amount. |
void |
setZoom(int newZoom)
Sets the current zoom (which also sets the scale). |
void |
sliderScale(double fraction)
Sets the scale expressed as a fraction from 0.0 to 1.0. |
void |
updateLegendList()
|
void |
zoom(double centerX,
double centerY)
Zooming by coordinates. |
void |
zoomIn()
Zoom in (increase detail). |
int |
zoomNearest(double scale)
|
void |
zoomOut()
Zoom out (decrease detail). |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public MapViewLogic(MapApp app)
| Method Detail |
|---|
protected void initialize()
public void setLegend(java.lang.String legendName)
public java.lang.String getLegend()
public void zoom(double centerX,
double centerY)
public void setZoom(int newZoom)
public void setCenter(double x,
double y)
public void ensureVisible(double x,
double y)
public void setEverything(double centerX,
double centerY,
double scale,
double rotation,
int baselineMillis)
public void setEverything(java.lang.String legendName,
double centerX,
double centerY,
double scale,
double rotation,
int baselineMillis)
public int zoomNearest(double scale)
public int getNearestZoomTo(double scale)
public void goHome()
public void setGroupVisibility(java.lang.String mapsetName,
java.lang.String groupName,
boolean visible)
public void pan(double deltaX,
double deltaY)
public void discreteZoom(int count)
public void discretePan(int countX,
int countY)
public void pixelPan(int startPixelX,
int startPixelY,
int endPixelX,
int endPixelY)
public void pixelZoom(int pixelsRight,
int pixelsDown)
public void pixelCenterOn(int pixelX,
int pixelY)
public void incrementalZoom(double locusX,
double locusY,
int locusPixelX,
int locusPixelY,
int amount)
public void incrementalZoom(int amount)
public void rotate(double theta)
public void pixelRotate(int startX,
int startY,
int endX,
int endY)
public void dragPan(double buttonDownX,
double buttonDownY,
int buttonDownPixelX,
int buttonDownPixelY,
int startX,
int startY,
int endX,
int endY)
public void dragRotate(double buttonDownX,
double buttonDownY,
int buttonDownPixelX,
int buttonDownPixelY,
int startX,
int startY,
int endX,
int endY)
public void dragZoom(double buttonDownX,
double buttonDownY,
int buttonDownPixelX,
int buttonDownPixelY,
int startX,
int startY,
int endX,
int endY)
public void clearRotation()
public void setScale(double newScale)
public void dragStart()
public void dragStop()
public void setCoordinateDisplay(double x,
double y)
public void setMeasureDisplay(double x,
double y)
public void setMeasureDisplay(java.lang.String whatnot)
public void panLeft()
public void panRight()
public void panUp()
public void panDown()
public void panUpLeft()
public void panDownLeft()
public void panUpRight()
public void panDownRight()
public void zoomIn()
public void zoomOut()
public void sliderScale(double fraction)
public void updateLegendList()
public MapViewState getState()
public void addViewListener(MapViewListener listener)
public void removeViewListener(MapViewListener listener)
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||