public class

SimpleFillSymbol

extends FillSymbol
java.lang.Object
   ↳ com.esri.core.symbol.FillSymbol
     ↳ com.esri.core.symbol.SimpleFillSymbol

Class Overview

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.

Summary

Nested Classes
enum SimpleFillSymbol.STYLE The fill style. 
Constants
String TYPE The Constant TYPE.
Public Constructors
SimpleFillSymbol(JsonNode node)
Instantiates an object of SimpleFillSymbol from a JsonNode.
SimpleFillSymbol(int color)
Instantiates an object of SimpleFillSymbol with the given color.
SimpleFillSymbol(int color, SimpleFillSymbol.STYLE style)
Instantiates an object of SimpleFillSymbol with the given color.
SimpleFillSymbol(SimpleFillSymbol symbol)
Clones a new SimpleFillSymbol object with the given SimpleFillSymbol.
Public Methods
Symbol copy()
boolean equals(Object obj)
SimpleFillSymbol.STYLE getStyle()
Gets the fill style.
int hashCode()
SimpleFillSymbol setStyle(SimpleFillSymbol.STYLE style)
Sets the fill style.
String toJson()
[Expand]
Inherited Methods
From class com.esri.core.symbol.FillSymbol
From class java.lang.Object
From interface com.esri.core.symbol.Symbol

Constants

public static final String TYPE

The Constant TYPE.

Constant Value: "esriSFS"

Public Constructors

public SimpleFillSymbol (JsonNode node)

Instantiates an object of SimpleFillSymbol from a JsonNode.

Parameters
node JsonNode: the SimpleFillSymbol node.
Throws
Exception the exception

public SimpleFillSymbol (int color)

Instantiates an object of SimpleFillSymbol with the given color.

Parameters
color int: an ARGB color.

public SimpleFillSymbol (int color, SimpleFillSymbol.STYLE style)

Instantiates an object of SimpleFillSymbol with the given color.

Parameters
color int: an ARGB color.
style SimpleFillSymbol.STYLE: fill style.

public SimpleFillSymbol (SimpleFillSymbol symbol)

Clones a new SimpleFillSymbol object with the given SimpleFillSymbol.

Parameters
symbol SimpleFillSymbol: a SimpleFillSymbol object.
Throws
Exception the exception

Public Methods

public Symbol copy ()

Returns
Symbol
Throws
Exception

public boolean equals (Object obj)

Parameters
obj Object
Returns
boolean

public SimpleFillSymbol.STYLE getStyle ()

Gets the fill style.

Returns
SimpleFillSymbol.STYLE current fill style.

public int hashCode ()

Returns
int

public SimpleFillSymbol setStyle (SimpleFillSymbol.STYLE style)

Sets the fill style.

Parameters
style SimpleFillSymbol.STYLE: one of the SimpleFillSymbol.STYLE.
Returns
SimpleFillSymbol

public String toJson ()

Returns
String
Throws
Exception