Constructs a new chart layout with a range of 0 to 100.
Returns the major ticks to be displayed in the row background and by the row scale.
a list of major tick values
Returns the maximum value that will be used for the scale and the layout of the row.
the maximum value displayed by the row / line.
Returns the minimum value that will be used for the scale and the layout of the row.
the minimum value displayed by the row / line.
Returns the minor ticks to be displayed in the row background and by the row scale.
a list of minor tick values
Returns the padding value.
the padding value
Determines if the UI should be able to show a horizontal cursor line
true if a horizontal cursor line makes sense
Sets the major ticks to be displayed in the row background and by the row scale.
the new major ticks values
Sets the maximum value that will be used for the scale and the layout of the row.
the new maximum value
Sets the minimum value that will be used for the scale and the layout of the row.
the new minimum value
Sets the minor ticks to be displayed in the row background and by the row scale.
the new minor ticks values
Sets the padding value.
the new padding value
Using the chart layout class results in activities being laid out as chart bars. A series of such bars can for example be used to form a capacity profile. Activities of type
ChartActivity
will be placed on a zeroline betweengetMinValue()
andgetMaxValue()
. The height of the activity will be based on the value returned byChartActivity.getChartValue()
. Activities of typeHighLowChartActivity
will appear as floating bars. The layout also supports the definition of minor and major chart lines drawn in the row background.ChartActivity
,HighLowChartActivity
,Row#setLayout(Layout)
,Row#getLineLayout(int)
,LinesManager#getLineLayout(int)
1.2