JVectClipboard

Copy/paste library for vector graphics in Swing

License

License

Categories

Categories

CLI User Interface
GroupId

GroupId

org.qenherkhopeshef
ArtifactId

ArtifactId

jvectclipboard
Last Version

Last Version

8.0.0
Release Date

Release Date

Type

Type

jar
Description

Description

JVectClipboard
Copy/paste library for vector graphics in Swing
Project URL

Project URL

https://comp.qenherkhopeshef.org/blog/jvectcutandpaste
Source Code Management

Source Code Management

https://github.com/rosmord/jvectclipboard

Download jvectclipboard

How to add to project

<!-- https://jarcasting.com/artifacts/org.qenherkhopeshef/jvectclipboard/ -->
<dependency>
    <groupId>org.qenherkhopeshef</groupId>
    <artifactId>jvectclipboard</artifactId>
    <version>8.0.0</version>
</dependency>
// https://jarcasting.com/artifacts/org.qenherkhopeshef/jvectclipboard/
implementation 'org.qenherkhopeshef:jvectclipboard:8.0.0'
// https://jarcasting.com/artifacts/org.qenherkhopeshef/jvectclipboard/
implementation ("org.qenherkhopeshef:jvectclipboard:8.0.0")
'org.qenherkhopeshef:jvectclipboard:jar:8.0.0'
<dependency org="org.qenherkhopeshef" name="jvectclipboard" rev="8.0.0">
  <artifact name="jvectclipboard" type="jar" />
</dependency>
@Grapes(
@Grab(group='org.qenherkhopeshef', module='jvectclipboard', version='8.0.0')
)
libraryDependencies += "org.qenherkhopeshef" % "jvectclipboard" % "8.0.0"
[org.qenherkhopeshef/jvectclipboard "8.0.0"]

Dependencies

runtime (1)

Group / Artifact Type Version
com.lowagie : itext jar 2.1.5

Project Modules

There are no modules declared in this project.

JVectClipboard Swing graphical library

JVectClipboard is a simple Swing graphical library to allow copy/paste to various graphical formats.

It was custom made for the JSesh software, and doesn't provide functions (such as gradient paints) which are not needed by JSesh.

Its font handling is also a bit primitive.

See https://comp.qenherkhopeshef.org/blog/jvectcutandpaste for (slightly outdated) documentation.

Various tech notes

I had a hard time finding back why JSesh PDF copy/paste worked, and my examples did not. To declare PDF as a legitimate copy/paste format, you need to execute the following code.

 ((SystemFlavorMap) SystemFlavorMap.getDefaultFlavorMap())
                .addUnencodedNativeForFlavor(PDFTransferable.PDF_FLAVOR, "PDF");

Versions

Version
8.0.0