class ClientVisualization extends java.lang.Object implements EarlyProgressVisualization.Visualization
Modifier and Type | Field and Description |
---|---|
private static float[] |
memorycolour |
private java.lang.Thread |
renderThread |
private boolean |
running |
private int |
screenHeight |
private int |
screenWidth |
private long |
window |
Constructor and Description |
---|
ClientVisualization() |
Modifier and Type | Method and Description |
---|---|
private static float |
clamp(float num,
float min,
float max) |
private static int |
clamp(int num,
int min,
int max) |
long |
handOffWindow(java.util.function.IntSupplier width,
java.util.function.IntSupplier height,
java.util.function.Supplier<java.lang.String> title,
java.util.function.LongSupplier monitorSupplier) |
private static int |
hsvToRGB(float hue,
float saturation,
float value) |
private void |
initWindow() |
private void |
renderMemoryInfo() |
private void |
renderMessage(java.lang.String message,
float[] colour,
int row,
float alpha) |
private void |
renderMessages() |
private void |
renderProgress() |
private void |
renderThreadFunc() |
boolean |
replacedWindow() |
java.lang.Runnable |
start() |
private final int screenWidth
private final int screenHeight
private long window
private java.lang.Thread renderThread
private boolean running
private static final float[] memorycolour
private void initWindow()
private void renderProgress()
private static float clamp(float num, float min, float max)
private static int clamp(int num, int min, int max)
private static int hsvToRGB(float hue, float saturation, float value)
private void renderMessages()
private void renderMemoryInfo()
private void renderMessage(java.lang.String message, float[] colour, int row, float alpha)
private void renderThreadFunc()
public java.lang.Runnable start()
start
in interface EarlyProgressVisualization.Visualization
public long handOffWindow(java.util.function.IntSupplier width, java.util.function.IntSupplier height, java.util.function.Supplier<java.lang.String> title, java.util.function.LongSupplier monitorSupplier)
handOffWindow
in interface EarlyProgressVisualization.Visualization
public boolean replacedWindow()
replacedWindow
in interface EarlyProgressVisualization.Visualization