Klasse HighLowChartActivityBase<T>

java.lang.Object
com.flexganttfx.model.activity.ActivityBase<T>
com.flexganttfx.model.activity.HighLowChartActivityBase<T>
Typparameter:
T - the type of the optional user object
Alle implementierten Schnittstellen:
Activity, HighLowChartActivity
Bekannte direkte Unterklassen:
MutableHighLowChartActivityBase

public class HighLowChartActivityBase<T> extends ActivityBase<T> implements HighLowChartActivity
The base implementation of a high-low activity, which are used in combination with a ChartLayout. A typical use-case for such activities are candle-stick diagrams used for plotting historical stock prices.
Seit:
1.0
  • Felddetails

    • low

      protected double low
    • high

      protected double high
  • Konstruktordetails

    • HighLowChartActivityBase

      public HighLowChartActivityBase()
      Constructs a new high-low activity. The initial high and low values will both be equal to zero. The start time will be equal to Instant.now() and the end time will be equal to Instant.now() plus ActivityBase.DEFAULT_DURATION.
      Seit:
      1.0
    • HighLowChartActivityBase

      public HighLowChartActivityBase(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.
      Parameter:
      low - the low value of the activity
      high - the high value of the activity
      startTime - the start time of the activity
      endTime - the end time of the activity
      Löst aus:
      IllegalArgumentException - if low is larger than high
      Seit:
      1.0
    • HighLowChartActivityBase

      public HighLowChartActivityBase(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.
      Parameter:
      low - the low value of the activity
      high - the high value of the activity
      time - the start and end time of the activity
      Löst aus:
      IllegalArgumentException - if low is larger than high
      Seit:
      1.0
  • Methodendetails