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 a
Cluster
with a total
of 5 columns.-
Constructor Summary
-
Method Summary
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 Details
-
Placement
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 Details
-
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
-