java.lang.Object
impl.com.flexganttfx.skin.util.Column<A>
- Type Parameters:
A
- the type of the activities
public final class Column<A extends Activity> extends Object
A column is part of a
Cluster
. Each cluster can have one or more
columns. The column stores / displays a list of non-overlapping activities.-
Constructor Summary
Constructors Constructor Description Column()
-
Method Summary
Modifier and Type Method Description void
add(A activity)
Adds the given activity to the cluster.List<A>
getActivities()
Returns all activities within the column.boolean
hasRoomFor(A activity, Predicate<A> filter)
Checks whether the column has room for the given activity, meaning whether the time interval occupied by the activity is currently being used or not.
-
Constructor Details
-
Column
public Column()
-
-
Method Details
-
add
Adds the given activity to the cluster.- Parameters:
activity
- the activity to add
-
hasRoomFor
Checks whether the column has room for the given activity, meaning whether the time interval occupied by the activity is currently being used or not.- Parameters:
activity
- the activity to placefilter
- a filter used for determining if the given activity is relevant for conflict checks or not- Returns:
- true if the column has enough space for the given activity
-
getActivities
Returns all activities within the column.- Returns:
- the column activities
-