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
ConstructorDescriptionLeafletIcon
(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:
getLocation
in interfaceIcon
-
setLocation
- Specified by:
setLocation
in interfaceIcon
-
getFriendlyName
- Specified by:
getFriendlyName
in interfaceIcon
-
getType
-
getStyle
-
getId
-
setIconSelectionCallback
- Specified by:
setIconSelectionCallback
in interfaceIcon
-
getIconSelectionCallback
- Specified by:
getIconSelectionCallback
in interfaceIcon
-
getIconSize
- Specified by:
getIconSize
in interfaceIcon
-
setIconSize
- Specified by:
setIconSize
in interfaceIcon
-
shouldBeAnnotated
public boolean shouldBeAnnotated()- Specified by:
shouldBeAnnotated
in interfaceIcon
-
setShouldBeAnnotated
- Specified by:
setShouldBeAnnotated
in interfaceIcon
-