Module com.flexganttfx.view
Package impl.com.flexganttfx.skin.util
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 aCluster
with a total of 5 columns.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description A
getActivity()
Returns the activity.int
getColumnCount()
Returns the total number of columns used for the cluster where the activity is being shown.int
getColumnIndex()
Returns the index of the column where the activity will be shown within its cluster.String
toString()
-
-
-
Constructor Detail
-
Placement
public Placement(A activity, int columnIndex, int columnCount)
Constructs a new placement.- Parameters:
activity
- the activity to be placedcolumnIndex
- the column where the activity will be showncolumnCount
- the total number of columns in the cluster
-
-
Method Detail
-
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
-
-