public interface MapViewSettings
| Modifier and Type | Method and Description |
|---|---|
void |
addMapViewSettingsListener(@NotNull MapViewSettingsListener listener)
Register a MapViewSettingsListener.
|
void |
clearAlpha()
Clear the transparency.
|
int |
getEditType()
Returns the currently set edit type.
|
boolean |
isAlphaType(int v)
Returns whether the specified edit type is to be shown transparent.
|
boolean |
isAutojoin()
Returns whether "autojoin" is enabled.
|
boolean |
isDoubleFaces()
Get whether double faces are drawn double height.
|
boolean |
isEditType(@NotNull BaseObject<?,?,?,?> gameObject)
Get information whether the gameObject is edited.
|
boolean |
isEditType(int editType)
Get information on the current state of edit type.
|
boolean |
isEditTypeSet()
Returns whether a editType value is set so that not all squares are
displayed.
|
boolean |
isGridVisible()
Get the visibility of the grid.
|
boolean |
isLightVisible()
Get the visibility of the light.
|
boolean |
isSmoothing()
Returns the smoothing setting.
|
boolean |
isTileStretching()
Returns the tile-stretching setting.
|
void |
removeMapViewSettingsListener(@NotNull MapViewSettingsListener listener)
Unregister a MapViewSettingsListener.
|
void |
setAlphaType(int v,
boolean state)
Sets whether the specified edit type is to be shown transparent.
|
void |
setAutojoin(boolean autojoin)
Sets the "autojoin" state.
|
void |
setDoubleFaces(boolean doubleFaces)
Sets whether double faces should be drawn double height.
|
void |
setGridVisible(boolean gridVisible)
Set the visibility of the grid.
|
void |
setLightVisible(boolean lightVisible)
Set the visibility of the light.
|
void |
setSmoothing(boolean smoothing)
Sets the smoothing setting.
|
void |
setTileStretching(boolean tileStretching)
Sets the tile-stretching setting.
|
void |
toggleEditType(int editType)
Toggle an edit type.
|
void |
unsetEditType(int editType)
Set the map view to hide squares of the given type.
|
void addMapViewSettingsListener(@NotNull
@NotNull MapViewSettingsListener listener)
listener - MapViewSettingsListener to registervoid removeMapViewSettingsListener(@NotNull
@NotNull MapViewSettingsListener listener)
listener - MapViewSettingsListener to unregisterboolean isGridVisible()
true for visible, false
for invisible)void setGridVisible(boolean gridVisible)
gridVisible - new visibility of the grid (true for making
the grid visible, false for invisible)boolean isLightVisible()
true for visible, false
for invisible)void setLightVisible(boolean lightVisible)
lightVisible - new visibility of the light (true for making
the light visible, false for invisible)boolean isSmoothing()
void setSmoothing(boolean smoothing)
smoothing - the new smoothing settingboolean isTileStretching()
void setTileStretching(boolean tileStretching)
tileStretching - the new tile-stretching settingboolean isDoubleFaces()
true if double faces are drawn double height, otherwise
falsevoid setDoubleFaces(boolean doubleFaces)
doubleFaces - whether double faces should be drawn double heightboolean isAlphaType(int v)
v - edit type to checktrue if to be displayed transparent, otherwise falsevoid setAlphaType(int v,
boolean state)
v - edit type to setstate - state, true to make edit type true
transparent, false for opaquevoid clearAlpha()
int getEditType()
void unsetEditType(int editType)
editType - edit type bitmask of types to hideboolean isEditType(int editType)
editType - are squares of this type displayed?true if these squares are currently displayedboolean isEditType(@NotNull
@NotNull BaseObject<?,?,?,?> gameObject)
gameObject - are squares of this type displayed?boolean isEditTypeSet()
true if a editType value is set, otherwise false.void toggleEditType(int editType)
editType - the edit type to toggleboolean isAutojoin()
void setAutojoin(boolean autojoin)
autojoin - if set, enable autojoining