T
- the type of the optional user objectpublic class HighLowChartActivityBase<T> extends ActivityBase<T> implements HighLowChartActivity
ChartLayout
. A typical use-case for such activities are
candle-stick diagrams used for plotting historical stock prices.Modifier and Type | Field and Description |
---|---|
protected double |
high |
protected double |
low |
DEFAULT_DURATION, endTime, id, name, startTime, userObject
Constructor and Description |
---|
HighLowChartActivityBase()
Constructs a new high-low activity.
|
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.
|
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.
|
Modifier and Type | Method and Description |
---|---|
double |
getHigh()
Returns the high value of the activity.
|
double |
getLow()
Returns the low value of the activity.
|
String |
toString() |
getEndTime, getId, getName, getStartTime, getUserObject
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
getEndTime, getId, getName, getStartTime
public HighLowChartActivityBase()
Instant.now()
and the end time will be equal to
Instant.now()
plus ActivityBase.DEFAULT_DURATION
.public HighLowChartActivityBase(double low, double high, Instant startTime, Instant endTime)
low
- the low value of the activityhigh
- the high value of the activitystartTime
- the start time of the activityendTime
- the end time of the activityIllegalArgumentException
- if low is larger than highpublic HighLowChartActivityBase(double low, double high, Instant time)
low
- the low value of the activityhigh
- the high value of the activitytime
- the start and end time of the activityIllegalArgumentException
- if low is larger than highpublic double getLow()
HighLowChartActivity
getLow
in interface HighLowChartActivity
public double getHigh()
HighLowChartActivity
getHigh
in interface HighLowChartActivity
public String toString()
toString
in class ActivityBase<T>
Copyright © 2014 Dirk Lemmermann Software & Consulting. All rights reserved.