Wrote /root/JavaX-Caches/tmp_793326934/main.java - 3215 bytes (written=3215, should be 3215)
javac=0, ecj=1, useJarBot=0
Checking ECJ at port 4898 at 127.0.0.1
/root/jdk-17/bin/javac -source 11 -target 11 -nowarn -encoding utf8 -Xdiags:verbose -cp /root/.javax/x30.jar:/root/dexcompiler/android.jar:/root/dexcompiler/support-v4-22.2.1.jar:/root/javafx/javafx.base.jar:/root/javafx/javafx.graphics.jar:/root/javafx/javafx.swing.jar -d /root/JavaX-Caches/tmp_2018510503 /root/JavaX-Caches/tmp_793326934/main.java 2>&1
[Compilation Error]Compiler errors. Medium transpile. Show Java sources. Show snippet. Edit.
/root/JavaX-Caches/tmp_793326934/main.java:1: error: class, interface, or enum expected
sclass TradingCandlePainter extends AbstractTickerPainter is IToolTipMaker {
^
/root/JavaX-Caches/tmp_793326934/main.java:4: error: class, interface, or enum expected
settable int spikeWidth = 1;
^
/root/JavaX-Caches/tmp_793326934/main.java:5: error: class, interface, or enum expected
settable Color shortColor = java.awt.Color.blue;
^
/root/JavaX-Caches/tmp_793326934/main.java:6: error: class, interface, or enum expected
settable Color longColor = java.awt.Color.yellow;
^
/root/JavaX-Caches/tmp_793326934/main.java:9: error: class, interface, or enum expected
settable bool heikinAshi;
^
/root/JavaX-Caches/tmp_793326934/main.java:11: error: class, interface, or enum expected
settable bool autoHorizontalRange = true;
^
/root/JavaX-Caches/tmp_793326934/main.java:13: error: class, interface, or enum expected
settable int maxCandlesToShow = 1000;
^
/root/JavaX-Caches/tmp_793326934/main.java:15: error: class, interface, or enum expected
*() {}
^
/root/JavaX-Caches/tmp_793326934/main.java:16: error: class, interface, or enum expected
*(L candles) { candles(candles); }
^
/root/JavaX-Caches/tmp_793326934/main.java:20: error: class, interface, or enum expected
while (i < l(candles) && candles.get(i).endOrProjectedEndTime() < horizontalRange().start)
^
/root/JavaX-Caches/tmp_793326934/main.java:22: error: class, interface, or enum expected
int j = l(candles);
^
/root/JavaX-Caches/tmp_793326934/main.java:23: error: class, interface, or enum expected
while (j > i && candles.get(j-1).startTime().unixDate() >= horizontalRange().end)
^
/root/JavaX-Caches/tmp_793326934/main.java:25: error: class, interface, or enum expected
ret new TradingRun(subList(candles, i, j));
^
/root/JavaX-Caches/tmp_793326934/main.java:26: error: class, interface, or enum expected
}
^
/root/JavaX-Caches/tmp_793326934/main.java:30: error: class, interface, or enum expected
verticalRange(doubleRange(run.min(), run.max()));
^
/root/JavaX-Caches/tmp_793326934/main.java:31: error: class, interface, or enum expected
}
^
/root/JavaX-Caches/tmp_793326934/main.java:33: error: class, interface, or enum expected
public void drawOn(Graphics2D g) {
^
/root/JavaX-Caches/tmp_793326934/main.java:36: error: class, interface, or enum expected
var run = new TradingRun(candles);
^
/root/JavaX-Caches/tmp_793326934/main.java:37: error: class, interface, or enum expected
if (autoHorizontalRange() || horizontalRange() == null) {
^
/root/JavaX-Caches/tmp_793326934/main.java:39: error: class, interface, or enum expected
horizontalRange(doubleRange(firstCandle.startTime().unixDate(), run.endOrProjectedEndTime()));
^
/root/JavaX-Caches/tmp_793326934/main.java:40: error: class, interface, or enum expected
}
^
/root/JavaX-Caches/tmp_793326934/main.java:43: error: class, interface, or enum expected
drawPercentLines(g);
^
/root/JavaX-Caches/tmp_793326934/main.java:44: error: class, interface, or enum expected
drawAdditionalObjects(g);
^
/root/JavaX-Caches/tmp_793326934/main.java:46: error: class, interface, or enum expected
var candles = candles();
^
/root/JavaX-Caches/tmp_793326934/main.java:47: error: class, interface, or enum expected
if (heikinAshi) candles = convertToHeikinAshi(candles);
^
/root/JavaX-Caches/tmp_793326934/main.java:51: error: class, interface, or enum expected
var nCandles = l(candles);
^
/root/JavaX-Caches/tmp_793326934/main.java:53: error: class, interface, or enum expected
for i to nCandles: {
^
/root/JavaX-Caches/tmp_793326934/main.java:57: error: class, interface, or enum expected
double x1 = xToScreen(candle.startTime().unixDate());
^
/root/JavaX-Caches/tmp_793326934/main.java:58: error: class, interface, or enum expected
double x2 = xToScreen(candle.endOrProjectedEndTime());
^
/root/JavaX-Caches/tmp_793326934/main.java:59: error: class, interface, or enum expected
x2 = blend(x1, x2, 0.75);
^
/root/JavaX-Caches/tmp_793326934/main.java:60: error: class, interface, or enum expected
var xCenter = avg(x1, x2);
^
/root/JavaX-Caches/tmp_793326934/main.java:61: error: class, interface, or enum expected
var y1 = yToScreen(candle.max());
^
/root/JavaX-Caches/tmp_793326934/main.java:62: error: class, interface, or enum expected
var y2 = yToScreen(candle.min());
^
/root/JavaX-Caches/tmp_793326934/main.java:63: error: class, interface, or enum expected
var yStart = yToScreen(candle.start());
^
/root/JavaX-Caches/tmp_793326934/main.java:64: error: class, interface, or enum expected
var yEnd = yToScreen(candle.end());
^
/root/JavaX-Caches/tmp_793326934/main.java:67: error: class, interface, or enum expected
var r = doubleRectFromPoints(xCenter, y1, xCenter+spikeWidth, y2);
^
/root/JavaX-Caches/tmp_793326934/main.java:68: error: class, interface, or enum expected
fillRect(g, growRectBottom(1, toRect_round(r)), candle.color());
^
/root/JavaX-Caches/tmp_793326934/main.java:71: error: class, interface, or enum expected
r = doubleRectFromPoints(x1, min(yStart, yEnd), x2, max(yStart, yEnd));
^
/root/JavaX-Caches/tmp_793326934/main.java:72: error: class, interface, or enum expected
fillRect(g, growRectBottom(1, toRect_round(r)), candle.color());
^
/root/JavaX-Caches/tmp_793326934/main.java:73: error: class, interface, or enum expected
}
^
/root/JavaX-Caches/tmp_793326934/main.java:76: error: class, interface, or enum expected
}
^
/root/JavaX-Caches/tmp_793326934/main.java:78: error: class, interface, or enum expected
public BufferedImage render() {
^
/root/JavaX-Caches/tmp_793326934/main.java:80: error: class, interface, or enum expected
var img2 = cloneBufferedImageWithMeta(img);
^
/root/JavaX-Caches/tmp_793326934/main.java:81: error: class, interface, or enum expected
metaSet(img2, IToolTipMaker, this);
^
/root/JavaX-Caches/tmp_793326934/main.java:82: error: class, interface, or enum expected
ret img2;
^
/root/JavaX-Caches/tmp_793326934/main.java:83: error: class, interface, or enum expected
}
^
/root/JavaX-Caches/tmp_793326934/main.java:85: error: class, interface, or enum expected
public swappable S getToolTip(Pt p) {
^
/root/JavaX-Caches/tmp_793326934/main.java:87: error: class, interface, or enum expected
double time = xFromScreen(p.x);
^
/root/JavaX-Caches/tmp_793326934/main.java:90: error: class, interface, or enum expected
TradingCandle candle = firstThat(candles, c -> c.startTime().unixDate() >= time);
^
/root/JavaX-Caches/tmp_793326934/main.java:92: error: class, interface, or enum expected
if (candle == null)
^
/root/JavaX-Caches/tmp_793326934/main.java:95: error: class, interface, or enum expected
ret str(candle);
^
/root/JavaX-Caches/tmp_793326934/main.java:96: error: class, interface, or enum expected
}
^
/root/JavaX-Caches/tmp_793326934/main.java:100: error: class, interface, or enum expected
}
^
53 errors