org.opengts.war.tools
Class MapShape
java.lang.Object
org.opengts.war.tools.MapShape
public class MapShape
- extends java.lang.Object
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
DEFAULT_SHAPE_TYPE
public static final MapShape.ShapeType DEFAULT_SHAPE_TYPE
DEFAULT_COLOR
public static final ColorTools.RGB DEFAULT_COLOR
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)
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()