{"id":19372484,"url":"https://github.com/jfree/swtgraphics2d","last_synced_at":"2025-07-30T21:35:33.714Z","repository":{"id":46872836,"uuid":"52078427","full_name":"jfree/swtgraphics2d","owner":"jfree","description":"A Graphics2D implementation targeting SWT","archived":false,"fork":false,"pushed_at":"2021-09-22T04:51:30.000Z","size":1917,"stargazers_count":11,"open_issues_count":0,"forks_count":3,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-07-29T10:26:53.113Z","etag":null,"topics":["graphics2d","java","swt"],"latest_commit_sha":null,"homepage":"","language":"Java","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"lgpl-2.1","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/jfree.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2016-02-19T09:53:40.000Z","updated_at":"2024-10-04T12:21:24.000Z","dependencies_parsed_at":"2022-09-08T04:50:31.860Z","dependency_job_id":null,"html_url":"https://github.com/jfree/swtgraphics2d","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/jfree/swtgraphics2d","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jfree%2Fswtgraphics2d","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jfree%2Fswtgraphics2d/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jfree%2Fswtgraphics2d/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jfree%2Fswtgraphics2d/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/jfree","download_url":"https://codeload.github.com/jfree/swtgraphics2d/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jfree%2Fswtgraphics2d/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":267945364,"owners_count":24170218,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-07-30T02:00:09.044Z","response_time":70,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["graphics2d","java","swt"],"created_at":"2024-11-10T08:23:36.426Z","updated_at":"2025-07-30T21:35:33.542Z","avatar_url":"https://github.com/jfree.png","language":"Java","funding_links":[],"categories":[],"sub_categories":[],"readme":"SWTGraphics2D\n=============\n\nVersion 1.1.1 - not yet released.\n\n(C)opyright 2006-2021, by David Gilbert and Contributors.  All rights reserved.\n\n[![Maven Central](https://maven-badges.herokuapp.com/maven-central/org.jfree/swtgraphics2d/badge.svg)](https://maven-badges.herokuapp.com/maven-central/org.jfree/swtgraphics2d)\n\nOverview\n--------\n**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.  \n\nBackground\n----------\nThe code was originally developed as part of the [JFreeChart](http://github.com/jfree/jfreechart) project .  It is now a standalone project.\n\nInclude\n-------\n**SWTGraphics2D** is published to the Central Repository.  You can include it in your projects with the following dependency:\n\n    \u003cdependency\u003e\n      \u003cgroupId\u003eorg.jfree\u003c/groupId\u003e\n      \u003cartifactId\u003eswtgraphics2d\u003c/artifactId\u003e\n      \u003cversion\u003e1.1.0\u003c/version\u003e\n    \u003c/dependency\u003e\n\nTesting\n-------\n**SWTGraphics2D** is being tested using [Graphics2D Tester](https://github.com/jfree/graphics2d-tester) and produces the output shown below (using the snapshot version of `SWTGraphics2D`)\n\nDue to limitations of the SWT Graphics API, there are several Java2D features that cannot be supported:\n\n- the Porter-Duff compositing rules in `AlphaComposite`\n- multi-linear and radial gradient paints.\n\n![SWT test output](swtgraphics2d.png)\n\nLicense\n-------\n**SWTGraphics2D** is free software under the terms of the GNU Lesser General Public License (LGPL) version 2.1 or later.  \n\n    Please note that SWTGraphics2D is distributed WITHOUT ANY WARRANTY; without even\n    the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  \n    Please refer to the license for details.\n\nAdditionally, the code is dual-licensed under the Eclipse Public License 2.0 (with the agreement of the main contributors: David Gilbert, Henry Proudhon and Cedric Chabanois).  \n\n\nChange History\n--------------\n\nVersion 1.1.1 (not-yet-released)\n- update `drawPolygon` and `drawPolyline` to directly use SWT GC equivalent ([#2](https://github.com/jfree/swtgraphics2d/pull/2))\n- added the Eclipse Public License 2.0 as an option alongside the existing GNU Lesser General Public License.\n\nVersion 1.1.0 (29-Aug-2021)\n- fixed interaction between `setPaint()` and `setColor()`\n- added support for `GradientPaint` (without cyclic attribute) in `setPaint()`\n- cache AWT paint setting to return in `getPaint()`  \n- apply winding rule in `fill(Shape)`\n- improved correctness and efficiency of transformations\n- fixed clipping bugs\n- implemented `create()` method\n- implemented `getDeviceConfiguration()`\n- fixed `setFont()` method for `null` argument\n- fixed failing tests for `drawImage()` methods with `null` arguments\n- added JUnit 5 tests\n\nVersion 1.0 (20 February 2016)\n- initial release as a standalone project (previously included with JFreeChart SWT support).","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjfree%2Fswtgraphics2d","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjfree%2Fswtgraphics2d","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjfree%2Fswtgraphics2d/lists"}