From 42a91ba26c5b2487673667a3c4f6e8f648732be1 Mon Sep 17 00:00:00 2001 From: Karl Tauber Date: Sat, 12 Dec 2020 12:21:48 +0100 Subject: [PATCH] Extras: renamed SVG utility class from `com.formdev.flatlaf.extras.SVGUtils` to `com.formdev.flatlaf.extras.FlatSVGUtils` --- CHANGELOG.md | 2 ++ .../src/main/java/com/formdev/flatlaf/demo/DemoFrame.java | 4 ++-- .../flatlaf/extras/{SVGUtils.java => FlatSVGUtils.java} | 4 ++-- 3 files changed, 6 insertions(+), 4 deletions(-) rename flatlaf-extras/src/main/java/com/formdev/flatlaf/extras/{SVGUtils.java => FlatSVGUtils.java} (98%) diff --git a/CHANGELOG.md b/CHANGELOG.md index f5c0a485..b81d9237 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -8,6 +8,8 @@ FlatLaf Change Log - Extras: Renamed tri-state check box class from `com.formdev.flatlaf.extras.TriStateCheckBox` to `com.formdev.flatlaf.extras.components.FlatTriStateCheckBox`. +- Extras: Renamed SVG utility class from `com.formdev.flatlaf.extras.SVGUtils` + to `com.formdev.flatlaf.extras.FlatSVGUtils`. #### Fixed bugs diff --git a/flatlaf-demo/src/main/java/com/formdev/flatlaf/demo/DemoFrame.java b/flatlaf-demo/src/main/java/com/formdev/flatlaf/demo/DemoFrame.java index 195237c9..f611ee27 100644 --- a/flatlaf-demo/src/main/java/com/formdev/flatlaf/demo/DemoFrame.java +++ b/flatlaf-demo/src/main/java/com/formdev/flatlaf/demo/DemoFrame.java @@ -32,7 +32,7 @@ import com.formdev.flatlaf.demo.intellijthemes.*; import com.formdev.flatlaf.extras.FlatAnimatedLafChange; import com.formdev.flatlaf.extras.FlatSVGIcon; import com.formdev.flatlaf.extras.FlatUIDefaultsInspector; -import com.formdev.flatlaf.extras.SVGUtils; +import com.formdev.flatlaf.extras.FlatSVGUtils; import com.formdev.flatlaf.ui.JBRCustomDecorations; import net.miginfocom.layout.ConstraintParser; import net.miginfocom.layout.LC; @@ -59,7 +59,7 @@ class DemoFrame updateFontMenuItems(); controlBar.initialize( this, tabbedPane ); - setIconImages( SVGUtils.createWindowIconImages( "/com/formdev/flatlaf/demo/FlatLaf.svg" ) ); + setIconImages( FlatSVGUtils.createWindowIconImages( "/com/formdev/flatlaf/demo/FlatLaf.svg" ) ); if( tabIndex >= 0 && tabIndex < tabbedPane.getTabCount() && tabIndex != tabbedPane.getSelectedIndex() ) tabbedPane.setSelectedIndex( tabIndex ); diff --git a/flatlaf-extras/src/main/java/com/formdev/flatlaf/extras/SVGUtils.java b/flatlaf-extras/src/main/java/com/formdev/flatlaf/extras/FlatSVGUtils.java similarity index 98% rename from flatlaf-extras/src/main/java/com/formdev/flatlaf/extras/SVGUtils.java rename to flatlaf-extras/src/main/java/com/formdev/flatlaf/extras/FlatSVGUtils.java index 9f698d48..f40d3d83 100644 --- a/flatlaf-extras/src/main/java/com/formdev/flatlaf/extras/SVGUtils.java +++ b/flatlaf-extras/src/main/java/com/formdev/flatlaf/extras/FlatSVGUtils.java @@ -34,7 +34,7 @@ import com.kitfox.svg.SVGException; * * @author Karl Tauber */ -public class SVGUtils +public class FlatSVGUtils { /** * Creates from the given SVG a list of icon images with different sizes that @@ -131,7 +131,7 @@ public class SVGUtils */ private static SVGDiagram loadSVG( String svgName ) { try { - URL url = SVGUtils.class.getResource( svgName ); + URL url = FlatSVGUtils.class.getResource( svgName ); return SVGCache.getSVGUniverse().getDiagram( url.toURI() ); } catch( URISyntaxException ex ) { throw new RuntimeException( ex );