public abstract class

FillSymbol

extends Object
implements Symbol
java.lang.Object
   ↳ com.esri.core.symbol.FillSymbol
Known Direct Subclasses

Class Overview

Base class for polygon symbols. Use the subclass, SimpleFillSymbol, to draw polygon features on the graphics layer. The fill symbol can have an optional outline, which is defined by a line symbol.

Summary

Public Constructors
FillSymbol(JsonNode node)
Instantiates an object of FillSymbol from a JsonNode.
FillSymbol()
Instantiates an empty object of FillSymbol.
Public Methods
boolean equals(Object obj)
static FillSymbol fromJson(String json)
For internal use only
int getAlpha()
Helper to getColor() that just returns the color's alpha value.
int getColor()
Returns the color to fill the polygon with.
LineSymbol getOutline()
Returns the outline of the polygon.
int hashCode()
FillSymbol setAlpha(int alpha)
Sets the symbol transparency.
FillSymbol setColor(int color)
Sets the color to fill the polygon with.
FillSymbol setOutline(LineSymbol outline)
Sets the outline of the polygon.
[Expand]
Inherited Methods
From class java.lang.Object
From interface com.esri.core.symbol.Symbol

Public Constructors

public FillSymbol (JsonNode node)

Instantiates an object of FillSymbol from a JsonNode.

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

public FillSymbol ()

Instantiates an empty object of FillSymbol.

Public Methods

public boolean equals (Object obj)

Parameters
obj Object
Returns
boolean

public static FillSymbol fromJson (String json)

For internal use only

Parameters
json String
Returns
FillSymbol
Throws
Exception

public int getAlpha ()

Helper to getColor() that just returns the color's alpha value. This is the same as calling getColor() >>> 24. It always returns a value between 0 (completely transparent) and 255 (completely opaque).

Returns
int the alpha component of the symbol's color.

public int getColor ()

Returns the color to fill the polygon with. The color is a 32bit value containing alpha as well as RGB. This 32bit value is not pre-multiplied, meaning that its alpha can be any value, regardless of the values of RGB. See the Color class for more details.

Returns
int the color in RGB color value.

public LineSymbol getOutline ()

Returns the outline of the polygon.

Returns
LineSymbol the outline of the polygon.

public int hashCode ()

Returns
int

public FillSymbol setAlpha (int alpha)

Sets the symbol transparency.

Parameters
alpha int: the alpha component of the symbol's color.
Returns
FillSymbol

See also:

public FillSymbol setColor (int color)

Sets the color to fill the polygon with. The color is a 32bit value containing alpha as well as RGB. This 32bit value is not pre-multiplied, meaning that its alpha can be any value, regardless of the values of RGB. See the Color class for more details.

Parameters
color int: the color in RGB color value.
Returns
FillSymbol

public FillSymbol setOutline (LineSymbol outline)

Sets the outline of the polygon.

Parameters
outline LineSymbol: the outline symbol.
Returns
FillSymbol