com.nchart3d.NChart.NChartScaleLegendDelegate Interface Reference

The NChartScaleLegendDelegate interface provides methods to manage the contents of the scale legend. More...

Public Member Functions

String stringRepresentationOfRange (Number from, Number to, NChartScaleLegend scaleLegend)
 Get the string representation of the scale legend entry by given values. More...
 

Detailed Description

The NChartScaleLegendDelegate interface provides methods to manage the contents of the scale legend.

Member Function Documentation

String com.nchart3d.NChart.NChartScaleLegendDelegate.stringRepresentationOfRange ( Number  from,
Number  to,
NChartScaleLegend  scaleLegend 
)

Get the string representation of the scale legend entry by given values.

Parameters
scaleLegend- scale legend to get the entry's string representation for.
from- value staring the range represented by this entry. For example, if the range is [10; 20], 10 is passed. If the left boundary of the range is open, e.g. (-inf; 20], null is passed.
to- value ending the range covered by this entry. For example, if the range is [10; 20], 20 is passed. If the right boundary of the range is open, e.g. [10; +inf), null is passed.
Returns
string representation of the entry. For example, it may be "10 .. 20", or "10 < x < 20". If null is returned (or no delegate is attached to the legend, or method is not implemented), the default conversion is used. Assuming the values in the scale are 10, 20, 30, the default conversion looks like this: "> 30", "20 - 30", "10 - 20", "< 10".