Class ProjectPreferences

java.lang.Object
org.gvsig.app.imp.DefaultPreferencesNode
org.gvsig.app.project.ProjectPreferences
All Implemented Interfaces:
PreferencesNode

public class ProjectPreferences extends DefaultPreferencesNode
Clase que representa las preferencias para el proyecto
Author:
2009- Joaquin del Cerro
  • Field Details

  • 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

      public void setDefaultProjection(String defaultProjection)
    • getDefaultProjection

      public org.gvsig.crs.projection.lib.Projection getDefaultProjection()
    • getInt

      public int getInt(String name, int defaultValue)
      Specified by:
      getInt in interface PreferencesNode
      Overrides:
      getInt in class DefaultPreferencesNode
    • setDefaultSelectionColor

      public void setDefaultSelectionColor(Color color)
      Sets the default selection color that will be used in subsequent projects.
      Parameters:
      color -
    • getDefaultSelectionColor

      public 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

      public Color getDefaultViewBackColor()
    • setDefaultViewBackColor

      public void setDefaultViewBackColor(Color color)
    • getDefaultOverviewBackColor

      public Color getDefaultOverviewBackColor()
    • setDefaultOverviewBackColor

      public void setDefaultOverviewBackColor(Color color)
    • 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)