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() |
org.cresques.cts.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(org.cresques.cts.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, syncpublic static final java.lang.String DEFAULT_PROJECTION_KEY_NAME
public boolean getAddNewLayersInInvisibleMode()
public int getDefaultDistanceArea()
public int getDefaultDistanceUnits()
public int getDefaultMapUnits()
public java.awt.Color getDefaultOverviewBackColor()
public org.cresques.cts.IProjection getDefaultProjection()
public java.awt.Color getDefaultSelectionColor()
public java.awt.Color getDefaultViewBackColor()
public boolean getHideLegendInToCOfNonVisibleLayers()
public int getInt(java.lang.String name,
int defaultValue)
getInt in interface PreferencesNodegetInt in class DefaultPreferencesNodepublic boolean getKeepScaleOnResizing()
public boolean getOpenWithANewMaximizedView()
public double getZoomInFactor()
public double getZoomOutFactor()
public void setAddNewLayersInInvisibleMode(boolean addNewLayersInInvisibleMode)
public void setDefaultDistanceArea(int distanceArea)
distanceArea - public void setDefaultDistanceUnits(int distanceUnits)
distanceUnits - public void setDefaultMapUnits(int mapUnits)
mapUnits - public void setDefaultOverviewBackColor(java.awt.Color color)
public void setDefaultProjection(org.cresques.cts.IProjection defaultProjection)
defaultProjection - public void setDefaultProjection(java.lang.String defaultProjection)
public void setDefaultSelectionColor(java.awt.Color color)
color - public void setDefaultViewBackColor(java.awt.Color color)
public void setHideLegendInToCOfNonVisibleLayers(boolean hideLegendInToCOfNonVisibleLayers)
public void setKeepScaleOnResizing(boolean keepScaleOnResizing)
public void setOpenWithANewMaximizedView(boolean openWithANewMaximizedView)
public void setZoomInFactor(double zoomInFactor)
public void setZoomOutFactor(double zoomOutFactor)
Copyright © 2026 gvSIG Association. All rights reserved.