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

Nested Class Summary
static class SimpleFillSymbol.Style
          The fill style.
 
Field Summary
static String TYPE
           
 
Constructor Summary
SimpleFillSymbol(Color color)
          Instantiates an object of SimpleFillSymbol with the given color.
SimpleFillSymbol(Color color, SimpleLineSymbol simpleLineSymbol)
          Instantiates an object of SimpleFillSymbol with given color and line symbol.
SimpleFillSymbol(Color color, SimpleLineSymbol simpleLineSymbol, SimpleFillSymbol.Style style)
          Instantiates an object of SimpleFillSymbol with given color, line symbol, and style of fill.
SimpleFillSymbol(org.codehaus.jackson.JsonNode node)
          Instantiates an object of SimpleFillSymbol from a JsonNode.
 
Method Summary
 Symbol copy()
          Gets a copy of this Symbol object.
 boolean equals(Object obj)
           
 SimpleFillSymbol.Style getStyle()
          Gets the fill style.
 int hashCode()
           
 void setStyle(SimpleFillSymbol.Style style)
          Sets the fill style.
 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
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(Color color)
Instantiates an object of SimpleFillSymbol with the given color.

Parameters:
color - an ARGB color.

SimpleFillSymbol

public SimpleFillSymbol(Color color,
                        SimpleLineSymbol simpleLineSymbol)
Instantiates an object of SimpleFillSymbol with given color and line symbol.

Parameters:
color - color to be used in fill.
simpleLineSymbol - outline symbol.

SimpleFillSymbol

public SimpleFillSymbol(Color color,
                        SimpleLineSymbol simpleLineSymbol,
                        SimpleFillSymbol.Style style)
Instantiates an object of SimpleFillSymbol with given color, line symbol, and style of fill.

Parameters:
color - color to be used in fill.
simpleLineSymbol - outline symbol.
style - fill style.
Method Detail

setStyle

public void setStyle(SimpleFillSymbol.Style style)
Sets the fill style.

Parameters:
style - one of the SimpleFillSymbol.Style.

getStyle

public SimpleFillSymbol.Style getStyle()
Gets the fill style.

Returns:
current fill style.

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.