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

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 the ChartLayout to create charts based on activities, e.g. for capacity usage / resource usage profiles.
Seit:
1.0
Siehe auch:
  • Felddetails

    • chartValue

      protected double chartValue
  • Konstruktordetails

    • ChartActivityBase

      public ChartActivityBase()
      Constructs a new chart 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. 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 to Instant.now() and the end time will be equal to Instant.now() plus the value of ActivityBase.DEFAULT_DURATION.
      Parameter:
      value - the chart value of the activity
      Seit:
      1.0
    • ChartActivityBase

      public 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.
      Parameter:
      value - the chart value of the activity
      time - the start and end time of the activity
      Seit:
      1.0
    • ChartActivityBase

      public 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.
      Parameter:
      value - the chart value of the activity
      startTime - the start time of the activity
      endTime - the end time of the activity
      Seit:
      1.0
  • Methodendetails

    • getChartValue

      public double getChartValue()
      Beschreibung aus Schnittstelle kopiert: ChartActivity
      Returns the chart value of the activity. The value can be positive or negative.
      Angegeben von:
      getChartValue in Schnittstelle ChartActivity
      Gibt zurück:
      the chart value
    • toString

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