![Create React App Officially Deprecated Amid React 19 Compatibility Issues](https://cdn.sanity.io/images/cgdhsj6q/production/04fa08cf844d798abc0e1a6391c129363cc7e2ab-1024x1024.webp?w=400&fit=max&auto=format)
Security News
Create React App Officially Deprecated Amid React 19 Compatibility Issues
Create React App is officially deprecated due to React 19 issues and lack of maintenance—developers should switch to Vite or other modern alternatives.
github.com/jfree/fxgraphics2d
Version 2.1.3, 23 January 2022.
FXGraphics2D is an implementation of Java's Graphics2D
API that targets the JavaFX Canvas
. It makes it possible to reuse existing Java2D code in a JavaFX application. The following example is generated by JFreeChart-FX:
The code has been developed for the use of Orson Charts (https://github.com/jfree/orson-charts/) and JFreeChart (http://www.jfree.org/jfreechart). Numerous demos can be found in the JFree-FXDemos project page at GitHub.
You can also read about FXGraphics2D in this Java Magazine article:
Temporary: link above is broken, please use this in the meantime:
FXGraphics2D requires JDK 11 or later and is licensed under the terms of a (three clause) BSD-style license.
To include FXGraphics2D
in your own project, add the following Maven dependency:
<dependency>
<groupId>org.jfree</groupId>
<artifactId>org.jfree.fxgraphics2d</artifactId>
<version>2.1.3</version>
</dependency>
You can build FXGraphics2D
from sources using Maven:
mvn clean install
FXGraphics2D is being tested using Graphics2D Tester and produces the output shown below. There are several areas that still need work:
AlphaComposite
cannot be mapped 100% to JavaFX equivalentscreate()
method is not yet managing the user clip correctly, causing problems in the Swing UI / SteelSeries testIf you have feedback about the FXGraphics2D
library, please use the discussion area.
FXGraphics2D
is licensed under a BSD-style license:
Copyright (c) 2014-2022, David Gilbert.
All rights reserved.
Redistribution and use in source and binary forms, with or without modification,
are permitted provided that the following conditions are met:
1. Redistributions of source code must retain the above copyright notice, this
list of conditions and the following disclaimer.
2. Redistributions in binary form must reproduce the above copyright notice,
this list of conditions and the following disclaimer in the documentation
and/or other materials provided with the distribution.
3. Neither the name of the copyright holder nor the names of its contributors
may be used to endorse or promote products derived from this software without
specific prior written permission.
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR
ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
(INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON
ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
Path2D
instances;RadialGradientPaint
.null
arguments in drawImage()
methods;org.jfree.fxgraphics2d
);draw(Shape)
alters the shape state for RenderingHints.VALUE_STROKE_PURE
;org.jfree.fxgraphics2d
).setClip()
twice.drawImage()
method with null
transform;setComposite()
for alpha values;drawImage()
method;pom.xml
to distribution.getGraphicsDevice()
method;setPaint()
and setStroke()
, don't update anything if the value is the same;drawImage()
method;Note that version 1.2.1 corrects a Maven dependency problem that sneaked into the 1.2 release.
KEY_STROKE_CONTROL
rendering hint for lines and rectangles (used to
sharpen gridlines and borders in JFreeChart);fontRenderContext
so that glyph positioning is more precise for
TextLayout
;clearRect()
call in the JFreeChart demo;FAQs
Unknown package
Did you know?
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.
Security News
Create React App is officially deprecated due to React 19 issues and lack of maintenance—developers should switch to Vite or other modern alternatives.
Security News
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.
Security News
The Linux Foundation is warning open source developers that compliance with global sanctions is mandatory, highlighting legal risks and restrictions on contributions.