Klasse CompletableActivityBase<T>

java.lang.Object
com.flexganttfx.model.activity.ActivityBase<T>
com.flexganttfx.model.activity.CompletableActivityBase<T>
Typparameter:
T - the type of the optional user object
Alle implementierten Schnittstellen:
Activity, CompletableActivity
Bekannte direkte Unterklassen:
MutableCompletableActivityBase

public class CompletableActivityBase<T> extends ActivityBase<T> implements CompletableActivity
The base implementation of a completable activity, which stores a "percentage complete" value between 0 and 100%. Renderers often fill the background of activity bars depending on this value. The higher the value the more of the background gets filled.
Seit:
1.0
  • Felddetails

    • percentageComplete

      protected double percentageComplete
  • Konstruktordetails

    • CompletableActivityBase

      public CompletableActivityBase()
      Constructs a new activity. The initial start time will be set to Instant.now() and the end time will be equal to Instant.now() plus the value of ActivityBase.DEFAULT_DURATION.
      Seit:
      1.0
    • CompletableActivityBase

      public CompletableActivityBase(String name)
      Constructs a new activity with the given name. The initial start time will be set to Instant.now() and the end time will be equal to Instant.now() plus the value of ActivityBase.DEFAULT_DURATION.
      Parameter:
      name - the name of the activity
      Seit:
      1.0
    • CompletableActivityBase

      public CompletableActivityBase(Instant startTime, Instant endTime)
      Constructs a new activity with the start time and end time.
      Parameter:
      startTime - the start time of the activity
      endTime - the end time of the activity
      Seit:
      1.0
    • CompletableActivityBase

      public CompletableActivityBase(String name, Instant startTime, Instant endTime)
      Constructs a new activity with the given name, start time, and end time.
      Parameter:
      name - the name of the activity
      startTime - the start time of the activity
      endTime - the end time of the activity
      Seit:
      1.0
  • Methodendetails

    • getPercentageComplete

      public double getPercentageComplete()
      Beschreibung aus Schnittstelle kopiert: CompletableActivity
      Returns the "percentage complete" value of the activity. Must be a value between 0 and 100%.
      Angegeben von:
      getPercentageComplete in Schnittstelle CompletableActivity
      Gibt zurück:
      the percentage complete value [0, 100];
    • toString

      public String toString()
      Setzt außer Kraft:
      toString in Klasse ActivityBase<T>