Package locus.api.objects.styles
Class GeoDataStyle
-
- All Implemented Interfaces:
public final class GeoDataStyle extends Storable
Create new instance of style container.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public classGeoDataStyle.Companion
-
Field Summary
Fields Modifier and Type Field Description public final static IntegerHOTSPOT_BOTTOM_CENTERpublic final static IntegerHOTSPOT_TOP_LEFTpublic final static IntegerHOTSPOT_CENTER_CENTERpublic final static IntegerBLACKpublic final static IntegerWHITEpublic final static IntegerCOLOR_DEFAULTprivate Stringidprivate Stringnameprivate IconStyleiconStyleprivate LabelStylelabelStyleprivate LineStylelineStyleprivate final StringiconStyleIconUrlprivate final Storablecopyprivate final ByteArrayasBytespublic final static GeoDataStyle.CompanionCompanion
-
Constructor Summary
Constructors Constructor Description GeoDataStyle(String name)Create new instance of style container with defined name. GeoDataStyle()
-
Method Summary
Modifier and Type Method Description final StringgetId()ID in style tag. final UnitsetId(String id)ID in style tag. final StringgetName()name of the style. final UnitsetName(String name)name of the style. final IconStylegetIconStyle()Style for icons. final UnitsetIconStyle(IconStyle iconStyle)Style for icons. final LabelStylegetLabelStyle()Style of label. final UnitsetLabelStyle(LabelStyle labelStyle)Style of label. final LineStylegetLineStyle()Style for line and polygons. final UnitsetLineStyle(LineStyle lineStyle)Style for line and polygons. final StringgetIconStyleIconUrl()final UnitsetIconStyle(String iconUrl, Float scale)final UnitsetIconStyle(String iconUrl, Integer color, Float heading, Float scale)final UnitsetIconStyleHotSpot(Integer hotspot)final UnitsetIconStyleHotSpot(KmlVec2 vec2)final UnitsetLineStyle(Integer color, Float width)Set parameters for style that draw a lines. final UnitsetPolyStyle(Integer color)Set line style for drawing a polygons. -
-
Constructor Detail
-
GeoDataStyle
GeoDataStyle(String name)
Create new instance of style container with defined name.- Parameters:
name- name of style container
-
GeoDataStyle
GeoDataStyle()
-
-
Method Detail
-
getIconStyle
final IconStyle getIconStyle()
Style for icons.
-
setIconStyle
final Unit setIconStyle(IconStyle iconStyle)
Style for icons.
-
getLabelStyle
final LabelStyle getLabelStyle()
Style of label.
-
setLabelStyle
final Unit setLabelStyle(LabelStyle labelStyle)
Style of label.
-
getLineStyle
final LineStyle getLineStyle()
Style for line and polygons.
-
setLineStyle
final Unit setLineStyle(LineStyle lineStyle)
Style for line and polygons.
-
getIconStyleIconUrl
final String getIconStyleIconUrl()
-
setIconStyle
final Unit setIconStyle(String iconUrl, Float scale)
-
setIconStyleHotSpot
final Unit setIconStyleHotSpot(Integer hotspot)
-
setIconStyleHotSpot
final Unit setIconStyleHotSpot(KmlVec2 vec2)
-
setLineStyle
final Unit setLineStyle(Integer color, Float width)
Set parameters for style that draw a lines.
- Parameters:
color- color of lineswidth- width of lines in pixels
-
setPolyStyle
final Unit setPolyStyle(Integer color)
Set line style for drawing a polygons.
- Parameters:
color- color of inner area
-
-
-
-