|
Gridarta Editor
|
Default MapViewSettings implementation. More...
Inheritance diagram for net.sf.gridarta.model.mapviewsettings.DefaultMapViewSettings:
Collaboration diagram for net.sf.gridarta.model.mapviewsettings.DefaultMapViewSettings:Protected Member Functions | |
| int | loadAlphaType () |
| boolean | loadAutojoin () |
| boolean | loadDoubleFaces () |
| int | loadEditType () |
| boolean | loadGridVisible () |
| boolean | loadLightVisible () |
| boolean | loadSmoothing () |
| boolean | loadTileStretching () |
| void | saveAlphaType (final int alphaType) |
| void | saveAutojoin (final boolean autojoin) |
| void | saveDoubleFaces (final boolean doubleFaces) |
| void | saveGridVisible (final boolean gridVisible) |
| void | saveLightVisible (final boolean lightVisible) |
| void | saveSmoothing (final boolean smoothing) |
| void | saveTileStretching (final boolean tileStretching) |
Protected Member Functions inherited from net.sf.gridarta.model.mapviewsettings.AbstractMapViewSettings | |
| abstract int | loadAlphaType () |
| Loads the default value for alphaType. More... | |
| abstract boolean | loadAutojoin () |
| Loads the default value for autojoin. More... | |
| abstract boolean | loadDoubleFaces () |
| Loads the default value for doubleFaces. More... | |
| abstract int | loadEditType () |
| Loads the default value for editType. More... | |
| abstract boolean | loadGridVisible () |
| Loads the default value for gridVisible. More... | |
| abstract boolean | loadLightVisible () |
| Loads the default value for lightVisible. More... | |
| abstract boolean | loadSmoothing () |
| Loads the default value for smoothing. More... | |
| abstract boolean | loadTileStretching () |
| Loads the default value for tileStretching. More... | |
| abstract void | saveAlphaType (int alphaType) |
| Saves the alphaType value. More... | |
| abstract void | saveAutojoin (boolean autojoin) |
| Saves the autojoin value. More... | |
| abstract void | saveDoubleFaces (boolean doubleFaces) |
| Saves the doubleFaces value. More... | |
| abstract void | saveGridVisible (boolean gridVisible) |
| Saves the gridVisible value. More... | |
| abstract void | saveLightVisible (boolean lightVisible) |
| Saves the lightVisible value. More... | |
| abstract void | saveSmoothing (boolean smoothing) |
| Saves the smoothing value. More... | |
| abstract void | saveTileStretching (boolean tileStretching) |
| Saves the tileStretching value. More... | |
Static Private Attributes | |
| static final String | ALPHA_TYPE_KEY = "mapViewSettings.alphaType" |
| Key for saving alphaType state in preferences. More... | |
| static final String | AUTOJOIN_KEY = "mapViewSettings.autojoin" |
| Key for saving autojoin state in preferences. More... | |
| static final String | DOUBLE_FACES_KEY = "mapViewSettings.doubleFaces" |
| Key for saving doubleFaces state in preferences. More... | |
| static final String | GRID_VISIBLE_KEY = "mapViewSettings.gridVisible" |
| Key for saving gridVisible state in preferences. More... | |
| static final String | LIGHT_VISIBLE_KEY = "mapViewSettings.lightVisible" |
| Key for saving lightVisible state in preferences. More... | |
| static final Preferences | PREFERENCES = Preferences.userNodeForPackage(MainControl.class) |
| Preferences. More... | |
| static final String | SMOOTHING_KEY = "mapViewSettings.smoothing" |
| Key for saving smoothing state in preferences. More... | |
| static final String | TILE_STRETCHING_KEY = "mapViewSettings.tileStretching" |
| Key for saving tileStretching state in preferences. More... | |
Additional Inherited Members | |
Public Member Functions inherited from net.sf.gridarta.model.mapviewsettings.AbstractMapViewSettings | |
| void | addMapViewSettingsListener (@NotNull final MapViewSettingsListener listener) |
| Register a MapViewSettingsListener. More... | |
| void | clearAlpha () |
| Clear the transparency. More... | |
| int | getEditType () |
| Returns the currently set edit type. More... | |
| boolean | isAlphaType (final int v) |
| Returns whether the specified edit type is to be shown transparent. More... | |
| boolean | isAutojoin () |
| Returns whether "autojoin" is enabled. More... | |
| boolean | isDoubleFaces () |
| Get whether double faces are drawn double height. More... | |
| boolean | isEditType (final int editType) |
| Get information on the current state of edit type. More... | |
| boolean | isEditType (@NotNull final BaseObject<?, ?, ?, ?> gameObject) |
| Get information whether the gameObject is edited. More... | |
| boolean | isEditTypeSet () |
| Returns whether a editType value is set so that not all squares are displayed. More... | |
| boolean | isGridVisible () |
| Get the visibility of the grid. More... | |
| boolean | isLightVisible () |
| Get the visibility of the light. More... | |
| boolean | isSmoothing () |
| Returns the smoothing setting. More... | |
| boolean | isTileStretching () |
| Returns the tile-stretching setting. More... | |
| void | removeMapViewSettingsListener (@NotNull final MapViewSettingsListener listener) |
| Unregister a MapViewSettingsListener. More... | |
| void | setAlphaType (final int v, final boolean state) |
| Sets whether the specified edit type is to be shown transparent. More... | |
| void | setAutojoin (final boolean autojoin) |
| Sets the "autojoin" state. More... | |
| void | setDoubleFaces (final boolean doubleFaces) |
| Sets whether double faces should be drawn double height. More... | |
| void | setGridVisible (final boolean gridVisible) |
| Set the visibility of the grid. More... | |
| void | setLightVisible (final boolean lightVisible) |
| Set the visibility of the light. More... | |
| void | setSmoothing (final boolean smoothing) |
| Sets the smoothing setting. More... | |
| void | setTileStretching (final boolean tileStretching) |
| Sets the tile-stretching setting. More... | |
| void | toggleEditType (final int editType) |
| Toggle an edit type. More... | |
| void | unsetEditType (final int editType) |
| Set the map view to hide squares of the given type. More... | |
Default MapViewSettings implementation.
Attributes are retained across editor restarts. The attributes are stored in the Preferences.
Definition at line 32 of file DefaultMapViewSettings.java.
|
protected |
Definition at line 133 of file DefaultMapViewSettings.java.
|
protected |
Definition at line 148 of file DefaultMapViewSettings.java.
|
protected |
Definition at line 123 of file DefaultMapViewSettings.java.
|
protected |
Definition at line 143 of file DefaultMapViewSettings.java.
|
protected |
Definition at line 83 of file DefaultMapViewSettings.java.
|
protected |
Definition at line 93 of file DefaultMapViewSettings.java.
|
protected |
Definition at line 103 of file DefaultMapViewSettings.java.
|
protected |
Definition at line 113 of file DefaultMapViewSettings.java.
|
protected |
Definition at line 138 of file DefaultMapViewSettings.java.
|
protected |
Definition at line 153 of file DefaultMapViewSettings.java.
|
protected |
Definition at line 128 of file DefaultMapViewSettings.java.
|
protected |
Definition at line 88 of file DefaultMapViewSettings.java.
|
protected |
Definition at line 98 of file DefaultMapViewSettings.java.
|
protected |
Definition at line 108 of file DefaultMapViewSettings.java.
|
protected |
Definition at line 118 of file DefaultMapViewSettings.java.
|
staticprivate |
Key for saving alphaType state in preferences.
Definition at line 68 of file DefaultMapViewSettings.java.
|
staticprivate |
Key for saving autojoin state in preferences.
Definition at line 74 of file DefaultMapViewSettings.java.
|
staticprivate |
Key for saving doubleFaces state in preferences.
Definition at line 62 of file DefaultMapViewSettings.java.
|
staticprivate |
Key for saving gridVisible state in preferences.
Definition at line 38 of file DefaultMapViewSettings.java.
|
staticprivate |
Key for saving lightVisible state in preferences.
Definition at line 44 of file DefaultMapViewSettings.java.
|
staticprivate |
Preferences.
Definition at line 80 of file DefaultMapViewSettings.java.
|
staticprivate |
Key for saving smoothing state in preferences.
Definition at line 50 of file DefaultMapViewSettings.java.
|
staticprivate |
Key for saving tileStretching state in preferences.
Definition at line 56 of file DefaultMapViewSettings.java.