diff options
author | Sven Gothel <[email protected]> | 2023-09-24 06:59:19 +0200 |
---|---|---|
committer | Sven Gothel <[email protected]> | 2023-09-24 06:59:19 +0200 |
commit | b87b41eb55959f4fbf70e4ed868701545e6ed687 (patch) | |
tree | d59df409190ed0e6adb2890218b9cdf4a625ecbb /src/graphui/classes/com/jogamp/graph/ui/shapes | |
parent | bcb71a24ff6c211ea67b4916bd7e43e502f7bfe5 (diff) |
GraphUI Label: Condense getUnscaledGlyphBounds()
Diffstat (limited to 'src/graphui/classes/com/jogamp/graph/ui/shapes')
-rw-r--r-- | src/graphui/classes/com/jogamp/graph/ui/shapes/Label.java | 5 |
1 files changed, 1 insertions, 4 deletions
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() { |