From 34632c59b5f664c41ef52a4abb9e3e1b484657d4 Mon Sep 17 00:00:00 2001 From: Sven Gothel Date: Tue, 28 Mar 2023 02:57:48 +0200 Subject: GraphUI Button: Simplify addShapeToRegion() --- src/graphui/classes/jogamp/graph/ui/shapes/Label0.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/graphui/classes/jogamp/graph/ui/shapes/Label0.java') diff --git a/src/graphui/classes/jogamp/graph/ui/shapes/Label0.java b/src/graphui/classes/jogamp/graph/ui/shapes/Label0.java index 1a7520daa..fe5f7f8e5 100644 --- a/src/graphui/classes/jogamp/graph/ui/shapes/Label0.java +++ b/src/graphui/classes/jogamp/graph/ui/shapes/Label0.java @@ -65,10 +65,10 @@ public class Label0 { this.font = font; } - public final AABBox addShapeToRegion(final float scale, final Region region, final AffineTransform tLeft, + public final AABBox addShapeToRegion(final float scale, final Region region, final float[] txy, final AffineTransform tmp1, final AffineTransform tmp2, final AffineTransform tmp3) { - tmp1.setTransform(tLeft); + tmp1.setToTranslation(txy[0], txy[1]); tmp1.scale(scale, scale, tmp2); return TextRegionUtil.addStringToRegion(region, font, tmp1, text, rgbaColor, tmp2, tmp3); } -- cgit v1.2.3