java.lang.Object
com.flexganttfx.model.layout.EqualLinesManager<R,A>
com.flexganttfx.view.util.AutoLinesManager<R,A>
- Typparameter:
R- the type of the row that will be managedA- the type of the activities that will be managed
- Alle implementierten Schnittstellen:
LinesManager<A>
public class AutoLinesManager<R extends Row<?,?,A>, A extends Activity>
extends EqualLinesManager<R,A>
A specialized
LinesManager used for ensuring that activities will not
overlap each other. This manager will create as many inner lines as needed
and will calculate the placement of all activities on these lines.- Seit:
- 1.2
-
Konstruktorübersicht
KonstruktorenKonstruktorBeschreibungAutoLinesManager(R row, GraphicsBase<R> graphics) Constructs a new automatic lines manager. -
Methodenübersicht
Modifizierer und TypMethodeBeschreibungfinal GraphicsBase<R> Returns the graphics view where the manager will be used.final intgetLineIndex(A activity) Returns the line index for the given activity.final voidlayout()Triggers a layout of the activities and calculates the line count for the row.final voidSets a filter that will be used in combination with aResolverinstance to figure out which activities are relevant for the calculation of overlapping activities (clusters).Von Klasse geerbte Methoden com.flexganttfx.model.layout.EqualLinesManager
getLineHeight, getLineLayout, getLineLocation, getRow
-
Konstruktordetails
-
AutoLinesManager
Constructs a new automatic lines manager. The constructor requires a reference to the graphics view to lookup various parameters that are needed when the manager queries the activity repository of the row (e.g. the currently displayed temporal unit and the list of layers).- Parameter:
row- the managed rowgraphics- the graphics view where the manager will be used- Seit:
- 1.2
-
-
Methodendetails
-
getGraphics
Returns the graphics view where the manager will be used.- Gibt zurück:
- the graphics view
- Seit:
- 1.2
-
setFilter
Sets a filter that will be used in combination with aResolverinstance to figure out which activities are relevant for the calculation of overlapping activities (clusters). If the predicate returns false then the activity will not be considered when creating the clusters.- Parameter:
filter- the filter
-
layout
public final void layout()Triggers a layout of the activities and calculates the line count for the row.- Seit:
- 1.2
-
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>> - Setzt außer Kraft:
getLineIndexin KlasseEqualLinesManager<R extends Row<?,?, A>, A extends Activity> - Parameter:
activity- the activity for which a line index is requested- Gibt zurück:
- the line index of the given activity
-