Package org.ka2ddo.yaac.osm
Class VisibleCtls
java.lang.Object
org.ka2ddo.yaac.osm.VisibleCtls
- All Implemented Interfaces:
Serializable
Caching class specifying whether instances of enums are visible or not.
- Author:
- Andrew Pavlin, KA2DDO
- See Also:
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
containsEnum
(Enum e) Report whether the specified Enum value is registered in this VisibleEnum.void
copyInto
(VisibleCtls dest) Copy the settings in this VisibleCtls into another instance.boolean
Indicate whether OSM objects tagged with this enum are visible.void
Remove the specified Enum from the map.void
setVisible
(Enum e, boolean visible) Set whether OSM objects tagged with this enum should be visible.int
size()
Report the number of Enums with associated visibility flags.
-
Constructor Details
-
VisibleCtls
public VisibleCtls()
-
-
Method Details
-
isVisible
Indicate whether OSM objects tagged with this enum are visible.- Parameters:
e
- Enum whose visibility should be tested- Returns:
- boolean true if object should be visible
-
setVisible
Set whether OSM objects tagged with this enum should be visible.- Parameters:
e
- Enum whose visibility should be specifiedvisible
- boolean true if tagged objects should be visible
-
remove
Remove the specified Enum from the map.- Parameters:
e
- Enum to remove
-
size
public int size()Report the number of Enums with associated visibility flags.- Returns:
- count of Enums
-
containsEnum
Report whether the specified Enum value is registered in this VisibleEnum.- Parameters:
e
- Enum to test for- Returns:
- boolean true if the Enum is recorded in this object
-
copyInto
Copy the settings in this VisibleCtls into another instance.- Parameters:
dest
- VisibleCtls object to receive copied settings from this object
-