Options
All
  • Public
  • Public/Protected
  • All
Menu

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 between getMinValue() and getMaxValue(). The height of the activity will be based on the value returned by ChartActivity.getChartValue(). Activities of type HighLowChartActivity will appear as floating bars. The layout also supports the definition of minor and major chart lines drawn in the row background.

see

ChartActivity, HighLowChartActivity, Row#setLayout(Layout), Row#getLineLayout(int), LinesManager#getLineLayout(int)

since

1.2

Hierarchy

Index

Constructors

constructor

  • Constructs a new chart layout with a range of 0 to 100.

    since

    1.2

    Returns ChartLayout

Methods

getMajorTicks

  • getMajorTicks(): number[]
  • Returns the major ticks to be displayed in the row background and by the row scale.

    since

    1.2

    Returns number[]

    a list of major tick values

getMaxValue

  • getMaxValue(): number
  • Returns the maximum value that will be used for the scale and the layout of the row.

    since

    1.2

    Returns number

    the maximum value displayed by the row / line.

getMinValue

  • getMinValue(): number
  • Returns the minimum value that will be used for the scale and the layout of the row.

    since

    1.2

    Returns number

    the minimum value displayed by the row / line.

getMinorTicks

  • getMinorTicks(): number[]
  • Returns the minor ticks to be displayed in the row background and by the row scale.

    since

    1.2

    Returns number[]

    a list of minor tick values

getPadding

  • getPadding(): number
  • Returns the padding value.

    since

    1.0

    Returns number

    the padding value

isSupportingHorizontalCursorLine

  • isSupportingHorizontalCursorLine(): boolean
  • Determines if the UI should be able to show a horizontal cursor line

    since

    1.2

    Returns boolean

    true if a horizontal cursor line makes sense

setMajorTicks

  • setMajorTicks(values: number[]): void
  • Sets the major ticks to be displayed in the row background and by the row scale.

    since

    1.2

    Parameters

    • values: number[]

      the new major ticks values

    Returns void

setMaxValue

  • setMaxValue(value: number): void
  • Sets the maximum value that will be used for the scale and the layout of the row.

    since

    1.2

    Parameters

    • value: number

      the new maximum value

    Returns void

setMinValue

  • setMinValue(value: number): void
  • Sets the minimum value that will be used for the scale and the layout of the row.

    since

    1.2

    Parameters

    • value: number

      the new minimum value

    Returns void

setMinorTicks

  • setMinorTicks(values: number[]): void
  • Sets the minor ticks to be displayed in the row background and by the row scale.

    since

    1.2

    Parameters

    • values: number[]

      the new minor ticks values

    Returns void

setPadding

  • setPadding(padding: number): void
  • Sets the padding value.

    since

    1.0

    Parameters

    • padding: number

      the new padding value

    Returns void