New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

org.jfree:swtgraphics2d

Package Overview
Dependencies
Maintainers
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

org.jfree:swtgraphics2d

An implementation of Java2D's Graphics2D API that targets an SWT graphics context, allowing existing Java2D code to be reused in SWT applications.

  • 1.1.0
  • Source
  • Maven
  • Socket score

Version published
Maintainers
2
Source

SWTGraphics2D

Version 1.1.0 - 29 August 2021.

(C)opyright 2006-2021, by Object Refinery Limited and Contributors. All rights reserved.

Maven Central

Overview

SWTGraphics2D is an implementation of Java2D's Graphics2D API that targets an Eclipse Standard Widget Toolkit (SWT) graphics context, allowing the use of Java2D code in SWT applications.

Background

The code was originally developed as part of the JFreeChart project . It is now a standalone project.

Include

SWTGraphics2D is published to the Central Repository. You can include it in your projects with the following dependency:

<dependency>
  <groupId>org.jfree</groupId>
  <artifactId>swtgraphics2d</artifactId>
  <version>1.1.0</version>
</dependency>

Testing

SWTGraphics2D is being tested using Graphics2D Tester and produces the output shown below (using the snapshot version of SWTGraphics2D)

Due to limitations of the SWT Graphics API, there are several Java2D features that cannot be supported:

  • the Porter-Duff compositing rules in AlphaComposite
  • multi-linear and radial gradient paints.

SWT test output

License

SWTGraphics2D is free software under the terms of the GNU Lesser General Public License (LGPL) version 2.1 or later.

Please note that SWTGraphics2D is distributed WITHOUT ANY WARRANTY; without even
the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  
Please refer to the license for details.

In the future, it is planned that the code will be dual-licensed under the Eclipse Public License 2.0 in addition to the LGPL. The main contributors (Henry Proudhon and David Gilbert) have agreed to this already.

Change History

Version 1.1.0 (29-Aug-2021)

  • fixed interaction between setPaint() and setColor()
  • added support for GradientPaint (without cyclic attribute) in setPaint()
  • cache AWT paint setting to return in getPaint()
  • apply winding rule in fill(Shape)
  • improved correctness and efficiency of transformations
  • fixed clipping bugs
  • implemented create() method
  • implemented getDeviceConfiguration()
  • fixed setFont() method for null argument
  • fixed failing tests for drawImage() methods with null arguments
  • added JUnit 5 tests

Version 1.0 (20 February 2016)

  • initial release as a standalone project (previously included with JFreeChart SWT support).

FAQs

Package last updated on 29 Aug 2021

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc