Class: TBasePainter

JSROOT. TBasePainter

new JSROOT.TBasePainter()

Basic painter class.

Methods

Generic method to cleanup painter

get_main_id()

Returns string with value of main element id attribute

if main element does not have id, it will be generated

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(is_direct){object}

access to main HTML element used for drawing - typically

element

if main element was layouted, returns main element inside layout

Name Type Description
is_direct string

if 'origin' specified, returns original element even if actual drawing moved to some other place

Returns:
Type Description
object d3.select for main element for drawing, defined with this.divid.

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