org.opengts.war.tools
Class MapShape

java.lang.Object
  extended by org.opengts.war.tools.MapShape

public class MapShape
extends java.lang.Object


Nested Class Summary
static class MapShape.ShapeType
          Shape Types
 
Field Summary
static ColorTools.RGB DEFAULT_COLOR
           
static MapShape.ShapeType DEFAULT_SHAPE_TYPE
           
 
Constructor Summary
MapShape(java.lang.String name, MapShape.ShapeType type, double radiusM, GeoPoint[] gp)
           
MapShape(java.lang.String name, MapShape.ShapeType type, double radiusM, java.util.List<GeoPoint> gp)
           
 
Method Summary
 ColorTools.RGB getColor()
           
 java.lang.String getColorString()
           
 java.lang.String getDescription()
           
 java.lang.String getName()
           
 java.util.List<GeoPoint> getPoints()
           
 java.lang.String getPointsString()
           
 double getRadiusMeters()
           
static MapShape.ShapeType getShapeType(java.lang.String type)
           
static MapShape.ShapeType getShapeType(java.lang.String type, MapShape.ShapeType dft)
           
 MapShape.ShapeType getType()
           
 boolean getZoomTo()
           
 boolean isZoomTo()
           
 void setColor(ColorTools.RGB color)
           
 void setColor(java.lang.String color)
           
 void setDescription(java.lang.String desc)
           
 void setName(java.lang.String name)
           
 void setPoints(GeoPoint[] gp)
           
 void setPoints(java.util.List<GeoPoint> gp)
           
 void setRadiusMeters(double radius)
           
 void setType(MapShape.ShapeType type)
           
 void setZoomTo(boolean zoom)
           
 java.lang.String toLegacyZoomRegion()
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

DEFAULT_SHAPE_TYPE

public static final MapShape.ShapeType DEFAULT_SHAPE_TYPE

DEFAULT_COLOR

public static final ColorTools.RGB DEFAULT_COLOR
Constructor Detail

MapShape

public MapShape(java.lang.String name,
                MapShape.ShapeType type,
                double radiusM,
                GeoPoint[] gp)

MapShape

public MapShape(java.lang.String name,
                MapShape.ShapeType type,
                double radiusM,
                java.util.List<GeoPoint> gp)
Method Detail

getShapeType

public static MapShape.ShapeType getShapeType(java.lang.String type,
                                              MapShape.ShapeType dft)

getShapeType

public static MapShape.ShapeType getShapeType(java.lang.String type)

setName

public void setName(java.lang.String name)

getName

public java.lang.String getName()

setDescription

public void setDescription(java.lang.String desc)

getDescription

public java.lang.String getDescription()

setType

public void setType(MapShape.ShapeType type)

getType

public MapShape.ShapeType getType()

setRadiusMeters

public void setRadiusMeters(double radius)

getRadiusMeters

public double getRadiusMeters()

setPoints

public void setPoints(GeoPoint[] gp)

setPoints

public void setPoints(java.util.List<GeoPoint> gp)

getPoints

public java.util.List<GeoPoint> getPoints()

getPointsString

public java.lang.String getPointsString()

getColorString

public java.lang.String getColorString()

getColor

public ColorTools.RGB getColor()

setColor

public void setColor(ColorTools.RGB color)

setColor

public void setColor(java.lang.String color)

isZoomTo

public boolean isZoomTo()

getZoomTo

public boolean getZoomTo()

setZoomTo

public void setZoomTo(boolean zoom)

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object

toLegacyZoomRegion

public java.lang.String toLegacyZoomRegion()