Klasse ActivityRef<A extends Activity>
java.lang.Object
com.flexganttfx.model.ActivityRef<A>
- Typparameter:
A- the type of the referenced activity
An activity reference is used to precisely identify the location of an
activity where the location is a combination of row, layer, and the activity
itself. As the same activity can be located on multiple rows and or multiple
layers at the same time it is often necessary to work with an activity
reference instead of only the activity.
- Seit:
- 1.0
-
Konstruktorübersicht
KonstruktorenKonstruktorBeschreibungActivityRef(Row<?, ?, A> row, Layer layer, A activity) Constructs a new activity reference. -
Methodenübersicht
Modifizierer und TypMethodeBeschreibungvoidAttaches the activity to its row.voidRemoves the activity from the row where it is currently shown.booleanReturns the activity itself.getLayer()The layer on which the activity is shown.intThe line index of the activity.getRow()Returns the row where the activity is located.inthashCode()booleanDetermines if the entire row path to the activity is currently expanded or not.toString()
-
Konstruktordetails
-
ActivityRef
-
-
Methodendetails
-
isPathExpanded
public boolean isPathExpanded()Determines if the entire row path to the activity is currently expanded or not. An activity will not be shown if the tree path to it is not expanded.- Gibt zurück:
- true if the row path to the activity is completely expanded
- Seit:
- 1.0
-
getRow
-
getLayer
The layer on which the activity is shown.- Gibt zurück:
- the layer that is displaying the activity
- Seit:
- 1.0
-
getActivity
-
getLineIndex
public int getLineIndex()The line index of the activity. This is a convenience method delegating toRow.getLineIndex(Activity)which then delegates toLinesManager.getLineIndex(Activity).- Gibt zurück:
- the line index of the activity
- Seit:
- 1.0
-
detachFromRow
public void detachFromRow()Removes the activity from the row where it is currently shown.- Seit:
- 1.0
- Siehe auch:
-
attachToRow
public void attachToRow()Attaches the activity to its row.- Seit:
- 1.0
- Siehe auch:
-
toString
-
hashCode
-
equals
-