TGraphPainter

TGraphPainter

(private) new TGraphPainter()

Painter for TGraph object.

Source:

Methods

(private) _updateMembers()

Update object members

Source:

appendExclusion()

append exclusion area to created path

Source:

appendQQ()

append TGraphQQ part

Source:

canOptimize()

Returns true if graph drawing can be optimize

Source:

canZoomInside()

Checks if it makes sense to zoom inside specified axis range

Description:
  • allow to zoom TGraph only when at least one point in the range

Source:

cleanup()

Cleanup graph painter

Source:

clickButton()

Process click on graph-defined buttons

Source:

createBins()

Create bins for TF1 drawing

Source:

createGraphDrawAttributes()

Create necessary histogram draw attributes

Source:

createHistogram(set_xopt, set_yopt)

Create histogram for graph

Description:
  • graph bins should be created when calling this function

Source:
Parameters:
Name Type Attributes Description
set_x boolean <optional>

set X axis range

set_y boolean <optional>

set Y axis range

createStat()

Create stat box

Source:

decodeOptions()

Decode options

Source:

(async, private) drawAxisHisto()

Draw axis histogram

Source:

(async, private) drawAxisHisto()

Draw axis histogram

Source:

drawBins()

draw TGraph bins with specified options

Description:
  • Can be called several times

Source:

(private) drawBins3D()

Draw TGraph points in 3D

Source:

drawGraph()

draw TGraph

Source:

(private) executeMenuCommand()

Execute menu command

Source:

extractGmeErrors()

Extract errors for TGraphMultiErrors

Source:

extractTooltip()

Provide tooltip at specified point

Source:

extractTooltipForPath()

Provide tooltip at specified point for path-based drawing

Source:

fillContextMenuItems()

Fill context menu

Source:

fillStatistic()

Fill statistic

Source:

fillWebObjectOptions()

Fill option object used in TWebCanvas

Source:

findBestBin()

Find best bin index for specified point

Source:

findFunc()

Find TF1/TF2 in TGraph list of functions

Source:

findStat()

Find stat box in TGraph list of functions

Source:

getGraph()

Return drawn graph object

Source:

getHistRangeMargin()

Return margins for histogram ranges

Source:

getHistogram()

Return histogram object used for axis drawings

Source:

getTooltips()

Returns tooltip for specified bin

Source:

get_gme()

Returns object if this drawing TGraphMultiErrors object

Source:

get_main()

Provide frame painter for graph

Description:
  • If not exists, emulate its behaviour

Source:

moveDrag()

Perform moving

Source:

moveEnabled()

Check if graph moving is enabled

Source:

moveEnd()

Complete moving

Source:

moveStart()

Start moving of TGraph

Source:

needDrawFunc()

Check if such function should be drawn directly

Source:

optimizeBins()

Returns optimized bins - if optimization enabled

Source:

processTooltipEvent()

Process tooltip event

Source:

(async) redraw() → {Promise}

Redraw graph

Description:
  • may redraw histogram which was used to draw axes

Source:
Returns:

for ready

Type
Promise

setHistogram()

Set histogram object to graph

Source:

showTooltip()

Show tooltip

Source:

showTooltipForPath()

Show tooltip for path drawing

Source:

testEditable()

Check editable flag for TGraph

Description:
  • if arg specified changes or toggles editable flag

Source:

unzoomUserRange()

Check if user range can be unzommed

Description:
  • Used when graph points covers larger range than provided histogram

Source:

updateObject()

Update TGraph object

Source:

(async, private, static) _drawGraph()

Draw TGraph

Source: