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()
void 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 the SimpleFillSymbol node.
Throws
Exception the exception

public SimpleFillSymbol (int color)

Instantiates an object of SimpleFillSymbol with the given color.

Parameters
color an ARGB color.

public SimpleFillSymbol (int color, SimpleFillSymbol.STYLE style)

Instantiates an object of SimpleFillSymbol with the given color.

Parameters
color an ARGB color.
style fill style.

public SimpleFillSymbol (SimpleFillSymbol symbol)

Clones a new SimpleFillSymbol object with the given SimpleFillSymbol.

Parameters
symbol a SimpleFillSymbol object.
Throws
Exception the exception

Public Methods

public Symbol copy ()

Throws
Exception

public boolean equals (Object obj)

public SimpleFillSymbol.STYLE getStyle ()

Gets the fill style.

Returns
  • current fill style.

public int hashCode ()

public void setStyle (SimpleFillSymbol.STYLE style)

Sets the fill style.

Parameters
style one of the SimpleFillSymbol.STYLE.

public String toJson ()

Throws
Exception