SimplePolygonStyle

public class SimplePolygonStyle extends Style implements ITextStyle

Fields

JSON_FILL_KEY

protected static final String JSON_FILL_KEY

mField

protected String mField

mFill

protected boolean mFill

mText

protected String mText

mTextSize

protected Float mTextSize

Constructors

SimplePolygonStyle

public SimplePolygonStyle()

SimplePolygonStyle

public SimplePolygonStyle(int color, int outColor)

Methods

appendPath

protected void appendPath(Path polygonPath, List<GeoPoint> points)

clone

public SimplePolygonStyle clone()

drawPolygon

public void drawPolygon(GeoPolygon polygon, GISDisplay display)

drawText

protected void drawText(Float scaledTextSize, GeoPoint center, GISDisplay display)

fromJSON

public void fromJSON(JSONObject jsonObject)

getField

public String getField()

getPath

protected Path getPath(GeoPolygon polygon)

getText

public String getText()

getTextSize

public Float getTextSize()

isFill

public boolean isFill()

onDraw

public void onDraw(GeoGeometry geoGeometry, GISDisplay display)

setField

public void setField(String field)

setFill

public void setFill(boolean fill)

setText

public void setText(String text)

setTextSize

public void setTextSize(Float textSize)

toJSON

public JSONObject toJSON()