- java.lang.Object
- 
- com.flexganttfx.model.activity.ActivityBase<T>
- 
- com.flexganttfx.model.activity.ChartActivityBase<T>
 
 
- 
- Type Parameters:
- T- the type of the optional user object
 - All Implemented Interfaces:
- Activity,- ChartActivity
 - Direct Known Subclasses:
- MutableChartActivityBase
 
 public class ChartActivityBase<T> extends ActivityBase<T> implements ChartActivity The base implementation of a chart activity, which defines an additional chart value attribute that can be utilized by theChartLayoutto create charts based on activities, e.g. for capacity usage / resource usage profiles.- Since:
- 1.0
- See Also:
- ChartLayout.getMinValue(),- ChartLayout.getMaxValue()
 
- 
- 
Field SummaryFields Modifier and Type Field Description protected doublechartValue- 
Fields inherited from class com.flexganttfx.model.activity.ActivityBaseDEFAULT_DURATION, endTime, id, name, startTime, userObject
 
- 
 - 
Constructor SummaryConstructors Constructor Description ChartActivityBase()Constructs 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.
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description doublegetChartValue()Returns the chart value of the activity.StringtoString()- 
Methods inherited from class com.flexganttfx.model.activity.ActivityBasegetEndTime, getId, getName, getStartTime, getUserObject, setUserObject
 - 
Methods inherited from class java.lang.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 - 
Methods inherited from interface com.flexganttfx.model.ActivitygetEndTime, getId, getName, getStartTime
 
- 
 
- 
- 
- 
Constructor Detail- 
ChartActivityBasepublic 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.- Since:
- 1.0
 
 - 
ChartActivityBasepublic 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.- Parameters:
- value- the chart value of the activity
- Since:
- 1.0
 
 - 
ChartActivityBasepublic ChartActivityBase(double value, Instant time)Constructs a new chart activity with the given value. The start and end time will be equal to the given time.- Parameters:
- value- the chart value of the activity
- time- the start and end time of the activity
- Since:
- 1.0
 
 - 
ChartActivityBasepublic ChartActivityBase(double value, Instant startTime, Instant endTime)Constructs a new chart activity with the given value. The start time and end time will be equal to the given times.- Parameters:
- value- the chart value of the activity
- startTime- the start time of the activity
- endTime- the end time of the activity
- Since:
- 1.0
 
 
- 
 - 
Method Detail- 
getChartValuepublic double getChartValue() Description copied from interface:ChartActivityReturns the chart value of the activity. The value can be positive or negative.- Specified by:
- getChartValuein interface- ChartActivity
- Returns:
- the chart value
 
 - 
toStringpublic String toString() - Overrides:
- toStringin class- ActivityBase<T>
 
 
- 
 
-