IPatternFormat

public interface IPatternFormat

Represents a pattern to fill a shape.

Methods

MethodDescription
getPatternStyle()Returns or sets the pattern style.
setPatternStyle(byte value)Returns or sets the pattern style.
getForeColor()Returns the foreground pattern color.
getBackColor()Returns the background pattern color.
getTileImage(Integer background, Integer foreground)Creates a tile image for the pattern fill with a specified colors.
getTile(Integer background, Integer foreground)Creates a tile image for the pattern fill with a specified colors.
getTileImage(Integer styleColor)Creates a tile image for the pattern fill.
getTile(Integer styleColor)Creates a tile image for the pattern fill.

getPatternStyle()

public abstract byte getPatternStyle()

Returns or sets the pattern style. Read/write PatternStyle.

Returns: byte

setPatternStyle(byte value)

public abstract void setPatternStyle(byte value)

Returns or sets the pattern style. Read/write PatternStyle.

Parameters:

ParameterTypeDescription
valuebyte

getForeColor()

public abstract IColorFormat getForeColor()

Returns the foreground pattern color. Read-only IColorFormat.

Returns: IColorFormat

getBackColor()

public abstract IColorFormat getBackColor()

Returns the background pattern color. Read-only IColorFormat.

Returns: IColorFormat

getTileImage(Integer background, Integer foreground)

public abstract Bitmap getTileImage(Integer background, Integer foreground)

Creates a tile image for the pattern fill with a specified colors.

Parameters:

ParameterTypeDescription
backgroundjava.lang.IntegerThe background java.lang.Integer for the pattern.
foregroundjava.lang.IntegerThe foreground java.lang.Integer for the pattern.

Returns: android.graphics.Bitmap - Tile android.graphics.Bitmap.

getTile(Integer background, Integer foreground)

public abstract IImage getTile(Integer background, Integer foreground)

Creates a tile image for the pattern fill with a specified colors.

Parameters:

ParameterTypeDescription
backgroundjava.lang.IntegerThe background java.lang.Integer for the pattern.
foregroundjava.lang.IntegerThe foreground java.lang.Integer for the pattern.

Returns: IImage - Tile android.graphics.Bitmap.

getTileImage(Integer styleColor)

public abstract Bitmap getTileImage(Integer styleColor)

Creates a tile image for the pattern fill.

Parameters:

ParameterTypeDescription
styleColorjava.lang.IntegerThe default java.lang.Integer, defined in ShapeEx’s StyleEx object. Fill’s colors can depend on this.

Returns: android.graphics.Bitmap - Tile android.graphics.Bitmap.

getTile(Integer styleColor)

public abstract IImage getTile(Integer styleColor)

Creates a tile image for the pattern fill.

Parameters:

ParameterTypeDescription
styleColorjava.lang.IntegerThe default java.lang.Integer, defined in ShapeEx’s StyleEx object. Fill’s colors can depend on this.

Returns: IImage - Tile android.graphics.Bitmap.