Package 

Class KmlStyle


  • 
    public class KmlStyle
    extends Style
                        

    Represents the defined styles in the KML document

    • Method Summary

      Modifier and Type Method Description
      boolean isStyleSet(String style) Checks if a given style (for a marker, linestring or polygon) has been set
      boolean hasFill() Gets whether the Polygon fill is set
      void setFill(boolean fill) Sets whether the Polygon has a fill
      double getIconScale() Gets the scale for a marker icon
      boolean hasOutline() Gets whether the Polygon outline is set
      boolean hasBalloonStyle() Gets whether a BalloonStyle has been set
      String getIconUrl() Gets the url for the marker icon
      boolean isLineRandomColorMode() Checks whether the color mode for a polyline is true / random
      boolean isPolyRandomColorMode() Checks whether the color mode for a polygon is true / random
      HashMap<String, String> getBalloonOptions() Gets the balloon options
      MarkerOptions getMarkerOptions() Gets a MarkerOption
      PolylineOptions getPolylineOptions() Gets a PolylineOption
      PolygonOptions getPolygonOptions() Gets a PolygonOption
      static int computeRandomColor(int color) Computes a random color given an integer.
      String toString()
      • Methods inherited from class com.google.maps.android.data.Style

        getRotation, setLineStringWidth, setMarkerHotSpot, setMarkerRotation, setPolygonFillColor, setPolygonStrokeWidth
      • Methods inherited from class java.util.Observable

        addObserver, countObservers, deleteObserver, deleteObservers, hasChanged, notifyObservers
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Method Detail

      • isStyleSet

         boolean isStyleSet(String style)

        Checks if a given style (for a marker, linestring or polygon) has been set

        Parameters:
        style - style to check if set
      • hasFill

         boolean hasFill()

        Gets whether the Polygon fill is set

      • setFill

         void setFill(boolean fill)

        Sets whether the Polygon has a fill

        Parameters:
        fill - True if the polygon fill is set, false otherwise
      • getIconScale

         double getIconScale()

        Gets the scale for a marker icon

      • hasOutline

         boolean hasOutline()

        Gets whether the Polygon outline is set

      • hasBalloonStyle

         boolean hasBalloonStyle()

        Gets whether a BalloonStyle has been set

      • isLineRandomColorMode

         boolean isLineRandomColorMode()

        Checks whether the color mode for a polyline is true / random

      • isPolyRandomColorMode

         boolean isPolyRandomColorMode()

        Checks whether the color mode for a polygon is true / random

      • computeRandomColor

         static int computeRandomColor(int color)

        Computes a random color given an integer. Algorithm to compute the random color can befound in https://developers.google.com/kml/documentation/kmlreference#colormode

        Parameters:
        color - Color represented as an integer