public class ProjectPreferences extends DefaultPreferencesNode
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
DEFAULT_PROJECTION_KEY_NAME |
Constructor and Description |
---|
ProjectPreferences() |
Modifier and Type | Method and Description |
---|---|
boolean |
getAddNewLayersInInvisibleMode() |
int |
getDefaultDistanceArea()
Returns the user's default view units for measuring areas.
|
int |
getDefaultDistanceUnits()
Returns the user's default view units for measuring distances.
|
int |
getDefaultMapUnits()
Returns the user's default map units.
|
java.awt.Color |
getDefaultOverviewBackColor() |
IProjection |
getDefaultProjection() |
java.awt.Color |
getDefaultSelectionColor()
Returns the current default selection color defined which is the color
defined when the user does not define any other one
|
java.awt.Color |
getDefaultViewBackColor() |
boolean |
getHideLegendInToCOfNonVisibleLayers() |
int |
getInt(java.lang.String name,
int defaultValue) |
boolean |
getKeepScaleOnResizing() |
boolean |
getOpenWithANewMaximizedView() |
double |
getZoomInFactor() |
double |
getZoomOutFactor() |
void |
setAddNewLayersInInvisibleMode(boolean addNewLayersInInvisibleMode) |
void |
setDefaultDistanceArea(int distanceArea)
Sets the default distance area (the units shown in the status bar)
|
void |
setDefaultDistanceUnits(int distanceUnits)
Sets the default distance units (the units shown in the status bar)
|
void |
setDefaultMapUnits(int mapUnits)
Sets the default map unit (the units used by the data).
|
void |
setDefaultOverviewBackColor(java.awt.Color color) |
void |
setDefaultProjection(IProjection defaultProjection)
Sets the projection used when no projection is defined
|
void |
setDefaultProjection(java.lang.String defaultProjection) |
void |
setDefaultSelectionColor(java.awt.Color color)
Sets the default selection color that will be used in subsequent
projects.
|
void |
setDefaultViewBackColor(java.awt.Color color) |
void |
setHideLegendInToCOfNonVisibleLayers(boolean hideLegendInToCOfNonVisibleLayers) |
void |
setKeepScaleOnResizing(boolean keepScaleOnResizing) |
void |
setOpenWithANewMaximizedView(boolean openWithANewMaximizedView) |
void |
setZoomInFactor(double zoomInFactor) |
void |
setZoomOutFactor(double zoomOutFactor) |
clear, flush, get, getBoolean, getByteArray, getColor, getDouble, getFloat, getLong, getNode, getRootNode, keys, name, put, putBoolean, putByteArray, putDouble, putFloat, putInt, putLong, remove, sync
public static final java.lang.String DEFAULT_PROJECTION_KEY_NAME
public void setDefaultProjection(IProjection defaultProjection)
defaultProjection
- public void setDefaultProjection(java.lang.String defaultProjection)
public IProjection getDefaultProjection()
public int getInt(java.lang.String name, int defaultValue)
getInt
in interface PreferencesNode
getInt
in class DefaultPreferencesNode
public void setDefaultSelectionColor(java.awt.Color color)
color
- public java.awt.Color getDefaultSelectionColor()
public java.awt.Color getDefaultViewBackColor()
public void setDefaultViewBackColor(java.awt.Color color)
public java.awt.Color getDefaultOverviewBackColor()
public void setDefaultOverviewBackColor(java.awt.Color color)
public int getDefaultMapUnits()
public int getDefaultDistanceUnits()
public int getDefaultDistanceArea()
public void setDefaultMapUnits(int mapUnits)
mapUnits
- public void setDefaultDistanceUnits(int distanceUnits)
distanceUnits
- public void setDefaultDistanceArea(int distanceArea)
distanceArea
- public boolean getAddNewLayersInInvisibleMode()
public void setAddNewLayersInInvisibleMode(boolean addNewLayersInInvisibleMode)
public boolean getOpenWithANewMaximizedView()
public void setOpenWithANewMaximizedView(boolean openWithANewMaximizedView)
public boolean getKeepScaleOnResizing()
public void setKeepScaleOnResizing(boolean keepScaleOnResizing)
public double getZoomInFactor()
public void setZoomInFactor(double zoomInFactor)
public double getZoomOutFactor()
public void setZoomOutFactor(double zoomOutFactor)
public boolean getHideLegendInToCOfNonVisibleLayers()
public void setHideLegendInToCOfNonVisibleLayers(boolean hideLegendInToCOfNonVisibleLayers)