Klasse MutableHighLowChartActivityBase<T>
java.lang.Object
com.flexganttfx.model.activity.ActivityBase<T>
com.flexganttfx.model.activity.HighLowChartActivityBase<T>
com.flexganttfx.model.activity.MutableHighLowChartActivityBase<T>
- Typparameter:
T- the type of the optional user object
- Alle implementierten Schnittstellen:
Activity,HighLowChartActivity,MutableActivity,MutableHighLowChartActivity
public class MutableHighLowChartActivityBase<T>
extends HighLowChartActivityBase<T>
implements MutableHighLowChartActivity
The base implementation of a mutable high / low activity.
- Seit:
- 1.0
-
Feldübersicht
Von Klasse geerbte Felder com.flexganttfx.model.activity.HighLowChartActivityBase
high, lowVon Klasse geerbte Felder com.flexganttfx.model.activity.ActivityBase
DEFAULT_DURATION, endTime, id, name, startTime, userObject -
Konstruktorübersicht
KonstruktorenKonstruktorBeschreibungConstructs a new high-low activity.MutableHighLowChartActivityBase(double low, double high, Instant time) Constructs a new high-low activity with the given initial high and low values and the start and end time set to the given time.MutableHighLowChartActivityBase(double low, double high, Instant startTime, Instant endTime) Constructs a new high-low activity with the given initial high and low values and the given start and end time. -
Methodenübersicht
Modifizierer und TypMethodeBeschreibungvoidaddDuration(Duration duration) Convenience method to determine a new end time based on a duration that will be added once to the current end time of the activity.voidaddDuration(Duration duration, long multipliedBy) Convenience method to determine a new end time based on a duration that will be added several times to the current end time of the activity.Convenience method to determine the duration between the start and the end time of the activity.voidsetDuration(Duration duration) Convenience method to determine a new end time based on a duration that will be added to the current start time of the activity.voidsetEndTime(Instant time) Sets a new end time on the activity.voidsetHigh(double high) Sets the high value of the activity.voidsetLow(double low) Sets the low value of the activity.voidSets the name of the activity.voidsetStartTime(Instant time) Sets a new start time on the activity.voidsetUserObject(T userObject) toString()Von Klasse geerbte Methoden com.flexganttfx.model.activity.HighLowChartActivityBase
getHigh, getLowVon Klasse geerbte Methoden com.flexganttfx.model.activity.ActivityBase
getEndTime, getId, getName, getStartTime, getUserObjectVon 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, getStartTimeVon Schnittstelle geerbte Methoden com.flexganttfx.model.activity.HighLowChartActivity
getHigh, getLow
-
Konstruktordetails
-
MutableHighLowChartActivityBase
public MutableHighLowChartActivityBase()Constructs a new high-low activity. The initial high and low values will both be equal to zero. The start time will be equal toInstant.now()and the end time will be equal toInstant.now()plusActivityBase.DEFAULT_DURATION.- Seit:
- 1.0
-
MutableHighLowChartActivityBase
Constructs a new high-low activity with the given initial high and low values and the given start and end time.- Parameter:
low- the low value of the activityhigh- the high value of the activitystartTime- the start time of the activityendTime- the end time of the activity- Löst aus:
IllegalArgumentException- if low is larger than high- Seit:
- 1.0
-
MutableHighLowChartActivityBase
Constructs a new high-low activity with the given initial high and low values and the start and end time set to the given time.- Parameter:
low- the low value of the activityhigh- the high value of the activitytime- the start and end time of the activity- Löst aus:
IllegalArgumentException- if low is larger than high- Seit:
- 1.0
-
-
Methodendetails
-
setName
Beschreibung aus Schnittstelle kopiert:MutableActivitySets the name of the activity.- Angegeben von:
setNamein SchnittstelleMutableActivity- Parameter:
name- the new name of the activity
-
setUserObject
- Setzt außer Kraft:
setUserObjectin KlasseActivityBase<T>
-
setStartTime
Beschreibung aus Schnittstelle kopiert:MutableActivitySets a new start time on the activity.- Angegeben von:
setStartTimein SchnittstelleMutableActivity- Parameter:
time- the new start time
-
setEndTime
Beschreibung aus Schnittstelle kopiert:MutableActivitySets a new end time on the activity.- Angegeben von:
setEndTimein SchnittstelleMutableActivity- Parameter:
time- the new end time
-
setDuration
Convenience method to determine a new end time based on a duration that will be added to the current start time of the activity.- Parameter:
duration- the duration of the activity- Seit:
- 1.0
-
getDuration
Convenience method to determine the duration between the start and the end time of the activity.- Gibt zurück:
- the duration of the activity
-
addDuration
Convenience method to determine a new end time based on a duration that will be added once to the current end time of the activity.- Parameter:
duration- the duration of the activity- Seit:
- 1.0
-
addDuration
Convenience method to determine a new end time based on a duration that will be added several times to the current end time of the activity.- Parameter:
duration- the duration of the activitymultipliedBy- the number of times that the duration will be added- Seit:
- 1.0
-
setHigh
public void setHigh(double high) Beschreibung aus Schnittstelle kopiert:MutableHighLowChartActivitySets the high value of the activity.- Angegeben von:
setHighin SchnittstelleMutableHighLowChartActivity- Parameter:
high- the new high value
-
setLow
public void setLow(double low) Beschreibung aus Schnittstelle kopiert:MutableHighLowChartActivitySets the low value of the activity.- Angegeben von:
setLowin SchnittstelleMutableHighLowChartActivity- Parameter:
low- the new low value
-
toString
- Setzt außer Kraft:
toStringin KlasseHighLowChartActivityBase<T>
-