JVM | Platform | Status |
---|---|---|
OpenJDK (Temurin) Current | Linux | |
OpenJDK (Temurin) LTS | Linux | |
OpenJDK (Temurin) Current | Windows | |
OpenJDK (Temurin) LTS | Windows |
Java functions to draw Unicode boxes.
- Functions for drawing boxes.
- High coverage test suite.
- OSGi-ready
- JPMS-ready
- ISC license.
Create a text image to act as a canvas, and then draw boxes into it:
final JPTextImageType image =
JPTextImage.create(80, 10);
final JPTextBoxDrawingType draw =
JPTextBoxDrawing.get();
draw.drawBox(image, 0, 0, 30, 3);
draw.drawBox(image, 29, 0, 10, 3);
draw.drawBox(image, 38, 0, 10, 3);
draw.drawBox(image, 0, 2, 30, 3);
draw.drawBox(image, 29, 2, 10, 3);
draw.drawBox(image, 38, 2, 10, 3);
System.out.println(JPTextImages.show(image));
┌────────────────────────────┬────────┬────────┐
│ │ │ │
├────────────────────────────┼────────┼────────┤
│ │ │ │
└────────────────────────────┴────────┴────────┘