Unicode box drawing
- Java 99.9%
- CSS 0.1%
| Filename | Latest commit message | Latest commit date |
|---|---|---|
| .forgejo | ||
| com.io7m.jptbox.core | ||
| com.io7m.jptbox.tests | ||
| src/site/resources | ||
| .gitignore | ||
| .gitmodules | ||
| doc7m-books.json | ||
| pom.xml | ||
| README-CHANGES.xml | ||
| README-LICENSE.txt | ||
| README.in | ||
| README.md | ||
jptbox
jptbox
Java functions to draw Unicode boxes.
Features
- Functions for drawing boxes.
- High coverage test suite.
- OSGi-ready
- JPMS-ready
- ISC license.
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));
┌────────────────────────────┬────────┬────────┐
│ │ │ │
├────────────────────────────┼────────┼────────┤
│ │ │ │
└────────────────────────────┴────────┴────────┘
