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
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
-
Feldübersicht
FelderVon Klasse geerbte Felder com.flexganttfx.model.activity.ActivityBase
DEFAULT_DURATION, endTime, id, name, startTime, userObject -
Konstruktorübersicht
KonstruktorenKonstruktorBeschreibungConstructs a new activity.Constructs a new activity with the given name.CompletableActivityBase(String name, Instant startTime, Instant endTime) Constructs a new activity with the given name, start time, and end time.CompletableActivityBase(Instant startTime, Instant endTime) Constructs a new activity with the start time and end time. -
Methodenübersicht
Modifizierer und TypMethodeBeschreibungdoubleReturns the "percentage complete" value of the activity.toString()Von Klasse geerbte Methoden com.flexganttfx.model.activity.ActivityBase
getEndTime, getId, getName, getStartTime, getUserObject, setUserObjectVon Klasse geerbte Methoden java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitVon Schnittstelle geerbte Methoden com.flexganttfx.model.Activity
getEndTime, getId, getName, getStartTime
-
Felddetails
-
percentageComplete
protected double percentageComplete
-
-
Konstruktordetails
-
CompletableActivityBase
public CompletableActivityBase()Constructs a new activity. The initial start time will be set toInstant.now()and the end time will be equal toInstant.now()plus the value ofActivityBase.DEFAULT_DURATION.- Seit:
- 1.0
-
CompletableActivityBase
Constructs a new activity with the given name. The initial start time will be set toInstant.now()and the end time will be equal toInstant.now()plus the value ofActivityBase.DEFAULT_DURATION.- Parameter:
name- the name of the activity- Seit:
- 1.0
-
CompletableActivityBase
-
CompletableActivityBase
-
-
Methodendetails
-
getPercentageComplete
public double getPercentageComplete()Beschreibung aus Schnittstelle kopiert:CompletableActivityReturns the "percentage complete" value of the activity. Must be a value between 0 and 100%.- Angegeben von:
getPercentageCompletein SchnittstelleCompletableActivity- Gibt zurück:
- the percentage complete value [0, 100];
-
toString
- Setzt außer Kraft:
toStringin KlasseActivityBase<T>
-