From b87b41eb55959f4fbf70e4ed868701545e6ed687 Mon Sep 17 00:00:00 2001 From: Sven Gothel Date: Sun, 24 Sep 2023 06:59:19 +0200 Subject: GraphUI Label: Condense getUnscaledGlyphBounds() --- src/graphui/classes/com/jogamp/graph/ui/shapes/Label.java | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) (limited to 'src/graphui/classes/com/jogamp/graph/ui/shapes/Label.java') diff --git a/src/graphui/classes/com/jogamp/graph/ui/shapes/Label.java b/src/graphui/classes/com/jogamp/graph/ui/shapes/Label.java index dbce45a6d..b98e93174 100644 --- a/src/graphui/classes/com/jogamp/graph/ui/shapes/Label.java +++ b/src/graphui/classes/com/jogamp/graph/ui/shapes/Label.java @@ -193,10 +193,7 @@ public class Label extends GraphShape { /** Convenient shortcut to {@link Font#getGlyphBounds(CharSequence, AffineTransform, AffineTransform)}. */ public static AABBox getUnscaledGlyphBounds(final Font font, final CharSequence text) { - final AffineTransform tempT1 = new AffineTransform(); - final AffineTransform tempT2 = new AffineTransform(); - - return font.getGlyphBounds(text, tempT1, tempT2); + return font.getGlyphBounds(text); } /** Convenient shortcut to {@link Font#getGlyphBounds(CharSequence, AffineTransform, AffineTransform)} using {@link #getFont()} and {@link #getText()}. */ public AABBox getUnscaledGlyphBounds() { -- cgit v1.2.3