Skip to content

Commit

Permalink
Eliminate jstructural
Browse files Browse the repository at this point in the history
  • Loading branch information
io7m committed May 4, 2024
1 parent 68abba8 commit 2247c80
Show file tree
Hide file tree
Showing 16 changed files with 90 additions and 602 deletions.
41 changes: 41 additions & 0 deletions README.in
@@ -0,0 +1,41 @@

## jptbox

Java functions to draw Unicode boxes.

## Features

* Functions for drawing boxes.
* High coverage test suite.
* [OSGi-ready](https://www.osgi.org/)
* [JPMS-ready](https://en.wikipedia.org/wiki/Java_Platform_Module_System)
* 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));
```

```
┌────────────────────────────┬────────┬────────┐
│ │ │ │
├────────────────────────────┼────────┼────────┤
│ │ │ │
└────────────────────────────┴────────┴────────┘
```
42 changes: 42 additions & 0 deletions README.md
Expand Up @@ -13,3 +13,45 @@ jptbox
| OpenJDK (Temurin) LTS | Linux | [![Build (OpenJDK (Temurin) LTS, Linux)](https://img.shields.io/github/actions/workflow/status/io7m-com/jptbox/main.linux.temurin.lts.yml)](https://www.github.com/io7m-com/jptbox/actions?query=workflow%3Amain.linux.temurin.lts)|
| OpenJDK (Temurin) Current | Windows | [![Build (OpenJDK (Temurin) Current, Windows)](https://img.shields.io/github/actions/workflow/status/io7m-com/jptbox/main.windows.temurin.current.yml)](https://www.github.com/io7m-com/jptbox/actions?query=workflow%3Amain.windows.temurin.current)|
| OpenJDK (Temurin) LTS | Windows | [![Build (OpenJDK (Temurin) LTS, Windows)](https://img.shields.io/github/actions/workflow/status/io7m-com/jptbox/main.windows.temurin.lts.yml)](https://www.github.com/io7m-com/jptbox/actions?query=workflow%3Amain.windows.temurin.lts)|

## jptbox

Java functions to draw Unicode boxes.

## Features

* Functions for drawing boxes.
* High coverage test suite.
* [OSGi-ready](https://www.osgi.org/)
* [JPMS-ready](https://en.wikipedia.org/wiki/Java_Platform_Module_System)
* 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));
```

```
┌────────────────────────────┬────────┬────────┐
│ │ │ │
├────────────────────────────┼────────┼────────┤
│ │ │ │
└────────────────────────────┴────────┴────────┘
```

22 changes: 0 additions & 22 deletions com.io7m.jptbox.core/pom.xml
Expand Up @@ -43,28 +43,6 @@
<artifactId>org.osgi.annotation.bundle</artifactId>
<scope>provided</scope>
</dependency>

<dependency>
<groupId>junit</groupId>
<artifactId>junit</artifactId>
<scope>test</scope>
</dependency>
</dependencies>

<build>
<plugins>
<!-- Ignore dependencies that bytecode analysis gets wrong. -->
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-dependency-plugin</artifactId>
<configuration>
<failOnWarning>true</failOnWarning>
<ignoredUnusedDeclaredDependencies>
<ignoredUnusedDeclaredDependency>junit:junit:*</ignoredUnusedDeclaredDependency>
</ignoredUnusedDeclaredDependencies>
</configuration>
</plugin>
</plugins>
</build>

</project>
214 changes: 0 additions & 214 deletions com.io7m.jptbox.documentation/pom.xml

This file was deleted.

20 changes: 0 additions & 20 deletions com.io7m.jptbox.documentation/src/main/assembly/documentation.xml

This file was deleted.

This file was deleted.

0 comments on commit 2247c80

Please sign in to comment.