Class: TAttMarkerHandler

TAttMarkerHandler(args)

new TAttMarkerHandler(args)

Handle for marker attributes

Parameters:
Name Type Description
args object

attributes, see TAttMarkerHandler#setArgs for details

Source:

Methods

apply()

Apply marker styles to created element

Source:

change(color, style, size)

Change marker attributes.

Parameters:
Name Type Description
color string

marker color

style number

marker style

size number

marker size

Source:

create(x, y) → {string}

Create marker path for given position.

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

Parameters:
Name Type Description
x number

first coordinate

y number

second coordinate

Source:
Returns:

path string

Type
string

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:

setArgs(args)

Set marker attributes.

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

Source: