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";
84 return PREFERENCES.getBoolean(GRID_VISIBLE_KEY,
false);
89 PREFERENCES.putBoolean(GRID_VISIBLE_KEY, gridVisible);
94 return PREFERENCES.getBoolean(LIGHT_VISIBLE_KEY,
false);
99 PREFERENCES.putBoolean(LIGHT_VISIBLE_KEY, lightVisible);
104 return PREFERENCES.getBoolean(SMOOTHING_KEY,
false);
109 PREFERENCES.putBoolean(SMOOTHING_KEY, smoothing);
114 return PREFERENCES.getBoolean(TILE_STRETCHING_KEY,
false);
119 PREFERENCES.putBoolean(TILE_STRETCHING_KEY, tileStretching);
124 return PREFERENCES.getBoolean(DOUBLE_FACES_KEY,
false);
129 PREFERENCES.putBoolean(DOUBLE_FACES_KEY, doubleFaces);
134 return PREFERENCES.getInt(ALPHA_TYPE_KEY, 0);
139 PREFERENCES.putInt(ALPHA_TYPE_KEY, alphaType);
149 return PREFERENCES.getBoolean(AUTOJOIN_KEY,
false);
154 PREFERENCES.putBoolean(AUTOJOIN_KEY, autojoin);
void saveTileStretching(final boolean tileStretching)
static final Preferences PREFERENCES
Preferences.
void saveDoubleFaces(final boolean doubleFaces)
static final String ALPHA_TYPE_KEY
Key for saving alphaType state in preferences.
void saveAlphaType(final int alphaType)
void saveSmoothing(final boolean smoothing)
static final String GRID_VISIBLE_KEY
Key for saving gridVisible state in preferences.
static final String AUTOJOIN_KEY
Key for saving autojoin state in preferences.
Abstract base class for MapViewSettings implementations.
static final String TILE_STRETCHING_KEY
Key for saving tileStretching state in preferences.
Default MapViewSettings implementation.
boolean doubleFaces
Whether double faces should be drawn double height.
Base package of all Gridarta classes.
boolean loadGridVisible()
boolean tileStretching
Whether tile-stretching display is active.
static final String LIGHT_VISIBLE_KEY
Key for saving lightVisible state in preferences.
static final String DOUBLE_FACES_KEY
Key for saving doubleFaces state in preferences.
static final String SMOOTHING_KEY
Key for saving smoothing state in preferences.
boolean loadLightVisible()
Interface used as preferences location.
void saveGridVisible(final boolean gridVisible)
boolean loadTileStretching()
int alphaType
Bit field of edit types to show transparent.
void saveAutojoin(final boolean autojoin)
boolean autojoin
Whether autojoining is on/off.
boolean gridVisible
The visibility of the grid.
boolean smoothing
Whether smoothing display is active.
void saveLightVisible(final boolean lightVisible)
boolean lightVisible
The visibility of the light.
boolean loadDoubleFaces()