Klasse Cluster<A extends Activity>
java.lang.Object
impl.com.flexganttfx.skin.util.Cluster<A>
- Typparameter:
A- the type of the activities
-
Konstruktorübersicht
Konstruktoren -
Methodenübersicht
Modifizierer und TypMethodeBeschreibungvoidAdds an activity to the cluster.Returns all activities within the cluster.intReturns the number of columns that are needed by the cluster in order to display all activities without any overlaps.Returns the list of columns.booleanintersects(A activity) Determines if the given activity intersects with the current time bounds of the cluster.Resolves the conflicts within this cluster by placing the activites in different columns.
-
Konstruktordetails
-
Cluster
public Cluster()
-
-
Methodendetails
-
getColumnCount
public int getColumnCount()Returns the number of columns that are needed by the cluster in order to display all activities without any overlaps. This value is only valid after theresolve(Predicate)method has been called.- Gibt zurück:
- the number of columns inside the cluster
-
add
-
getActivities
-
intersects
Determines if the given activity intersects with the current time bounds of the cluster. The first activity always intersects with the cluster so that the cluster gets initialized.- Parameter:
activity- the activity to check- Gibt zurück:
- true if the time bounds of the activity intersect with the time bounds of the cluster
-
resolve
Resolves the conflicts within this cluster by placing the activites in different columns. The filter allows the application to ignore some activities when resolving the conflicts.- Parameter:
filter- a filter used to ignore some of the activities- Gibt zurück:
- a map structure containing the placement for each activity within the cluster
-
getColumns
Returns the list of columns. This list is only valid after the methodresolve(Predicate)has been called.- Gibt zurück:
- the list of columns
-