Options
All
  • Public
  • Public/Protected
  • All
Menu

A lines manager is used to control the layout of lines inside a row. Activities located on different lines do not overlap each other, except if the lines themselves overlap each other. Each line can have its own height and a location within the row. Each line can also have its own Layout . By using lines and layouts it is possible to display activities that belong to the same row in different ways (see ChartLayout, AgendaLayout, GanttLayout).

since

1.0

Type parameters

  • A: Activity

    the type of the activities that will be shown on the lines

Hierarchy

  • LinesManager

Implemented by

Index

Methods

getLineHeight

  • getLineHeight(lineIndex: number, rowHeight: number): number
  • Returns the height of the line with the given index. In most cases the height is somewhere between 0 and Row.getHeight().

    throws

    IllegalLineIndexException - if no line with the given index exists

    since

    1.0

    Parameters

    • lineIndex: number

      the index of the line

    • rowHeight: number

      the height of the row where the line is located

    Returns number

    the height of the given line

getLineIndex

  • getLineIndex(activity: A): number
  • Returns the line index for the given activity. This method is responsible for placing activities on different lines.

    since

    1.0

    Parameters

    • activity: A

      the activity for which a line index is requested

    Returns number

    the line index of the given activity

getLineLayout

  • getLineLayout(lineIndex: number): Layout
  • Returns the layout for the line with the given line index. A row and each line within a row can have their own layout.

    throws

    IllegalLineIndexException - if no line with the given index exists

    since

    1.0

    Parameters

    • lineIndex: number

      the index of the line

    Returns Layout

    the layout of the given line

getLineLocation

  • getLineLocation(lineIndex: number, rowHeight: number): number
  • Returns the location of the line with the given index. In most cases the value of the location is somewhere between 0 and Row.getHeight(). Lines are free to overlap each other.

    throws

    IllegalLineIndexException - if no line with the given index exists

    since

    1.0

    Parameters

    • lineIndex: number

      the index of the line

    • rowHeight: number

      the height of the row where the line is located

    Returns number

    the location of the given line (y-coordinate)