public final class

PictureFillSymbol

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

Class Overview

A Symbol that shows a polygon area filled with a given image. If the image is smaller than the fill area, it will be tiled. The image can be used at its own size or resized with the size and width properties.

Summary

Constants
String TYPE
Public Constructors
PictureFillSymbol(PictureFillSymbol other)
Construct a new PictureFillSymbol by copying the given instance.
PictureFillSymbol(Drawable drawable)
Creates a picture fill symbol from a drawable.
PictureFillSymbol(Drawable drawable, SimpleLineSymbol outline)
PictureFillSymbol(JsonNode node)
Instantiates a new picture fill symbol from a JSON node.
Public Methods
Symbol copy()
Drawable getDrawable()
Returns the image used to create the fill.
float getHeight()
Returns the height of a tile.
float getOffsetX()
The offset specifies the distance between top left most point of the polygon to be filled and the top left hand corner of the image.
float getOffsetY()
The offset specifies the distance between top left most point of the polygon to be filled and the top left hand corner of the image.
float getWidth()
Returns the width of a tile.
PictureFillSymbol setOffsetX(float offsetX)
The offset specifies the distance between top left most point of the polygon to be filled and the top left hand corner of the image.
PictureFillSymbol setOffsetY(float offsetY)
The offset specifies the distance between top left most point of the polygon to be filled and the top left hand corner of the image.
PictureFillSymbol setSize(int width, int height)
Sets the size.
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

Constant Value: "esriPFS"

Public Constructors

public PictureFillSymbol (PictureFillSymbol other)

Construct a new PictureFillSymbol by copying the given instance.

Parameters
other PictureFillSymbol: PictureFillSymbol to copy.
Throws
Exception

public PictureFillSymbol (Drawable drawable)

Creates a picture fill symbol from a drawable.

Parameters
drawable Drawable: the image to use

public PictureFillSymbol (Drawable drawable, SimpleLineSymbol outline)

Parameters
drawable Drawable
outline SimpleLineSymbol

public PictureFillSymbol (JsonNode node)

Instantiates a new picture fill symbol from a JSON node.

Parameters
node JsonNode: the node
Throws
Exception the exception

Public Methods

public Symbol copy ()

Returns
Symbol
Throws
Exception

public Drawable getDrawable ()

Returns the image used to create the fill.

Returns
Drawable

public float getHeight ()

Returns the height of a tile.

Returns
float

public float getOffsetX ()

The offset specifies the distance between top left most point of the polygon to be filled and the top left hand corner of the image.

Returns
float the offset along the x-axis in pixels.

public float getOffsetY ()

The offset specifies the distance between top left most point of the polygon to be filled and the top left hand corner of the image.

Returns
float the offset along y-axis in pixels.

public float getWidth ()

Returns the width of a tile.

Returns
float

public PictureFillSymbol setOffsetX (float offsetX)

The offset specifies the distance between top left most point of the polygon to be filled and the top left hand corner of the image.

Parameters
offsetX float: the offset along x-axis in pixels.
Returns
PictureFillSymbol

public PictureFillSymbol setOffsetY (float offsetY)

The offset specifies the distance between top left most point of the polygon to be filled and the top left hand corner of the image.

Parameters
offsetY float: the offset along y-axis in pixels.
Returns
PictureFillSymbol

public PictureFillSymbol setSize (int width, int height)

Sets the size.

Parameters
width int: the width
height int: the height
Returns
PictureFillSymbol

public String toJson ()

Returns
String
Throws
Exception