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:
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.
SimpleFillSymbol(SimpleFillSymbol symbol)
          Clones a new SimpleFillSymbol object with the given SimpleFillSymbol.
 
Method Summary
 Symbol copy()
          Gets a copy of this Symbol object.
 boolean equals(Object obj)
           
 int hashCode()
           
 String toJson()
          Converts the symbol to a Json String.
 
Methods inherited from class com.esri.core.symbol.FillSymbol
getAlpha, getColor, getOutline, setAlpha, setColor, setOutline
 
Methods inherited from class java.lang.Object
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.

SimpleFillSymbol

public SimpleFillSymbol(SimpleFillSymbol symbol)
                 throws Exception
Clones a new SimpleFillSymbol object with the given SimpleFillSymbol.

Parameters:
symbol - a SimpleFillSymbol object.
Throws:
Exception
Method Detail

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

copy

public Symbol copy()
            throws Exception
Description copied from interface: Symbol
Gets a copy of this Symbol object.

Returns:
Symbol object
Throws:
Exception


Copyright © 2012. All Rights Reserved.