 |
Gridarta Editor
|
Go to the documentation of this file.
20 package net.sf.gridarta.model.mapviewsettings;
22 import java.util.Collection;
23 import java.util.concurrent.CopyOnWriteArrayList;
26 import org.jetbrains.annotations.NotNull;
27 import org.jetbrains.annotations.Nullable;
93 private final Collection<MapViewSettingsListener>
listenerList =
new CopyOnWriteArrayList<>();
229 if ((this.editType &
editType) == 0) {
240 return (this.editType & mask) != 0;
boolean isEditTypeSet()
Returns whether a editType value is set so that not all squares are displayed.
void setTileStretching(final boolean tileStretching)
Sets the tile-stretching setting.
void setEditType(final int editType)
Set the map view to show squares of the given type.
boolean lightVisible
The visibility of the light.
void setAlphaType(final int v, final boolean state)
Sets whether the specified edit type is to be shown transparent.
boolean isAutojoin()
Returns whether "autojoin" is enabled.
boolean isEditType(final int editType)
Get information on the current state of edit type.
abstract void saveSmoothing(boolean smoothing)
Saves the smoothing value.
abstract int loadAlphaType()
Loads the default value for alphaType.
abstract void saveDoubleFaces(boolean doubleFaces)
Saves the doubleFaces value.
Base package of all Gridarta classes.
void setAutojoin(final boolean autojoin)
Sets the "autojoin" state.
void fireTileStretchingChanged()
Informs all registered listeners that the tile-stretching setting has changed.
boolean tileStretching
Whether tile-stretching display is active.
boolean smoothing
Whether smoothing display is active.
void removeMapViewSettingsListener(@NotNull final MapViewSettingsListener listener)
Unregister a MapViewSettingsListener.
boolean isGridVisible()
Get the visibility of the grid.
int getEditType()
Returns the currently set edit type.
abstract boolean loadDoubleFaces()
Loads the default value for doubleFaces.
boolean gridVisible
The visibility of the grid.
abstract void saveGridVisible(boolean gridVisible)
Saves the gridVisible value.
Container for settings that affect the rendering of maps.
void fireAlphaTypeChanged()
Informs all registered listeners that the alpha type haves changed.
Abstract base class for MapViewSettings implementations.
void addMapViewSettingsListener(@NotNull final MapViewSettingsListener listener)
Register a MapViewSettingsListener.
boolean doubleFaces
Whether double faces should be drawn double height.
final Collection< MapViewSettingsListener > listenerList
The MapViewSettingsListeners to inform of changes.
final ViewGameObjectMatcherManager transparencyManager
The transparency settings.
void setSmoothing(final boolean smoothing)
Sets the smoothing setting.
abstract int loadEditType()
Loads the default value for editType.
abstract boolean loadLightVisible()
Loads the default value for lightVisible.
abstract boolean loadTileStretching()
Loads the default value for tileStretching.
abstract boolean loadSmoothing()
Loads the default value for smoothing.
Classes related to matching {GameObjects}, so called { net.sf.gridarta.model.match....
void toggleEditType(final int editType)
Toggle an edit type.
abstract void saveAlphaType(int alphaType)
Saves the alphaType value.
boolean isAlphaType(final int v)
Returns whether the specified edit type is to be shown transparent.
void fireEditTypeChanged()
Notify all listeners about changed editType.
void fireSmoothingChanged()
Informs all registered listeners that the smoothing setting has changed.
void setLightVisible(final boolean lightVisible)
Set the visibility of the light.
abstract void saveAutojoin(boolean autojoin)
Saves the autojoin value.
boolean isLightVisible()
Get the visibility of the light.
void fireGridVisibleChanged()
Informs all registered listeners that the grid visibility has changed.
abstract void saveLightVisible(boolean lightVisible)
Saves the lightVisible value.
boolean isDoubleFaces()
Get whether double faces are drawn double height.
void setGridVisible(final boolean gridVisible)
Set the visibility of the grid.
boolean isSmoothing()
Returns the smoothing setting.
boolean isTileStretching()
Returns the tile-stretching setting.
boolean isEditType(@NotNull final BaseObject<?, ?, ?, ?> gameObject)
Get information whether the gameObject is edited.
int alphaType
Bit field of edit types to show transparent.
void fireLightVisibleChanged()
Informs all registered listeners that the light visibility has changed.
void fireDoubleFacesChanged()
Informs all registered listeners that the double faces visibility has changed.
void setDoubleFaces(final boolean doubleFaces)
Sets whether double faces should be drawn double height.
Interface for event listeners that are interested in changes on {}.
abstract void saveTileStretching(boolean tileStretching)
Saves the tileStretching value.
boolean autojoin
Whether autojoining is on/off.
void clearAlpha()
Clear the transparency.
abstract boolean loadAutojoin()
Loads the default value for autojoin.
int editType
Bit field of edit types to show only.
final ViewGameObjectMatcherManager visibilityManager
The visibility settings.
void unsetEditType(final int editType)
Set the map view to hide squares of the given type.
void fireAutojoinChanged()
Notify all listeners about changed autojoin.
abstract boolean loadGridVisible()
Loads the default value for gridVisible.
Manages GameObjectMatchers.