Gridarta Editor
net.sf.gridarta.model.mapviewsettings.DefaultMapViewSettings Class Reference

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...
 

Detailed Description

Default MapViewSettings implementation.

Attributes are retained across editor restarts. The attributes are stored in the Preferences.

Author
Andreas Kirschbaum

Definition at line 32 of file DefaultMapViewSettings.java.

Member Function Documentation

◆ loadAlphaType()

int net.sf.gridarta.model.mapviewsettings.DefaultMapViewSettings.loadAlphaType ( )
protected

Definition at line 133 of file DefaultMapViewSettings.java.

◆ loadAutojoin()

boolean net.sf.gridarta.model.mapviewsettings.DefaultMapViewSettings.loadAutojoin ( )
protected

Definition at line 148 of file DefaultMapViewSettings.java.

◆ loadDoubleFaces()

boolean net.sf.gridarta.model.mapviewsettings.DefaultMapViewSettings.loadDoubleFaces ( )
protected

Definition at line 123 of file DefaultMapViewSettings.java.

◆ loadEditType()

int net.sf.gridarta.model.mapviewsettings.DefaultMapViewSettings.loadEditType ( )
protected

Definition at line 143 of file DefaultMapViewSettings.java.

◆ loadGridVisible()

boolean net.sf.gridarta.model.mapviewsettings.DefaultMapViewSettings.loadGridVisible ( )
protected

Definition at line 83 of file DefaultMapViewSettings.java.

◆ loadLightVisible()

boolean net.sf.gridarta.model.mapviewsettings.DefaultMapViewSettings.loadLightVisible ( )
protected

Definition at line 93 of file DefaultMapViewSettings.java.

◆ loadSmoothing()

boolean net.sf.gridarta.model.mapviewsettings.DefaultMapViewSettings.loadSmoothing ( )
protected

Definition at line 103 of file DefaultMapViewSettings.java.

◆ loadTileStretching()

boolean net.sf.gridarta.model.mapviewsettings.DefaultMapViewSettings.loadTileStretching ( )
protected

Definition at line 113 of file DefaultMapViewSettings.java.

◆ saveAlphaType()

void net.sf.gridarta.model.mapviewsettings.DefaultMapViewSettings.saveAlphaType ( final int  alphaType)
protected

Definition at line 138 of file DefaultMapViewSettings.java.

◆ saveAutojoin()

void net.sf.gridarta.model.mapviewsettings.DefaultMapViewSettings.saveAutojoin ( final boolean  autojoin)
protected

Definition at line 153 of file DefaultMapViewSettings.java.

◆ saveDoubleFaces()

void net.sf.gridarta.model.mapviewsettings.DefaultMapViewSettings.saveDoubleFaces ( final boolean  doubleFaces)
protected

Definition at line 128 of file DefaultMapViewSettings.java.

◆ saveGridVisible()

void net.sf.gridarta.model.mapviewsettings.DefaultMapViewSettings.saveGridVisible ( final boolean  gridVisible)
protected

Definition at line 88 of file DefaultMapViewSettings.java.

◆ saveLightVisible()

void net.sf.gridarta.model.mapviewsettings.DefaultMapViewSettings.saveLightVisible ( final boolean  lightVisible)
protected

Definition at line 98 of file DefaultMapViewSettings.java.

◆ saveSmoothing()

void net.sf.gridarta.model.mapviewsettings.DefaultMapViewSettings.saveSmoothing ( final boolean  smoothing)
protected

Definition at line 108 of file DefaultMapViewSettings.java.

◆ saveTileStretching()

void net.sf.gridarta.model.mapviewsettings.DefaultMapViewSettings.saveTileStretching ( final boolean  tileStretching)
protected

Definition at line 118 of file DefaultMapViewSettings.java.

Member Data Documentation

◆ ALPHA_TYPE_KEY

final String net.sf.gridarta.model.mapviewsettings.DefaultMapViewSettings.ALPHA_TYPE_KEY = "mapViewSettings.alphaType"
staticprivate

Key for saving alphaType state in preferences.

Definition at line 68 of file DefaultMapViewSettings.java.

◆ AUTOJOIN_KEY

final String net.sf.gridarta.model.mapviewsettings.DefaultMapViewSettings.AUTOJOIN_KEY = "mapViewSettings.autojoin"
staticprivate

Key for saving autojoin state in preferences.

Definition at line 74 of file DefaultMapViewSettings.java.

◆ DOUBLE_FACES_KEY

final String net.sf.gridarta.model.mapviewsettings.DefaultMapViewSettings.DOUBLE_FACES_KEY = "mapViewSettings.doubleFaces"
staticprivate

Key for saving doubleFaces state in preferences.

Definition at line 62 of file DefaultMapViewSettings.java.

◆ GRID_VISIBLE_KEY

final String net.sf.gridarta.model.mapviewsettings.DefaultMapViewSettings.GRID_VISIBLE_KEY = "mapViewSettings.gridVisible"
staticprivate

Key for saving gridVisible state in preferences.

Definition at line 38 of file DefaultMapViewSettings.java.

◆ LIGHT_VISIBLE_KEY

final String net.sf.gridarta.model.mapviewsettings.DefaultMapViewSettings.LIGHT_VISIBLE_KEY = "mapViewSettings.lightVisible"
staticprivate

Key for saving lightVisible state in preferences.

Definition at line 44 of file DefaultMapViewSettings.java.

◆ PREFERENCES

final Preferences net.sf.gridarta.model.mapviewsettings.DefaultMapViewSettings.PREFERENCES = Preferences.userNodeForPackage(MainControl.class)
staticprivate

Preferences.

Definition at line 80 of file DefaultMapViewSettings.java.

◆ SMOOTHING_KEY

final String net.sf.gridarta.model.mapviewsettings.DefaultMapViewSettings.SMOOTHING_KEY = "mapViewSettings.smoothing"
staticprivate

Key for saving smoothing state in preferences.

Definition at line 50 of file DefaultMapViewSettings.java.

◆ TILE_STRETCHING_KEY

final String net.sf.gridarta.model.mapviewsettings.DefaultMapViewSettings.TILE_STRETCHING_KEY = "mapViewSettings.tileStretching"
staticprivate

Key for saving tileStretching state in preferences.

Definition at line 56 of file DefaultMapViewSettings.java.


The documentation for this class was generated from the following file: