 |
Gridarta Editor
|
Go to the documentation of this file.
20 package net.sf.gridarta.model.mapviewsettings;
22 import java.util.prefs.Preferences;
24 import org.jetbrains.annotations.NotNull;
50 private static final String
SMOOTHING_KEY =
"mapViewSettings.smoothing";
74 private static final String
AUTOJOIN_KEY =
"mapViewSettings.autojoin";
void saveAutojoin(final boolean autojoin)
Saves the autojoin value.
static final String LIGHT_VISIBLE_KEY
Key for saving isLightVisible() state in preferences.
boolean loadAutojoin()
Loads the default value for autojoin.
boolean lightVisible
The visibility of the light.
void saveAlphaType(final int alphaType)
Saves the alphaType value.
boolean loadTileStretching()
Loads the default value for tileStretching.
void saveSmoothing(final boolean smoothing)
Saves the smoothing value.
Base package of all Gridarta classes.
boolean tileStretching
Whether tile-stretching display is active.
boolean smoothing
Whether smoothing display is active.
void saveGridVisible(final boolean gridVisible)
Saves the gridVisible value.
static final String SMOOTHING_KEY
Key for saving isSmoothing() state in preferences.
static final String AUTOJOIN_KEY
Key for saving isAutojoin() state in preferences.
boolean gridVisible
The visibility of the grid.
void saveTileStretching(final boolean tileStretching)
Saves the tileStretching value.
Abstract base class for MapViewSettings implementations.
boolean loadSmoothing()
Loads the default value for smoothing.
int loadEditType()
Loads the default value for editType.
boolean doubleFaces
Whether double faces should be drawn double height.
void saveDoubleFaces(final boolean doubleFaces)
Saves the doubleFaces value.
int loadAlphaType()
Loads the default value for alphaType.
static final String ALPHA_TYPE_KEY
Key for saving isAlphaType(int) state in preferences.
Default MapViewSettings implementation.
void saveLightVisible(final boolean lightVisible)
Saves the lightVisible value.
static final String GRID_VISIBLE_KEY
Key for saving isGridVisible() state in preferences.
static final String TILE_STRETCHING_KEY
Key for saving isTileStretching() state in preferences.
int alphaType
Bit field of edit types to show transparent.
boolean loadGridVisible()
Loads the default value for gridVisible.
boolean autojoin
Whether autojoining is on/off.
static final String DOUBLE_FACES_KEY
Key for saving isDoubleFaces() state in preferences.
boolean loadLightVisible()
Loads the default value for lightVisible.
static final Preferences PREFERENCES
Preferences.
boolean loadDoubleFaces()
Loads the default value for doubleFaces.
Interface used as preferences location.