- java.lang.Object
-
- impl.com.flexganttfx.skin.util.Column<A>
-
-
Constructor Summary
Constructors Constructor Description Column()
-
Method Summary
All Methods Instance Methods Concrete Methods 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.
-
-
-
Method Detail
-
add
public void add(A activity)
Adds the given activity to the cluster.- Parameters:
activity
- the activity to add
-
hasRoomFor
public 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.- 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
-
-