Klasse ChartActivityBase<T>
java.lang.Object
com.flexganttfx.model.activity.ActivityBase<T>
com.flexganttfx.model.activity.ChartActivityBase<T>
- Typparameter:
T- the type of the optional user object
- Alle implementierten Schnittstellen:
Activity,ChartActivity
- Bekannte direkte Unterklassen:
MutableChartActivityBase
The base implementation of a chart activity, which defines an additional
chart value attribute that can be utilized by the
ChartLayout to
create charts based on activities, e.g. for capacity usage / resource usage
profiles.- Seit:
- 1.0
- Siehe auch:
-
Feldübersicht
FelderVon Klasse geerbte Felder com.flexganttfx.model.activity.ActivityBase
DEFAULT_DURATION, endTime, id, name, startTime, userObject -
Konstruktorübersicht
KonstruktorenKonstruktorBeschreibungConstructs a new chart activity.ChartActivityBase(double value) Constructs a new chart activity with the given value.ChartActivityBase(double value, Instant time) Constructs a new chart activity with the given value.ChartActivityBase(double value, Instant startTime, Instant endTime) Constructs a new chart activity with the given value. -
Methodenübersicht
Modifizierer und TypMethodeBeschreibungdoubleReturns the chart 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
-
chartValue
protected double chartValue
-
-
Konstruktordetails
-
ChartActivityBase
public ChartActivityBase()Constructs a new chart 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. The chart value will be equal to zero.- Seit:
- 1.0
-
ChartActivityBase
public ChartActivityBase(double value) Constructs a new chart activity with the given value. 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:
value- the chart value of the activity- Seit:
- 1.0
-
ChartActivityBase
Constructs a new chart activity with the given value. The start and end time will be equal to the given time.- Parameter:
value- the chart value of the activitytime- the start and end time of the activity- Seit:
- 1.0
-
ChartActivityBase
Constructs a new chart activity with the given value. The start time and end time will be equal to the given times.- Parameter:
value- the chart value of the activitystartTime- the start time of the activityendTime- the end time of the activity- Seit:
- 1.0
-
-
Methodendetails
-
getChartValue
public double getChartValue()Beschreibung aus Schnittstelle kopiert:ChartActivityReturns the chart value of the activity. The value can be positive or negative.- Angegeben von:
getChartValuein SchnittstelleChartActivity- Gibt zurück:
- the chart value
-
toString
- Setzt außer Kraft:
toStringin KlasseActivityBase<T>
-