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

A MapViewSettings implementation for regression tests. More...

+ Inheritance diagram for net.sf.gridarta.model.mapviewsettings.TestMapViewSettings:
+ Collaboration diagram for net.sf.gridarta.model.mapviewsettings.TestMapViewSettings:

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

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

A MapViewSettings implementation for regression tests.

The attribute values are not retained.

Author
Andreas Kirschbaum

Definition at line 27 of file TestMapViewSettings.java.

Member Function Documentation

◆ loadAlphaType()

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

Definition at line 80 of file TestMapViewSettings.java.

◆ loadAutojoin()

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

Definition at line 95 of file TestMapViewSettings.java.

◆ loadDoubleFaces()

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

Definition at line 70 of file TestMapViewSettings.java.

◆ loadEditType()

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

Definition at line 90 of file TestMapViewSettings.java.

◆ loadGridVisible()

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

Definition at line 30 of file TestMapViewSettings.java.

◆ loadLightVisible()

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

Definition at line 40 of file TestMapViewSettings.java.

◆ loadSmoothing()

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

Definition at line 50 of file TestMapViewSettings.java.

◆ loadTileStretching()

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

Definition at line 60 of file TestMapViewSettings.java.

◆ saveAlphaType()

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

Definition at line 85 of file TestMapViewSettings.java.

◆ saveAutojoin()

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

Definition at line 100 of file TestMapViewSettings.java.

◆ saveDoubleFaces()

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

Definition at line 75 of file TestMapViewSettings.java.

◆ saveGridVisible()

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

Definition at line 35 of file TestMapViewSettings.java.

◆ saveLightVisible()

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

Definition at line 45 of file TestMapViewSettings.java.

◆ saveSmoothing()

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

Definition at line 55 of file TestMapViewSettings.java.

◆ saveTileStretching()

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

Definition at line 65 of file TestMapViewSettings.java.


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