java.lang.Object
com.flexganttfx.model.layout.EqualLinesManager<R,A>
- Typparameter:
R- the type of the rowA- 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 -
Methodenübersicht
Modifizierer und TypMethodeBeschreibungfinal doublegetLineHeight(int lineIndex, double rowHeight) Returns the height of the line with the given index.intgetLineIndex(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 doublegetLineLocation(int lineIndex, double rowHeight) Returns the location of the line with the given index.final RgetRow()Returns the row for which the manager is used.
-
Konstruktordetails
-
EqualLinesManager
Constructs a new lines manager for the given row. The manager attaches listeners toRow.lineCountProperty()andRow.heightProperty()in order to recalculate the line locations and heights.- Parameter:
row- the row for which to use the manager
-
-
Methodendetails
-
getRow
-
getLineLocation
public final double getLineLocation(int lineIndex, double rowHeight) throws IllegalLineIndexException Beschreibung aus Schnittstelle kopiert:LinesManagerReturns the location of the line with the given index. In most cases the value of the location is somewhere between 0 andRow.getHeight(). Lines are free to overlap each other.- Angegeben von:
getLineLocationin SchnittstelleLinesManager<R extends Row<?,?, A>> - Parameter:
lineIndex- the index of the linerowHeight- 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
Beschreibung aus Schnittstelle kopiert:LinesManagerReturns 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:
getLineLayoutin SchnittstelleLinesManager<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
Beschreibung aus Schnittstelle kopiert:LinesManagerReturns the height of the line with the given index. In most cases the height is somewhere between 0 andRow.getHeight().- Angegeben von:
getLineHeightin SchnittstelleLinesManager<R extends Row<?,?, A>> - Parameter:
lineIndex- the index of the linerowHeight- 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
Beschreibung aus Schnittstelle kopiert:LinesManagerReturns the line index for the given activity. This method is responsible for placing activities on different lines.- Angegeben von:
getLineIndexin SchnittstelleLinesManager<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
-