Class DefaultMapViewSettings
- java.lang.Object
-
- net.sf.gridarta.model.mapviewsettings.AbstractMapViewSettings
-
- net.sf.gridarta.model.mapviewsettings.DefaultMapViewSettings
-
- All Implemented Interfaces:
MapViewSettings
public class DefaultMapViewSettings extends AbstractMapViewSettings
DefaultMapViewSettingsimplementation. Attributes are retained across editor restarts. The attributes are stored in thePreferences.
-
-
Constructor Summary
Constructors Constructor Description DefaultMapViewSettings()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected intloadAlphaType()Loads the default value forAbstractMapViewSettings.alphaType.protected booleanloadAutojoin()Loads the default value forAbstractMapViewSettings.autojoin.protected booleanloadDoubleFaces()Loads the default value forAbstractMapViewSettings.doubleFaces.protected intloadEditType()Loads the default value forAbstractMapViewSettings.editType.protected booleanloadGridVisible()Loads the default value forAbstractMapViewSettings.gridVisible.protected booleanloadLightVisible()Loads the default value forAbstractMapViewSettings.lightVisible.protected booleanloadSmoothing()Loads the default value forAbstractMapViewSettings.smoothing.protected booleanloadTileStretching()Loads the default value forAbstractMapViewSettings.tileStretching.protected voidsaveAlphaType(int alphaType)Saves theAbstractMapViewSettings.alphaTypevalue.protected voidsaveAutojoin(boolean autojoin)Saves the autojoin value.protected voidsaveDoubleFaces(boolean doubleFaces)Saves theAbstractMapViewSettings.doubleFacesvalue.protected voidsaveGridVisible(boolean gridVisible)Saves theAbstractMapViewSettings.gridVisiblevalue.protected voidsaveLightVisible(boolean lightVisible)Saves theAbstractMapViewSettings.lightVisiblevalue.protected voidsaveSmoothing(boolean smoothing)Saves theAbstractMapViewSettings.smoothingvalue.protected voidsaveTileStretching(boolean tileStretching)Saves theAbstractMapViewSettings.tileStretchingvalue.-
Methods inherited from class net.sf.gridarta.model.mapviewsettings.AbstractMapViewSettings
addMapViewSettingsListener, clearAlpha, getEditType, isAlphaType, isAutojoin, isDoubleFaces, isEditType, isEditType, isEditTypeSet, isGridVisible, isLightVisible, isSmoothing, isTileStretching, removeMapViewSettingsListener, setAlphaType, setAutojoin, setDoubleFaces, setGridVisible, setLightVisible, setSmoothing, setTileStretching, toggleEditType, unsetEditType
-
-
-
-
Method Detail
-
loadGridVisible
protected boolean loadGridVisible()
Description copied from class:AbstractMapViewSettingsLoads the default value forAbstractMapViewSettings.gridVisible.- Specified by:
loadGridVisiblein classAbstractMapViewSettings- Returns:
- the default value
-
saveGridVisible
protected void saveGridVisible(boolean gridVisible)
Description copied from class:AbstractMapViewSettingsSaves theAbstractMapViewSettings.gridVisiblevalue.- Specified by:
saveGridVisiblein classAbstractMapViewSettings- Parameters:
gridVisible- the grid visible value
-
loadLightVisible
protected boolean loadLightVisible()
Description copied from class:AbstractMapViewSettingsLoads the default value forAbstractMapViewSettings.lightVisible.- Specified by:
loadLightVisiblein classAbstractMapViewSettings- Returns:
- the default value
-
saveLightVisible
protected void saveLightVisible(boolean lightVisible)
Description copied from class:AbstractMapViewSettingsSaves theAbstractMapViewSettings.lightVisiblevalue.- Specified by:
saveLightVisiblein classAbstractMapViewSettings- Parameters:
lightVisible- the light visible value
-
loadSmoothing
protected boolean loadSmoothing()
Description copied from class:AbstractMapViewSettingsLoads the default value forAbstractMapViewSettings.smoothing.- Specified by:
loadSmoothingin classAbstractMapViewSettings- Returns:
- the default value
-
saveSmoothing
protected void saveSmoothing(boolean smoothing)
Description copied from class:AbstractMapViewSettingsSaves theAbstractMapViewSettings.smoothingvalue.- Specified by:
saveSmoothingin classAbstractMapViewSettings- Parameters:
smoothing- the smoothing value
-
loadTileStretching
protected boolean loadTileStretching()
Description copied from class:AbstractMapViewSettingsLoads the default value forAbstractMapViewSettings.tileStretching.- Specified by:
loadTileStretchingin classAbstractMapViewSettings- Returns:
- the default value
-
saveTileStretching
protected void saveTileStretching(boolean tileStretching)
Description copied from class:AbstractMapViewSettingsSaves theAbstractMapViewSettings.tileStretchingvalue.- Specified by:
saveTileStretchingin classAbstractMapViewSettings- Parameters:
tileStretching- the smoothing value
-
loadDoubleFaces
protected boolean loadDoubleFaces()
Description copied from class:AbstractMapViewSettingsLoads the default value forAbstractMapViewSettings.doubleFaces.- Specified by:
loadDoubleFacesin classAbstractMapViewSettings- Returns:
- the default value
-
saveDoubleFaces
protected void saveDoubleFaces(boolean doubleFaces)
Description copied from class:AbstractMapViewSettingsSaves theAbstractMapViewSettings.doubleFacesvalue.- Specified by:
saveDoubleFacesin classAbstractMapViewSettings- Parameters:
doubleFaces- the double faces value
-
loadAlphaType
protected int loadAlphaType()
Description copied from class:AbstractMapViewSettingsLoads the default value forAbstractMapViewSettings.alphaType.- Specified by:
loadAlphaTypein classAbstractMapViewSettings- Returns:
- the default value
-
saveAlphaType
protected void saveAlphaType(int alphaType)
Description copied from class:AbstractMapViewSettingsSaves theAbstractMapViewSettings.alphaTypevalue.- Specified by:
saveAlphaTypein classAbstractMapViewSettings- Parameters:
alphaType- the alpha type value
-
loadEditType
protected int loadEditType()
Description copied from class:AbstractMapViewSettingsLoads the default value forAbstractMapViewSettings.editType.- Specified by:
loadEditTypein classAbstractMapViewSettings- Returns:
- the default value
-
loadAutojoin
protected boolean loadAutojoin()
Description copied from class:AbstractMapViewSettingsLoads the default value forAbstractMapViewSettings.autojoin.- Specified by:
loadAutojoinin classAbstractMapViewSettings- Returns:
- the default value
-
saveAutojoin
protected void saveAutojoin(boolean autojoin)
Description copied from class:AbstractMapViewSettingsSaves the autojoin value.- Specified by:
saveAutojoinin classAbstractMapViewSettings- Parameters:
autojoin- the autojoin value
-
-