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)
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()
void setAlpha(int alpha)
Sets the symbol transparency.
void setColor(int color)
Sets the color to fill the polygon with.
void 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 the FillSymbol node.
Throws
Exception the exception

public FillSymbol ()

Instantiates an empty object of FillSymbol.

Public Methods

public boolean equals (Object obj)

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
  • 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
  • the color in RGB color value.

public LineSymbol getOutline ()

Returns the outline of the polygon.

Returns
  • the outline of the polygon.

public int hashCode ()

public void setAlpha (int alpha)

Sets the symbol transparency.

Parameters
alpha the alpha component of the symbol's color.
See Also

public void 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 the color in RGB color value.

public void setOutline (LineSymbol outline)

Sets the outline of the polygon.

Parameters
outline the outline symbol.