Class Placement<A extends Activity>

java.lang.Object
impl.com.flexganttfx.skin.util.Placement<A>
Type Parameters:
A - the type of the activities

public final class Placement<A extends Activity>
extends Object
A data structure to store the placement of an activity. A placement is defined by the column index and the total column count. For example: an activity can be shown in the second column of a Cluster with a total of 5 columns.
  • Constructor Details

    • Placement

      public Placement​(A activity, int columnIndex, int columnCount)
      Constructs a new placement.
      Parameters:
      activity - the activity to be placed
      columnIndex - the column where the activity will be shown
      columnCount - the total number of columns in the cluster
  • Method Details

    • getActivity

      public A getActivity()
      Returns the activity.
      Returns:
      the activity
    • getColumnIndex

      public int getColumnIndex()
      Returns the index of the column where the activity will be shown within its cluster.
      Returns:
      the column index
    • getColumnCount

      public int getColumnCount()
      Returns the total number of columns used for the cluster where the activity is being shown.
      Returns:
      the total number of columns
    • toString

      public String toString()
      Overrides:
      toString in class Object