Klasse EqualLinesManager<R extends Row<?,?,A>, A extends Activity>

java.lang.Object
com.flexganttfx.model.layout.EqualLinesManager<R,A>
Typparameter:
R - the type of the row
A - the type of the activities
Alle implementierten Schnittstellen:
LinesManager<A>
Bekannte direkte Unterklassen:
AutoLinesManager

public class EqualLinesManager<R extends Row<?,?,A>, A extends Activity> extends Object implements LinesManager<A>
A lines manager that equally distributes the available row height to all lines.
Seit:
1.0
Siehe auch:
  • Konstruktorübersicht

    Konstruktoren
    Konstruktor
    Beschreibung
    Constructs a new lines manager for the given row.
  • Methodenübersicht

    Modifizierer und Typ
    Methode
    Beschreibung
    final double
    getLineHeight(int lineIndex, double rowHeight)
    Returns the height of the line with the given index.
    int
    getLineIndex(A activity)
    Returns the line index for the given activity.
    getLineLayout(int lineIndex)
    Returns the layout for the line with the given line index.
    final double
    getLineLocation(int lineIndex, double rowHeight)
    Returns the location of the line with the given index.
    final R
    Returns the row for which the manager is used.

    Von Klasse geerbte Methoden java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Konstruktordetails

    • EqualLinesManager

      public EqualLinesManager(R row)
      Constructs a new lines manager for the given row. The manager attaches listeners to Row.lineCountProperty() and Row.heightProperty() in order to recalculate the line locations and heights.
      Parameter:
      row - the row for which to use the manager
  • Methodendetails

    • getRow

      public final R getRow()
      Returns the row for which the manager is used.
      Gibt zurück:
      the row
    • getLineLocation

      public final double getLineLocation(int lineIndex, double rowHeight) throws IllegalLineIndexException
      Beschreibung aus Schnittstelle kopiert: LinesManager
      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.
      Angegeben von:
      getLineLocation in Schnittstelle LinesManager<R extends Row<?,?,A>>
      Parameter:
      lineIndex - the index of the line
      rowHeight - the height of the row where the line is located
      Gibt zurück:
      the location of the given line (y-coordinate)
      Löst aus:
      IllegalLineIndexException - if no line with the given index exists
    • getLineLayout

      public Layout getLineLayout(int lineIndex) throws IllegalLineIndexException
      Beschreibung aus Schnittstelle kopiert: LinesManager
      Returns the layout for the line with the given line index. A row and each line within a row can have their own layout.
      Angegeben von:
      getLineLayout in Schnittstelle LinesManager<R extends Row<?,?,A>>
      Parameter:
      lineIndex - the index of the line
      Gibt zurück:
      the layout of the given line
      Löst aus:
      IllegalLineIndexException - if no line with the given index exists
    • getLineHeight

      public final double getLineHeight(int lineIndex, double rowHeight) throws IllegalLineIndexException
      Beschreibung aus Schnittstelle kopiert: LinesManager
      Returns the height of the line with the given index. In most cases the height is somewhere between 0 and Row.getHeight().
      Angegeben von:
      getLineHeight in Schnittstelle LinesManager<R extends Row<?,?,A>>
      Parameter:
      lineIndex - the index of the line
      rowHeight - the height of the row where the line is located
      Gibt zurück:
      the height of the given line
      Löst aus:
      IllegalLineIndexException - if no line with the given index exists
    • getLineIndex

      public int getLineIndex(A activity)
      Beschreibung aus Schnittstelle kopiert: LinesManager
      Returns the line index for the given activity. This method is responsible for placing activities on different lines.
      Angegeben von:
      getLineIndex in Schnittstelle LinesManager<R extends Row<?,?,A>>
      Parameter:
      activity - the activity for which a line index is requested
      Gibt zurück:
      the line index of the given activity