Class Column<A extends Activity>

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.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • Column

      public Column()
  • Method Details

    • 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 place
      filter - 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

      public List<A> getActivities()
      Returns all activities within the column.
      Returns:
      the column activities