TAttMarkerHandler

TAttMarkerHandler

(private) new TAttMarkerHandler(args)

Handle for marker attributes

Source:
Parameters:
Name Type Description
args object

attributes, see TAttMarkerHandler#setArgs for details

Methods

(private) _configure()

Prepare object to create marker

Source:

apply()

Apply marker styles to created element

Source:

change(color, style, size)

Change marker attributes.

Source:
Parameters:
Name Type Description
color string

marker color

style number

marker style

size number

marker size

create(x, y) → {string}

Create marker path for given position.

Description:
  • When drawing many elementary points, created path may depend from previously produced markers.

Source:
Parameters:
Name Type Description
x number

first coordinate

y number

second coordinate

Returns:

path string

Type
string

(private) createSample(svg, width, height)

Create sample with marker in given SVG element

Source:
Parameters:
Name Type Description
svg selection

SVG element

width number

width of sample SVG

height number

height of sample SVG

empty()

returns true if marker attributes will produce empty (invisible) output

Source:

getFillColor()

get fill color

Source:

getFullSize()

Returns full size of marker

Source:

getMarkerLength()

Returns approximate length of produced marker string

Source:

getStrokeColor()

get stroke color

Source:

(private) resetPos()

Reset position, used for optimization of drawing of multiple markers

Source:

setArgs(args)

Set marker attributes.

Source:
Parameters:
Name Type Description
args object

arguments can be

Properties
Name Type Attributes Description
attr object

instance of TAttrMarker (or derived class) or

color string

color in HTML form like grb(1,4,5) or 'green'

style number

marker style

size number

marker size

refsize number <optional>

when specified and marker size < 1, marker size will be calculated relative to that size

setUsed()

Set usage flag of attribute

Source:

(private) verifyDirectChange()

Method used when color or pattern were changed with OpenUi5 widgets.

Source: