Klasse ActivityRef<A extends Activity>

java.lang.Object
com.flexganttfx.model.ActivityRef<A>
Typparameter:
A - the type of the referenced activity

public final class ActivityRef<A extends Activity> extends Object
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
  • Konstruktordetails

    • ActivityRef

      public ActivityRef(Row<?,?,A> row, Layer layer, A activity)
      Constructs a new activity reference.
      Parameter:
      row - the row where the activity is shown
      layer - the model layer where the activity is located (optional)
      activity - the referenced activity
      Seit:
      1.0
  • 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

      public Row<?,?,A> getRow()
      Returns the row where the activity is located.
      Gibt zurück:
      the row where the activity is located
      Seit:
      1.0
    • getLayer

      public Layer getLayer()
      The layer on which the activity is shown.
      Gibt zurück:
      the layer that is displaying the activity
      Seit:
      1.0
    • getActivity

      public A getActivity()
      Returns the activity itself.
      Gibt zurück:
      the activity
    • getLineIndex

      public int getLineIndex()
      The line index of the activity. This is a convenience method delegating to Row.getLineIndex(Activity) which then delegates to LinesManager.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

      public String toString()
      Setzt außer Kraft:
      toString in Klasse Object
    • hashCode

      public int hashCode()
      Setzt außer Kraft:
      hashCode in Klasse Object
    • equals

      public boolean equals(Object obj)
      Setzt außer Kraft:
      equals in Klasse Object