com.esri.core.symbol
Class SimpleFillSymbol

java.lang.Object
  extended by com.esri.core.symbol.FillSymbol
      extended by com.esri.core.symbol.SimpleFillSymbol
All Implemented Interfaces:
PaintSymbol, Symbol, Serializable

public class SimpleFillSymbol
extends FillSymbol

Used to draw polygon features on the graphics layer using simple patterns. SimpleFillSymbol can be solid, transparent, and so on. In addition, the symbol can optionally have an outline, which is defined by a line symbol.

See Also:
Serialized Form

Field Summary
static String TYPE
           
 
Constructor Summary
SimpleFillSymbol(int color)
          Instantiates an object of SimpleFillSymbol with the given color.
SimpleFillSymbol(org.codehaus.jackson.JsonNode node)
          Instantiates an object of SimpleFillSymbol from a JsonNode.
 
Method Summary
 boolean equals(Object obj)
           
 int hashCode()
           
 String toJson()
          Converts the symbol to a Json String.
 android.graphics.Paint toPaint(android.graphics.Paint p)
          Returns the symbol as a Paint object.
 
Methods inherited from class com.esri.core.symbol.FillSymbol
getAlpha, getColor, getOutline, setAlpha, setColor, setOutline
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

TYPE

public static final String TYPE
See Also:
Constant Field Values
Constructor Detail

SimpleFillSymbol

public SimpleFillSymbol(org.codehaus.jackson.JsonNode node)
                 throws Exception
Instantiates an object of SimpleFillSymbol from a JsonNode.

Parameters:
node - the SimpleFillSymbol node.
Throws:
Exception

SimpleFillSymbol

public SimpleFillSymbol(int color)
Instantiates an object of SimpleFillSymbol with the given color.

Parameters:
color - an ARGB color.
Method Detail

toPaint

public android.graphics.Paint toPaint(android.graphics.Paint p)
Description copied from interface: PaintSymbol
Returns the symbol as a Paint object.

Parameters:
p - override the given paint object instead of create a new paint object.
Returns:
the symbol as a paint object.

toJson

public String toJson()
              throws Exception
Description copied from interface: Symbol
Converts the symbol to a Json String.

Throws:
Exception

hashCode

public int hashCode()
Overrides:
hashCode in class FillSymbol

equals

public boolean equals(Object obj)
Overrides:
equals in class FillSymbol


Copyright © 2010. All Rights Reserved.