Class: TBasePainter

JSROOT. TBasePainter

new JSROOT.TBasePainter()

Basic painter class.

Methods

Generic method to cleanup painter

abstractGetObject()

Returns drawn object

RedrawObject(obj){boolean}

Updates object and readraw it

Name Type Description
obj object

new version of object, values will be updated in original object

Returns:
Type Description
boolean true if object updated and redrawn

select_main()

Returns d3.select for main element for drawing, defined with this.divid.

if main element was layouted, returns main element inside layout

SetDivId(divid)

Assign painter to specified element

base painter does not creates canvas or frames it registered in the first child element

Name Type Description
divid string | object

element ID or DOM Element