public class ProjectPreferences extends DefaultPreferencesNode
Modifier and Type | Field and Description |
---|---|
static String |
DEFAULT_PROJECTION_KEY_NAME |
Constructor and Description |
---|
ProjectPreferences() |
Modifier and Type | Method and Description |
---|---|
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.
|
Color |
getDefaultOverviewBackColor() |
IProjection |
getDefaultProjection() |
Color |
getDefaultSelectionColor()
Returns the current default selection color defined which is the color
defined when the user does not define any other one
|
Color |
getDefaultViewBackColor() |
int |
getInt(String name,
int defaultValue) |
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(Color color) |
void |
setDefaultProjection(IProjection defaultProjection)
Sets the projection used when no projection is defined
|
void |
setDefaultProjection(String defaultProjection) |
void |
setDefaultSelectionColor(Color color)
Sets the default selection color that will be used in subsequent
projects.
|
void |
setDefaultViewBackColor(Color color) |
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 String DEFAULT_PROJECTION_KEY_NAME
public void setDefaultProjection(IProjection defaultProjection)
defaultProjection
- public void setDefaultProjection(String defaultProjection)
public IProjection getDefaultProjection()
public int getInt(String name, int defaultValue)
getInt
in interface PreferencesNode
getInt
in class DefaultPreferencesNode
public void setDefaultSelectionColor(Color color)
color
- public Color getDefaultSelectionColor()
public Color getDefaultViewBackColor()
public void setDefaultViewBackColor(Color color)
public Color getDefaultOverviewBackColor()
public void setDefaultOverviewBackColor(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)
distanceUnits
-