Watch
2
0
Fork
You've already forked jptbox
0
Unicode box drawing
  • Java 99.9%
  • CSS 0.1%
Find a file
Repository files (latest commit first)
Filename Latest commit message Latest commit date
2026-07-31 18:42:56 +01:00
.forgejo Update workflows. 2026-07-31 18:42:56 +01:00
com.io7m.jptbox.core Eliminate jstructural 2024-05-04 13:10:25 +00:00
com.io7m.jptbox.tests Move to new organization. 2024-04-30 20:41:36 +00:00
src/site/resources Update site metadata. 2025-08-09 15:06:04 +00:00
.gitignore Update .gitignore. 2024-05-07 16:01:44 +00:00
.gitmodules Move to new organization. 2024-04-30 20:41:36 +00:00
doc7m-books.json Add doc7m-books.json 2026-07-31 18:36:47 +01:00
pom.xml Migrate project. 2026-06-27 11:08:11 +01:00
README-CHANGES.xml Move to new organization. 2024-04-30 20:41:36 +00:00
README-LICENSE.txt Update LICENSE 2023-08-13 21:07:25 +00:00
README.in Migrate project. 2026-06-27 11:08:11 +01:00
README.md Migrate project. 2026-06-27 11:08:11 +01:00

jptbox

Maven Central Maven Central (snapshot) Java Version

com.io7m.jptbox

jptbox

Java functions to draw Unicode boxes.

Features

Usage

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));
┌────────────────────────────┬────────┬────────┐
│                            │        │        │
├────────────────────────────┼────────┼────────┤
│                            │        │        │
└────────────────────────────┴────────┴────────┘