Package org.gvsig.app.project
Class ProjectPreferences
java.lang.Object
org.gvsig.app.imp.DefaultPreferencesNode
org.gvsig.app.project.ProjectPreferences
- All Implemented Interfaces:
PreferencesNode
Clase que representa las preferencias para el proyecto
- Author:
- 2009- Joaquin del Cerro
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanintReturns the user's default view units for measuring areas.intReturns the user's default view units for measuring distances.intReturns the user's default map units.org.gvsig.crs.projection.lib.ProjectionReturns the current default selection color defined which is the color defined when the user does not define any other onebooleanintbooleanbooleandoubledoublevoidsetAddNewLayersInInvisibleMode(boolean addNewLayersInInvisibleMode) voidsetDefaultDistanceArea(int distanceArea) Sets the default distance area (the units shown in the status bar)voidsetDefaultDistanceUnits(int distanceUnits) Sets the default distance units (the units shown in the status bar)voidsetDefaultMapUnits(int mapUnits) Sets the default map unit (the units used by the data).voidsetDefaultOverviewBackColor(Color color) voidsetDefaultProjection(String defaultProjection) voidsetDefaultProjection(org.gvsig.crs.projection.lib.Projection defaultProjection) Sets the projection used when no projection is definedvoidsetDefaultSelectionColor(Color color) Sets the default selection color that will be used in subsequent projects.voidsetDefaultViewBackColor(Color color) voidsetHideLegendInToCOfNonVisibleLayers(boolean hideLegendInToCOfNonVisibleLayers) voidsetKeepScaleOnResizing(boolean keepScaleOnResizing) voidsetOpenWithANewMaximizedView(boolean openWithANewMaximizedView) voidsetZoomInFactor(double zoomInFactor) voidsetZoomOutFactor(double zoomOutFactor) Methods inherited from class org.gvsig.app.imp.DefaultPreferencesNode
clear, flush, get, getBoolean, getByteArray, getColor, getDouble, getFloat, getLong, getNode, getRootNode, keys, name, put, putBoolean, putByteArray, putDouble, putFloat, putInt, putLong, remove, sync
-
Field Details
-
DEFAULT_PROJECTION_KEY_NAME
- See Also:
-
-
Constructor Details
-
ProjectPreferences
public ProjectPreferences()
-
-
Method Details
-
setDefaultProjection
public void setDefaultProjection(org.gvsig.crs.projection.lib.Projection defaultProjection) Sets the projection used when no projection is defined- Parameters:
defaultProjection-
-
setDefaultProjection
-
getDefaultProjection
public org.gvsig.crs.projection.lib.Projection getDefaultProjection() -
getInt
- Specified by:
getIntin interfacePreferencesNode- Overrides:
getIntin classDefaultPreferencesNode
-
setDefaultSelectionColor
Sets the default selection color that will be used in subsequent projects.- Parameters:
color-
-
getDefaultSelectionColor
Returns the current default selection color defined which is the color defined when the user does not define any other one- Returns:
- java.awt.Color
-
getDefaultViewBackColor
-
setDefaultViewBackColor
-
getDefaultOverviewBackColor
-
setDefaultOverviewBackColor
-
getDefaultMapUnits
public int getDefaultMapUnits()Returns the user's default map units. This is the cartography data distance units.- Returns:
- int (index of the Attributes.NAMES array)
-
getDefaultDistanceUnits
public int getDefaultDistanceUnits()Returns the user's default view units for measuring distances. This is the units that the user will see in the status bar of the view.- Returns:
- int (index of the Attributes.NAMES array)
-
getDefaultDistanceArea
public int getDefaultDistanceArea()Returns the user's default view units for measuring areas. This is the units that the user will see in the status bar of the view.- Returns:
- int (index of the Attributes.NAMES array)
-
setDefaultMapUnits
public void setDefaultMapUnits(int mapUnits) Sets the default map unit (the units used by the data).- Parameters:
mapUnits-
-
setDefaultDistanceUnits
public void setDefaultDistanceUnits(int distanceUnits) Sets the default distance units (the units shown in the status bar)- Parameters:
distanceUnits-
-
setDefaultDistanceArea
public void setDefaultDistanceArea(int distanceArea) Sets the default distance area (the units shown in the status bar)- Parameters:
distanceArea-
-
getAddNewLayersInInvisibleMode
public boolean getAddNewLayersInInvisibleMode() -
setAddNewLayersInInvisibleMode
public void setAddNewLayersInInvisibleMode(boolean addNewLayersInInvisibleMode) -
getOpenWithANewMaximizedView
public boolean getOpenWithANewMaximizedView() -
setOpenWithANewMaximizedView
public void setOpenWithANewMaximizedView(boolean openWithANewMaximizedView) -
getKeepScaleOnResizing
public boolean getKeepScaleOnResizing() -
setKeepScaleOnResizing
public void setKeepScaleOnResizing(boolean keepScaleOnResizing) -
getZoomInFactor
public double getZoomInFactor() -
setZoomInFactor
public void setZoomInFactor(double zoomInFactor) -
getZoomOutFactor
public double getZoomOutFactor() -
setZoomOutFactor
public void setZoomOutFactor(double zoomOutFactor) -
getHideLegendInToCOfNonVisibleLayers
public boolean getHideLegendInToCOfNonVisibleLayers() -
setHideLegendInToCOfNonVisibleLayers
public void setHideLegendInToCOfNonVisibleLayers(boolean hideLegendInToCOfNonVisibleLayers)
-