public HighLow(double x,
double high,
double low) {
this(x, high, low, high, low, new BasicStroke(), Color.blue);
}
Constructs a high-low item, with default values for the open/close and
colors. Parameters:
x - the x value.
high - the high value.
low - the low value.
|
public HighLow(double x,
double high,
double low,
double open,
double close) {
this(x, high, low, open, close, new BasicStroke(), Color.blue);
}
Constructs a high-low item, with default values for the colors. Parameters:
x - the x value.
high - the high value.
low - the low value.
open - the open value.
close - the close value.
|
public HighLow(double x,
double high,
double low,
double open,
double close,
Stroke stroke,
Paint paint) {
this.line = new Line2D.Double(x, high, x, low);
this.bounds = new Rectangle2D.Double(x - this.tickSize, high,
2 * this.tickSize, low - high);
this.open = open;
this.close = close;
this.stroke = stroke;
this.paint = paint;
}
Constructs a high-low item. Parameters:
x - the x value.
high - the high value.
low - the low value.
open - the open value.
close - the close value.
stroke - the stroke.
paint - the paint.
|