Class AbstractPickmapSettings
- java.lang.Object
-
- net.sf.gridarta.model.pickmapsettings.AbstractPickmapSettings
-
- All Implemented Interfaces:
PickmapSettings
- Direct Known Subclasses:
DefaultPickmapSettings
public abstract class AbstractPickmapSettings extends java.lang.Object implements PickmapSettings
Abstract base class forPickmapSettingsimplementations.
-
-
Constructor Summary
Constructors Constructor Description AbstractPickmapSettings()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description voidaddPickmapSettingsListener(@NotNull PickmapSettingsListener listener)Adds aPickmapSettingsListenerto be notified about changes.booleanisLocked()Returns whether pickmaps are immutable.protected abstract booleanloadLocked()Loads the default value forlocked.voidremovePickmapSettingsListener(@NotNull PickmapSettingsListener listener)Removes aPickmapSettingsListenerto be notified about changes.protected abstract voidsaveLocked(boolean locked)Saves thelockedvalue.voidsetLocked(boolean locked)Sets whether pickmaps are immutable.
-
-
-
Method Detail
-
addPickmapSettingsListener
public void addPickmapSettingsListener(@NotNull @NotNull PickmapSettingsListener listener)Description copied from interface:PickmapSettingsAdds aPickmapSettingsListenerto be notified about changes.- Specified by:
addPickmapSettingsListenerin interfacePickmapSettings- Parameters:
listener- the listener to add
-
removePickmapSettingsListener
public void removePickmapSettingsListener(@NotNull @NotNull PickmapSettingsListener listener)Description copied from interface:PickmapSettingsRemoves aPickmapSettingsListenerto be notified about changes.- Specified by:
removePickmapSettingsListenerin interfacePickmapSettings- Parameters:
listener- the listener to remove
-
isLocked
public boolean isLocked()
Description copied from interface:PickmapSettingsReturns whether pickmaps are immutable.- Specified by:
isLockedin interfacePickmapSettings- Returns:
- whether pickmaps are immutable
-
setLocked
public void setLocked(boolean locked)
Description copied from interface:PickmapSettingsSets whether pickmaps are immutable.- Specified by:
setLockedin interfacePickmapSettings- Parameters:
locked- whether pickmaps are immutable
-
loadLocked
protected abstract boolean loadLocked()
Loads the default value forlocked.- Returns:
- the default value
-
saveLocked
protected abstract void saveLocked(boolean locked)
Saves thelockedvalue.- Parameters:
locked- the locked value
-
-