Class GoogleMaps.Shape

  • Enclosing class:
    GoogleMaps

    public static class GoogleMaps.Shape
    extends GoogleMaps.MapItem
    A map item that represents a polygon with any shape.
          GoogleMaps.Shape s1 = new GoogleMaps.Shape();
          s1.color = Color.YELLOW | 0X88000000;
          s1.filled = true;
          s1.lats = new double[]{-3.73143,-3.73243,-3.73193};
          s1.lons = new double[]{-38.483424, -38.483524, -38.483124};
     
    • Field Summary

      Fields 
      Modifier and Type Field Description
      int color
      The item color.
      boolean filled
      Set if the item is filled or not
      double[] lats
      The coordinates of the polygon
      double[] lons
      The coordinates of the polygon
    • Constructor Summary

      Constructors 
      Constructor Description
      Shape()  
    • Method Summary

      • Methods inherited from class java.lang.Object

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

      • lats

        public double[] lats
        The coordinates of the polygon
      • lons

        public double[] lons
        The coordinates of the polygon
      • filled

        public boolean filled
        Set if the item is filled or not
      • color

        public int color
        The item color. Alpha defaults to 255 if not specified.
    • Constructor Detail

      • Shape

        public Shape()