Class FillSymbol

java.lang.Object
com.esri.arcgisruntime.symbology.Symbol
com.esri.arcgisruntime.symbology.FillSymbol
All Implemented Interfaces:
JsonSerializable
Direct Known Subclasses:
PictureFillSymbol, SimpleFillSymbol

public abstract class FillSymbol extends Symbol
A fill symbol defines the appearance of features and graphics that are based on polygon geometries such as countries, provinces, or habitats.

FillSymbol is the base class for different symbols, such as SimpleFillSymbol and PictureFillSymbol. A FillSymbol can also be used in combination with a LineSymbol to add an outline to the fill symbol.

You can specify the symbology of a single graphic using Graphic.setSymbol(Symbol). Alternatively, you can create a Renderer that contains a collection of symbols and rules. Each rule determines which symbol is applied to a graphic or feature depending on its attribute values. To symbolize graphics, apply a renderer to the GraphicsOverlay, and to symbolize features, apply the renderer to FeatureLayer.

Since:
100.0.0
See Also:
  • Property Details

  • Method Details

    • colorProperty

      public ObjectProperty<Color> colorProperty()
      The interior color of the fill symbol.

      Attempting to set the color to null will throw a NullPointerException exception.

      Returns:
      the color property
      Since:
      200.0.0
      See Also:
    • getColor

      public Color getColor()
      Gets the value of the color property.
      Property description:
      The interior color of the fill symbol.

      Attempting to set the color to null will throw a NullPointerException exception.

      Returns:
      the value of the color property
      Since:
      200.0.0
      See Also:
    • setColor

      public void setColor(Color color)
      Sets the value of the color property.
      Property description:
      The interior color of the fill symbol.

      Attempting to set the color to null will throw a NullPointerException exception.

      Parameters:
      color - the value for the color property
      Since:
      200.0.0
      See Also:
    • setColor

      @Deprecated(since="200.0.0", forRemoval=true) public void setColor(int color)
      Deprecated, for removal: This API element is subject to removal in a future version.
      as of 200.0.0, replaced by setColor(Color)
      Sets the interior color used to display this symbol.
      Parameters:
      color - an integer representing the fill color as 0xAARRGGBB
      Since:
      100.0.0
    • getOutline

      public LineSymbol getOutline()
      Gets the line, with a specific color and width, to be applied to the fill symbol.
      Returns:
      the outline if there is one or null otherwise
      Since:
      100.0.0
    • setOutline

      public void setOutline(LineSymbol outline)
      Sets a line, with a specific color and width, to be applied to the fill symbol.

      If the outline is set to null, then this FillSymbol will have no border attached to it.

      Parameters:
      outline - the new outline for this fill symbol, can be null
      Since:
      100.0.0