I wanted to make a simple Paint utility that is customizable and easy to use. This tool will create a grid structure full of cells, each of which can contain text such as script run time, xp gained, script status, etc. You define the layout of the grid, set the style of the cells, and can update them as your script runs. Note that this was originally written in Kotlin and the Java code is untested and auto-generated so you may have to do some work converting it to Java 🙂.
Usage
Kotlin
Java
These are the customizable properties:
GridPainter:
show - toggle display on/off
x - left position of the grid
y - top position of the grid
cellWidth
cellHeight
cellBorderColor - color of the lines that border each cell
Cell:
name - name of the cell used for indexing and updating/removing
data - the string to display in the cell
prefixWithName - if true, will prefix the display string with "$name: "
bgColor - background color of the cell
textColor
font - text Font() object
span - int for how many columns this cell will span
Sources
GridPainter.kt
Cell.kt
GridPainter.java
Cell.java