Class LeafletIcon
java.lang.Object
gov.llnl.gnem.apps.coda.common.mapping.LeafletIcon
- All Implemented Interfaces:
Icon
-
Nested Class Summary
Nested classes/interfaces inherited from interface gov.llnl.gnem.apps.coda.common.mapping.api.Icon
Icon.IconStyles, Icon.IconTypes -
Field Summary
-
Constructor Summary
ConstructorsConstructorDescriptionLeafletIcon(Location location, String friendlyName, Icon.IconTypes iconType) LeafletIcon(Location location, String friendlyName, Icon.IconTypes iconType, Icon.IconStyles style) LeafletIcon(String id, Location location, String friendlyName, Icon.IconTypes iconType) LeafletIcon(String id, Location location, String friendlyName, Icon.IconTypes iconType, Icon.IconStyles style) -
Method Summary
Modifier and TypeMethodDescriptiongetId()getStyle()getType()setIconSelectionCallback(BiConsumer<Boolean, String> callback) setIconSize(Double iconSize) setLocation(Location location) setShouldBeAnnotated(boolean shouldBeAnnotated) boolean
-
Constructor Details
-
LeafletIcon
-
LeafletIcon
public LeafletIcon(Location location, String friendlyName, Icon.IconTypes iconType, Icon.IconStyles style) -
LeafletIcon
-
LeafletIcon
public LeafletIcon(String id, Location location, String friendlyName, Icon.IconTypes iconType, Icon.IconStyles style)
-
-
Method Details
-
getLocation
- Specified by:
getLocationin interfaceIcon
-
setLocation
- Specified by:
setLocationin interfaceIcon
-
getFriendlyName
- Specified by:
getFriendlyNamein interfaceIcon
-
getType
-
getStyle
-
getId
-
setIconSelectionCallback
- Specified by:
setIconSelectionCallbackin interfaceIcon
-
getIconSelectionCallback
- Specified by:
getIconSelectionCallbackin interfaceIcon
-
getIconSize
- Specified by:
getIconSizein interfaceIcon
-
setIconSize
- Specified by:
setIconSizein interfaceIcon
-
shouldBeAnnotated
public boolean shouldBeAnnotated()- Specified by:
shouldBeAnnotatedin interfaceIcon
-
setShouldBeAnnotated
- Specified by:
setShouldBeAnnotatedin interfaceIcon
-