TAttFillHandler

TAttFillHandler

(private) new TAttFillHandler(args)

Handle for fill attributes

Source:
Parameters:
Name Type Description
args object

arguments see TAttFillHandler#setArgs for more info

Properties
Name Type Attributes Default Description
kind number <optional>
2

1 means object drawing where combination fillcolor == 0 and fillstyle == 1001 means no filling, 2 means all other objects where such combination is white-color filling

Methods

apply()

Apply fill style to selection

Source:

change(color, pattern, svg, color_as_svgopt, painteropt)

Method to change fill attributes.

Source:
Parameters:
Name Type Attributes Description
color number

color index

pattern number

pattern index

svg selection

top canvas element for pattern storages

color_as_svg string <optional>

when color is string, interpret as normal SVG color

painter object <optional>

when specified, used to extract color by index

(private) createSample()

Create sample of fill pattern inside SVG

Source:

empty()

Returns true if color not specified or fill style not specified

Source:

getFillColor()

Returns fill color (or pattern url)

Source:

(private) getFillColorAlt(alternopt)

Returns fill color without pattern url.

Description:
  • If empty, alternative color will be provided

Source:
Parameters:
Name Type Attributes Description
altern string <optional>

alternative color which returned when fill color not exists

hasColor()

Returns true if fill attributes has real color

Source:

isSolid(solid_coloropt)

Check if solid fill is used, also color can be checked

Source:
Parameters:
Name Type Attributes Description
solid_color string <optional>

when specified, checks if fill color matches

(private) saveToStyle()

Save fill attributes to style

Source:

setArgs(args)

Set fill style as arguments

Source:
Parameters:
Name Type Description
args object

different arguments to set fill attributes

Properties
Name Type Attributes Description
attr object <optional>

TAttFill object

color number <optional>

color id

pattern number <optional>

filll pattern id

svg object <optional>

SVG element to store newly created patterns

color_as_svg string <optional>

color in SVG format

setOpacity()

Set fill color opacity

Source:

setSolidColor(col)

Set solid fill color as fill pattern

Source:
Parameters:
Name Type Description
col string

solid color

setUsed()

Set usage flag of attribute

Source:

(private) verifyDirectChange()

Method used when color or pattern were changed with OpenUi5 widgets

Source: