Gridarta Editor
net.sf.gridarta.model.mapviewsettings.AbstractMapViewSettings Class Referenceabstract

Abstract base class for MapViewSettings implementations. More...

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

Public Member Functions

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

Protected Member Functions

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

Private Member Functions

void fireAlphaTypeChanged ()
 Informs all registered listeners that the alpha type haves changed. More...
 
void fireAutojoinChanged ()
 Notify all listeners about changed autojoin. More...
 
void fireDoubleFacesChanged ()
 Informs all registered listeners that the double faces visibility has changed. More...
 
void fireEditTypeChanged ()
 Notify all listeners about changed editType. More...
 
void fireGridVisibleChanged ()
 Informs all registered listeners that the grid visibility has changed. More...
 
void fireLightVisibleChanged ()
 Informs all registered listeners that the light visibility has changed. More...
 
void fireSmoothingChanged ()
 Informs all registered listeners that the smoothing setting has changed. More...
 
void fireTileStretchingChanged ()
 Informs all registered listeners that the tile-stretching setting has changed. More...
 
void setEditType (final int editType)
 Set the map view to show squares of the given type. More...
 

Private Attributes

int alphaType = loadAlphaType()
 Bit field of edit types to show transparent. More...
 
boolean autojoin = loadAutojoin()
 Whether autojoining is on/off. More...
 
boolean doubleFaces = loadDoubleFaces()
 Whether double faces should be drawn double height. More...
 
int editType = loadEditType()
 Bit field of edit types to show only. More...
 
boolean gridVisible = loadGridVisible()
 The visibility of the grid. More...
 
boolean lightVisible = loadLightVisible()
 The visibility of the light. More...
 
final EventListenerList2< MapViewSettingsListenerlistenerList = new EventListenerList2<>(MapViewSettingsListener.class)
 The MapViewSettingsListeners to inform of changes. More...
 
boolean smoothing = loadSmoothing()
 Whether smoothing display is active. More...
 
boolean tileStretching = loadTileStretching()
 Whether tile-stretching display is active. More...
 
final ViewGameObjectMatcherManager transparencyManager = null
 The transparency settings. More...
 
final ViewGameObjectMatcherManager visibilityManager = null
 The visibility settings. More...
 

Detailed Description

Abstract base class for MapViewSettings implementations.

Author
Andreas Kirschbaum

Definition at line 32 of file AbstractMapViewSettings.java.

Member Function Documentation

◆ addMapViewSettingsListener()

void net.sf.gridarta.model.mapviewsettings.AbstractMapViewSettings.addMapViewSettingsListener ( @NotNull final MapViewSettingsListener  listener)

Register a MapViewSettingsListener.

Parameters
listenerMapViewSettingsListener to register

Implements net.sf.gridarta.model.mapviewsettings.MapViewSettings.

Definition at line 95 of file AbstractMapViewSettings.java.

References net.sf.gridarta.utils.EventListenerList2< T extends EventListener >.add().

+ Here is the call graph for this function:

◆ clearAlpha()

void net.sf.gridarta.model.mapviewsettings.AbstractMapViewSettings.clearAlpha ( )

◆ fireAlphaTypeChanged()

void net.sf.gridarta.model.mapviewsettings.AbstractMapViewSettings.fireAlphaTypeChanged ( )
private

Informs all registered listeners that the alpha type haves changed.

Definition at line 327 of file AbstractMapViewSettings.java.

References net.sf.gridarta.utils.EventListenerList2< T extends EventListener >.getListeners().

Referenced by net.sf.gridarta.model.mapviewsettings.AbstractMapViewSettings.clearAlpha(), and net.sf.gridarta.model.mapviewsettings.AbstractMapViewSettings.setAlphaType().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ fireAutojoinChanged()

void net.sf.gridarta.model.mapviewsettings.AbstractMapViewSettings.fireAutojoinChanged ( )
private

Notify all listeners about changed autojoin.

Definition at line 345 of file AbstractMapViewSettings.java.

References net.sf.gridarta.utils.EventListenerList2< T extends EventListener >.getListeners(), net.sf.gridarta.model.mapviewsettings.AbstractMapViewSettings.loadAlphaType(), net.sf.gridarta.model.mapviewsettings.AbstractMapViewSettings.loadAutojoin(), net.sf.gridarta.model.mapviewsettings.AbstractMapViewSettings.loadDoubleFaces(), net.sf.gridarta.model.mapviewsettings.AbstractMapViewSettings.loadEditType(), net.sf.gridarta.model.mapviewsettings.AbstractMapViewSettings.loadGridVisible(), net.sf.gridarta.model.mapviewsettings.AbstractMapViewSettings.loadLightVisible(), net.sf.gridarta.model.mapviewsettings.AbstractMapViewSettings.loadSmoothing(), net.sf.gridarta.model.mapviewsettings.AbstractMapViewSettings.loadTileStretching(), net.sf.gridarta.model.mapviewsettings.AbstractMapViewSettings.saveAlphaType(), net.sf.gridarta.model.mapviewsettings.AbstractMapViewSettings.saveAutojoin(), net.sf.gridarta.model.mapviewsettings.AbstractMapViewSettings.saveDoubleFaces(), net.sf.gridarta.model.mapviewsettings.AbstractMapViewSettings.saveGridVisible(), net.sf.gridarta.model.mapviewsettings.AbstractMapViewSettings.saveLightVisible(), net.sf.gridarta.model.mapviewsettings.AbstractMapViewSettings.saveSmoothing(), and net.sf.gridarta.model.mapviewsettings.AbstractMapViewSettings.saveTileStretching().

Referenced by net.sf.gridarta.model.mapviewsettings.AbstractMapViewSettings.setAutojoin().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ fireDoubleFacesChanged()

void net.sf.gridarta.model.mapviewsettings.AbstractMapViewSettings.fireDoubleFacesChanged ( )
private

Informs all registered listeners that the double faces visibility has changed.

Definition at line 318 of file AbstractMapViewSettings.java.

References net.sf.gridarta.utils.EventListenerList2< T extends EventListener >.getListeners().

Referenced by net.sf.gridarta.model.mapviewsettings.AbstractMapViewSettings.setDoubleFaces().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ fireEditTypeChanged()

void net.sf.gridarta.model.mapviewsettings.AbstractMapViewSettings.fireEditTypeChanged ( )
private

Notify all listeners about changed editType.

Definition at line 336 of file AbstractMapViewSettings.java.

References net.sf.gridarta.utils.EventListenerList2< T extends EventListener >.getListeners().

Referenced by net.sf.gridarta.model.mapviewsettings.AbstractMapViewSettings.setEditType(), and net.sf.gridarta.model.mapviewsettings.AbstractMapViewSettings.unsetEditType().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ fireGridVisibleChanged()

void net.sf.gridarta.model.mapviewsettings.AbstractMapViewSettings.fireGridVisibleChanged ( )
private

Informs all registered listeners that the grid visibility has changed.

Definition at line 280 of file AbstractMapViewSettings.java.

References net.sf.gridarta.utils.EventListenerList2< T extends EventListener >.getListeners().

Referenced by net.sf.gridarta.model.mapviewsettings.AbstractMapViewSettings.setGridVisible().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ fireLightVisibleChanged()

void net.sf.gridarta.model.mapviewsettings.AbstractMapViewSettings.fireLightVisibleChanged ( )
private

Informs all registered listeners that the light visibility has changed.

Definition at line 289 of file AbstractMapViewSettings.java.

References net.sf.gridarta.utils.EventListenerList2< T extends EventListener >.getListeners().

Referenced by net.sf.gridarta.model.mapviewsettings.AbstractMapViewSettings.setLightVisible().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ fireSmoothingChanged()

void net.sf.gridarta.model.mapviewsettings.AbstractMapViewSettings.fireSmoothingChanged ( )
private

Informs all registered listeners that the smoothing setting has changed.

Definition at line 298 of file AbstractMapViewSettings.java.

References net.sf.gridarta.utils.EventListenerList2< T extends EventListener >.getListeners().

Referenced by net.sf.gridarta.model.mapviewsettings.AbstractMapViewSettings.setSmoothing().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ fireTileStretchingChanged()

void net.sf.gridarta.model.mapviewsettings.AbstractMapViewSettings.fireTileStretchingChanged ( )
private

Informs all registered listeners that the tile-stretching setting has changed.

Definition at line 308 of file AbstractMapViewSettings.java.

References net.sf.gridarta.utils.EventListenerList2< T extends EventListener >.getListeners().

Referenced by net.sf.gridarta.model.mapviewsettings.AbstractMapViewSettings.setTileStretching().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ getEditType()

int net.sf.gridarta.model.mapviewsettings.AbstractMapViewSettings.getEditType ( )

Returns the currently set edit type.

Returns
the currently set edit type

Implements net.sf.gridarta.model.mapviewsettings.MapViewSettings.

Definition at line 208 of file AbstractMapViewSettings.java.

References net.sf.gridarta.model.mapviewsettings.AbstractMapViewSettings.editType.

◆ isAlphaType()

boolean net.sf.gridarta.model.mapviewsettings.AbstractMapViewSettings.isAlphaType ( final int  v)

Returns whether the specified edit type is to be shown transparent.

Parameters
vedit type to check
Returns
true
if to be displayed transparent, otherwise
false

Implements net.sf.gridarta.model.mapviewsettings.MapViewSettings.

Definition at line 185 of file AbstractMapViewSettings.java.

◆ isAutojoin()

boolean net.sf.gridarta.model.mapviewsettings.AbstractMapViewSettings.isAutojoin ( )

Returns whether "autojoin" is enabled.

Returns
the autojoin state

Implements net.sf.gridarta.model.mapviewsettings.MapViewSettings.

Definition at line 262 of file AbstractMapViewSettings.java.

References net.sf.gridarta.model.mapviewsettings.AbstractMapViewSettings.autojoin.

◆ isDoubleFaces()

boolean net.sf.gridarta.model.mapviewsettings.AbstractMapViewSettings.isDoubleFaces ( )

Get whether double faces are drawn double height.

Returns
true
if double faces are drawn double height, otherwise
false

Implements net.sf.gridarta.model.mapviewsettings.MapViewSettings.

Definition at line 169 of file AbstractMapViewSettings.java.

References net.sf.gridarta.model.mapviewsettings.AbstractMapViewSettings.doubleFaces.

◆ isEditType() [1/2]

boolean net.sf.gridarta.model.mapviewsettings.AbstractMapViewSettings.isEditType ( final int  editType)

Get information on the current state of edit type.

Are squares of type 'editType' displayed?

Parameters
editTypeare squares of this type displayed?
Returns
true
if these squares are currently displayed

Implements net.sf.gridarta.model.mapviewsettings.MapViewSettings.

Definition at line 237 of file AbstractMapViewSettings.java.

References net.sf.gridarta.model.baseobject.BaseObject< G extends GameObject< G, A, R, A extends MapArchObject< A, R extends Archetype< G, A, R, T extends BaseObject< G, A, R, T >.EDIT_TYPE_NONE, and net.sf.gridarta.model.mapviewsettings.AbstractMapViewSettings.editType.

Referenced by net.sf.gridarta.model.mapviewsettings.AbstractMapViewSettings.isEditType(), and net.sf.gridarta.model.mapviewsettings.AbstractMapViewSettings.toggleEditType().

+ Here is the caller graph for this function:

◆ isEditType() [2/2]

boolean net.sf.gridarta.model.mapviewsettings.AbstractMapViewSettings.isEditType ( @NotNull final BaseObject<?, ?, ?, ?>  gameObject)

Get information whether the gameObject is edited.

Are squares of type 'v' displayed?

Parameters
gameObjectare squares of this type displayed?
Returns
true if these squares are currently displayed

Implements net.sf.gridarta.model.mapviewsettings.MapViewSettings.

Definition at line 243 of file AbstractMapViewSettings.java.

References net.sf.gridarta.model.mapviewsettings.AbstractMapViewSettings.isEditType().

+ Here is the call graph for this function:

◆ isEditTypeSet()

boolean net.sf.gridarta.model.mapviewsettings.AbstractMapViewSettings.isEditTypeSet ( )

Returns whether a editType value is set so that not all squares are displayed.

Returns
true
if a editType value is set, otherwise
false
.

Implements net.sf.gridarta.model.mapviewsettings.MapViewSettings.

Definition at line 248 of file AbstractMapViewSettings.java.

References net.sf.gridarta.model.baseobject.BaseObject< G extends GameObject< G, A, R, A extends MapArchObject< A, R extends Archetype< G, A, R, T extends BaseObject< G, A, R, T >.EDIT_TYPE_NONE.

◆ isGridVisible()

boolean net.sf.gridarta.model.mapviewsettings.AbstractMapViewSettings.isGridVisible ( )

Get the visibility of the grid.

Returns
visibility of the grid (
true
for visible,
false
for invisible)

Implements net.sf.gridarta.model.mapviewsettings.MapViewSettings.

Definition at line 105 of file AbstractMapViewSettings.java.

References net.sf.gridarta.model.mapviewsettings.AbstractMapViewSettings.gridVisible.

◆ isLightVisible()

boolean net.sf.gridarta.model.mapviewsettings.AbstractMapViewSettings.isLightVisible ( )

Get the visibility of the light.

Returns
visibility of the light (
true
for visible,
false
for invisible)

Implements net.sf.gridarta.model.mapviewsettings.MapViewSettings.

Definition at line 121 of file AbstractMapViewSettings.java.

References net.sf.gridarta.model.mapviewsettings.AbstractMapViewSettings.lightVisible.

◆ isSmoothing()

boolean net.sf.gridarta.model.mapviewsettings.AbstractMapViewSettings.isSmoothing ( )

Returns the smoothing setting.

Returns
the smoothing setting

Implements net.sf.gridarta.model.mapviewsettings.MapViewSettings.

Definition at line 137 of file AbstractMapViewSettings.java.

References net.sf.gridarta.model.mapviewsettings.AbstractMapViewSettings.smoothing.

◆ isTileStretching()

boolean net.sf.gridarta.model.mapviewsettings.AbstractMapViewSettings.isTileStretching ( )

Returns the tile-stretching setting.

Returns
the tile-stretching setting

Implements net.sf.gridarta.model.mapviewsettings.MapViewSettings.

Definition at line 153 of file AbstractMapViewSettings.java.

References net.sf.gridarta.model.mapviewsettings.AbstractMapViewSettings.tileStretching.

◆ loadAlphaType()

abstract int net.sf.gridarta.model.mapviewsettings.AbstractMapViewSettings.loadAlphaType ( )
abstractprotected

Loads the default value for alphaType.

Returns
the default value

Referenced by net.sf.gridarta.model.mapviewsettings.AbstractMapViewSettings.fireAutojoinChanged().

+ Here is the caller graph for this function:

◆ loadAutojoin()

abstract boolean net.sf.gridarta.model.mapviewsettings.AbstractMapViewSettings.loadAutojoin ( )
abstractprotected

Loads the default value for autojoin.

Returns
the default value

Referenced by net.sf.gridarta.model.mapviewsettings.AbstractMapViewSettings.fireAutojoinChanged().

+ Here is the caller graph for this function:

◆ loadDoubleFaces()

abstract boolean net.sf.gridarta.model.mapviewsettings.AbstractMapViewSettings.loadDoubleFaces ( )
abstractprotected

Loads the default value for doubleFaces.

Returns
the default value

Referenced by net.sf.gridarta.model.mapviewsettings.AbstractMapViewSettings.fireAutojoinChanged().

+ Here is the caller graph for this function:

◆ loadEditType()

abstract int net.sf.gridarta.model.mapviewsettings.AbstractMapViewSettings.loadEditType ( )
abstractprotected

Loads the default value for editType.

Returns
the default value

Referenced by net.sf.gridarta.model.mapviewsettings.AbstractMapViewSettings.fireAutojoinChanged().

+ Here is the caller graph for this function:

◆ loadGridVisible()

abstract boolean net.sf.gridarta.model.mapviewsettings.AbstractMapViewSettings.loadGridVisible ( )
abstractprotected

Loads the default value for gridVisible.

Returns
the default value

Referenced by net.sf.gridarta.model.mapviewsettings.AbstractMapViewSettings.fireAutojoinChanged().

+ Here is the caller graph for this function:

◆ loadLightVisible()

abstract boolean net.sf.gridarta.model.mapviewsettings.AbstractMapViewSettings.loadLightVisible ( )
abstractprotected

Loads the default value for lightVisible.

Returns
the default value

Referenced by net.sf.gridarta.model.mapviewsettings.AbstractMapViewSettings.fireAutojoinChanged().

+ Here is the caller graph for this function:

◆ loadSmoothing()

abstract boolean net.sf.gridarta.model.mapviewsettings.AbstractMapViewSettings.loadSmoothing ( )
abstractprotected

Loads the default value for smoothing.

Returns
the default value

Referenced by net.sf.gridarta.model.mapviewsettings.AbstractMapViewSettings.fireAutojoinChanged().

+ Here is the caller graph for this function:

◆ loadTileStretching()

abstract boolean net.sf.gridarta.model.mapviewsettings.AbstractMapViewSettings.loadTileStretching ( )
abstractprotected

Loads the default value for tileStretching.

Returns
the default value

Referenced by net.sf.gridarta.model.mapviewsettings.AbstractMapViewSettings.fireAutojoinChanged().

+ Here is the caller graph for this function:

◆ removeMapViewSettingsListener()

void net.sf.gridarta.model.mapviewsettings.AbstractMapViewSettings.removeMapViewSettingsListener ( @NotNull final MapViewSettingsListener  listener)

Unregister a MapViewSettingsListener.

Parameters
listenerMapViewSettingsListener to unregister

Implements net.sf.gridarta.model.mapviewsettings.MapViewSettings.

Definition at line 100 of file AbstractMapViewSettings.java.

References net.sf.gridarta.utils.EventListenerList2< T extends EventListener >.remove().

+ Here is the call graph for this function:

◆ saveAlphaType()

abstract void net.sf.gridarta.model.mapviewsettings.AbstractMapViewSettings.saveAlphaType ( int  alphaType)
abstractprotected

◆ saveAutojoin()

abstract void net.sf.gridarta.model.mapviewsettings.AbstractMapViewSettings.saveAutojoin ( boolean  autojoin)
abstractprotected

Saves the autojoin value.

Parameters
autojointhe autojoin value

Referenced by net.sf.gridarta.model.mapviewsettings.AbstractMapViewSettings.fireAutojoinChanged(), and net.sf.gridarta.model.mapviewsettings.AbstractMapViewSettings.setAutojoin().

+ Here is the caller graph for this function:

◆ saveDoubleFaces()

abstract void net.sf.gridarta.model.mapviewsettings.AbstractMapViewSettings.saveDoubleFaces ( boolean  doubleFaces)
abstractprotected

Saves the doubleFaces value.

Parameters
doubleFacesthe double faces value

Referenced by net.sf.gridarta.model.mapviewsettings.AbstractMapViewSettings.fireAutojoinChanged(), and net.sf.gridarta.model.mapviewsettings.AbstractMapViewSettings.setDoubleFaces().

+ Here is the caller graph for this function:

◆ saveGridVisible()

abstract void net.sf.gridarta.model.mapviewsettings.AbstractMapViewSettings.saveGridVisible ( boolean  gridVisible)
abstractprotected

Saves the gridVisible value.

Parameters
gridVisiblethe grid visible value

Referenced by net.sf.gridarta.model.mapviewsettings.AbstractMapViewSettings.fireAutojoinChanged(), and net.sf.gridarta.model.mapviewsettings.AbstractMapViewSettings.setGridVisible().

+ Here is the caller graph for this function:

◆ saveLightVisible()

abstract void net.sf.gridarta.model.mapviewsettings.AbstractMapViewSettings.saveLightVisible ( boolean  lightVisible)
abstractprotected

Saves the lightVisible value.

Parameters
lightVisiblethe light visible value

Referenced by net.sf.gridarta.model.mapviewsettings.AbstractMapViewSettings.fireAutojoinChanged(), and net.sf.gridarta.model.mapviewsettings.AbstractMapViewSettings.setLightVisible().

+ Here is the caller graph for this function:

◆ saveSmoothing()

abstract void net.sf.gridarta.model.mapviewsettings.AbstractMapViewSettings.saveSmoothing ( boolean  smoothing)
abstractprotected

Saves the smoothing value.

Parameters
smoothingthe smoothing value

Referenced by net.sf.gridarta.model.mapviewsettings.AbstractMapViewSettings.fireAutojoinChanged(), and net.sf.gridarta.model.mapviewsettings.AbstractMapViewSettings.setSmoothing().

+ Here is the caller graph for this function:

◆ saveTileStretching()

abstract void net.sf.gridarta.model.mapviewsettings.AbstractMapViewSettings.saveTileStretching ( boolean  tileStretching)
abstractprotected

Saves the tileStretching value.

Parameters
tileStretchingthe smoothing value

Referenced by net.sf.gridarta.model.mapviewsettings.AbstractMapViewSettings.fireAutojoinChanged(), and net.sf.gridarta.model.mapviewsettings.AbstractMapViewSettings.setTileStretching().

+ Here is the caller graph for this function:

◆ setAlphaType()

void net.sf.gridarta.model.mapviewsettings.AbstractMapViewSettings.setAlphaType ( final int  v,
final boolean  state 
)

Sets whether the specified edit type is to be shown transparent.

Parameters
vedit type to set
statestate,
true
to make edit type
true
transparent,
false
for opaque

Implements net.sf.gridarta.model.mapviewsettings.MapViewSettings.

Definition at line 190 of file AbstractMapViewSettings.java.

References net.sf.gridarta.model.mapviewsettings.AbstractMapViewSettings.fireAlphaTypeChanged(), and net.sf.gridarta.model.mapviewsettings.AbstractMapViewSettings.saveAlphaType().

+ Here is the call graph for this function:

◆ setAutojoin()

void net.sf.gridarta.model.mapviewsettings.AbstractMapViewSettings.setAutojoin ( final boolean  autojoin)

◆ setDoubleFaces()

void net.sf.gridarta.model.mapviewsettings.AbstractMapViewSettings.setDoubleFaces ( final boolean  doubleFaces)

Sets whether double faces should be drawn double height.

Parameters
doubleFaceswhether double faces should be drawn double height

Implements net.sf.gridarta.model.mapviewsettings.MapViewSettings.

Definition at line 174 of file AbstractMapViewSettings.java.

References net.sf.gridarta.model.mapviewsettings.AbstractMapViewSettings.doubleFaces, net.sf.gridarta.model.mapviewsettings.AbstractMapViewSettings.fireDoubleFacesChanged(), and net.sf.gridarta.model.mapviewsettings.AbstractMapViewSettings.saveDoubleFaces().

+ Here is the call graph for this function:

◆ setEditType()

void net.sf.gridarta.model.mapviewsettings.AbstractMapViewSettings.setEditType ( final int  editType)
private

Set the map view to show squares of the given type.

(If no edit type is set, everything is displayed)

Parameters
editTypeedit type bitmask of types to show

Definition at line 217 of file AbstractMapViewSettings.java.

References net.sf.gridarta.model.mapviewsettings.AbstractMapViewSettings.editType, and net.sf.gridarta.model.mapviewsettings.AbstractMapViewSettings.fireEditTypeChanged().

Referenced by net.sf.gridarta.model.mapviewsettings.AbstractMapViewSettings.toggleEditType().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ setGridVisible()

void net.sf.gridarta.model.mapviewsettings.AbstractMapViewSettings.setGridVisible ( final boolean  gridVisible)

Set the visibility of the grid.

Parameters
gridVisiblenew visibility of the grid (
true
for making the grid visible,
false
for invisible)

Implements net.sf.gridarta.model.mapviewsettings.MapViewSettings.

Definition at line 110 of file AbstractMapViewSettings.java.

References net.sf.gridarta.model.mapviewsettings.AbstractMapViewSettings.fireGridVisibleChanged(), net.sf.gridarta.model.mapviewsettings.AbstractMapViewSettings.gridVisible, and net.sf.gridarta.model.mapviewsettings.AbstractMapViewSettings.saveGridVisible().

+ Here is the call graph for this function:

◆ setLightVisible()

void net.sf.gridarta.model.mapviewsettings.AbstractMapViewSettings.setLightVisible ( final boolean  lightVisible)

Set the visibility of the light.

Parameters
lightVisiblenew visibility of the light (
true
for making the light visible,
false
for invisible)

Implements net.sf.gridarta.model.mapviewsettings.MapViewSettings.

Definition at line 126 of file AbstractMapViewSettings.java.

References net.sf.gridarta.model.mapviewsettings.AbstractMapViewSettings.fireLightVisibleChanged(), net.sf.gridarta.model.mapviewsettings.AbstractMapViewSettings.lightVisible, and net.sf.gridarta.model.mapviewsettings.AbstractMapViewSettings.saveLightVisible().

+ Here is the call graph for this function:

◆ setSmoothing()

void net.sf.gridarta.model.mapviewsettings.AbstractMapViewSettings.setSmoothing ( final boolean  smoothing)

◆ setTileStretching()

void net.sf.gridarta.model.mapviewsettings.AbstractMapViewSettings.setTileStretching ( final boolean  tileStretching)

◆ toggleEditType()

void net.sf.gridarta.model.mapviewsettings.AbstractMapViewSettings.toggleEditType ( final int  editType)

◆ unsetEditType()

void net.sf.gridarta.model.mapviewsettings.AbstractMapViewSettings.unsetEditType ( final int  editType)

Set the map view to hide squares of the given type.

(If no edit type is set, everything is displayed)

Parameters
editTypeedit type bitmask of types to hide

Implements net.sf.gridarta.model.mapviewsettings.MapViewSettings.

Definition at line 227 of file AbstractMapViewSettings.java.

References net.sf.gridarta.model.mapviewsettings.AbstractMapViewSettings.fireEditTypeChanged().

Referenced by net.sf.gridarta.model.mapviewsettings.AbstractMapViewSettings.toggleEditType().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

Member Data Documentation

◆ alphaType

int net.sf.gridarta.model.mapviewsettings.AbstractMapViewSettings.alphaType = loadAlphaType()
private

Bit field of edit types to show transparent.

Definition at line 62 of file AbstractMapViewSettings.java.

◆ autojoin

boolean net.sf.gridarta.model.mapviewsettings.AbstractMapViewSettings.autojoin = loadAutojoin()
private

◆ doubleFaces

boolean net.sf.gridarta.model.mapviewsettings.AbstractMapViewSettings.doubleFaces = loadDoubleFaces()
private

◆ editType

int net.sf.gridarta.model.mapviewsettings.AbstractMapViewSettings.editType = loadEditType()
private

◆ gridVisible

boolean net.sf.gridarta.model.mapviewsettings.AbstractMapViewSettings.gridVisible = loadGridVisible()
private

◆ lightVisible

boolean net.sf.gridarta.model.mapviewsettings.AbstractMapViewSettings.lightVisible = loadLightVisible()
private

◆ listenerList

final EventListenerList2<MapViewSettingsListener> net.sf.gridarta.model.mapviewsettings.AbstractMapViewSettings.listenerList = new EventListenerList2<>(MapViewSettingsListener.class)
private

The MapViewSettingsListeners to inform of changes.

Definition at line 92 of file AbstractMapViewSettings.java.

◆ smoothing

boolean net.sf.gridarta.model.mapviewsettings.AbstractMapViewSettings.smoothing = loadSmoothing()
private

◆ tileStretching

boolean net.sf.gridarta.model.mapviewsettings.AbstractMapViewSettings.tileStretching = loadTileStretching()
private

◆ transparencyManager

final ViewGameObjectMatcherManager net.sf.gridarta.model.mapviewsettings.AbstractMapViewSettings.transparencyManager = null
private

The transparency settings.

Definition at line 79 of file AbstractMapViewSettings.java.

◆ visibilityManager

final ViewGameObjectMatcherManager net.sf.gridarta.model.mapviewsettings.AbstractMapViewSettings.visibilityManager = null
private

The visibility settings.

Definition at line 86 of file AbstractMapViewSettings.java.


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