public class ViewState
extends java.lang.Object
implements java.io.Serializable
Constructor and Description |
---|
ViewState() |
Modifier and Type | Method and Description |
---|---|
JMapUnit |
getDistanceUnit() |
OrientedRectangle |
getExtent() |
LayerManager |
getLayerManager()
Returns the layer manager instance that is related to view.
|
java.util.Locale |
getLocale() |
Projection |
getMapProjection() |
JMapUnit |
getMapUnit() |
Projection |
getMeasurementProjection() |
double |
getScale() |
java.awt.Dimension |
getSize() |
static ViewState |
getState(ViewRenderer viewRenderer)
Creates a new ViewState initialized with the specified ViewRenderer instance.
|
K2DTransform |
getTransform() |
double |
getZoomLevel() |
void |
setDistanceUnit(JMapUnit distanceUnit) |
void |
setExtent(OrientedRectangle extent) |
void |
setLayerManager(LayerManager layerMgr) |
void |
setLocale(java.util.Locale locale) |
void |
setMapProjection(Projection mapProjection) |
void |
setMapUnit(JMapUnit mapUnit) |
void |
setMeasurementProjection(Projection measurementProjection) |
void |
setScale(double scale) |
void |
setSize(java.awt.Dimension size) |
void |
setTransform(K2DTransform transform) |
void |
setZoomLevel(double zoomLevel) |
public static ViewState getState(ViewRenderer viewRenderer)
viewRenderer
- the source ViewRenderer instance.public LayerManager getLayerManager()
LayerManager
class is not serializable,
null can be returned if the ViewState instance is not returned directly by the view source.public void setLayerManager(LayerManager layerMgr)
public OrientedRectangle getExtent()
public void setExtent(OrientedRectangle extent)
public K2DTransform getTransform()
public void setTransform(K2DTransform transform)
public double getZoomLevel()
public void setZoomLevel(double zoomLevel)
public double getScale()
public void setScale(double scale)
public java.awt.Dimension getSize()
public void setSize(java.awt.Dimension size)
public JMapUnit getMapUnit()
public void setMapUnit(JMapUnit mapUnit)
public JMapUnit getDistanceUnit()
public void setDistanceUnit(JMapUnit distanceUnit)
public Projection getMapProjection()
public void setMapProjection(Projection mapProjection)
public Projection getMeasurementProjection()
public void setMeasurementProjection(Projection measurementProjection)
public java.util.Locale getLocale()
public void setLocale(java.util.Locale locale)