summaryrefslogtreecommitdiffstats
path: root/src/graphui/classes/jogamp/graph/ui
diff options
context:
space:
mode:
authorSven Gothel <[email protected]>2023-03-28 02:57:48 +0200
committerSven Gothel <[email protected]>2023-03-28 02:57:48 +0200
commit34632c59b5f664c41ef52a4abb9e3e1b484657d4 (patch)
treedb0ebd6dc2466ae3690ceb1b732d19894c361416 /src/graphui/classes/jogamp/graph/ui
parentfd66215f7e1e766d906234b978b0ad50cafc4716 (diff)
GraphUI Button: Simplify addShapeToRegion()
Diffstat (limited to 'src/graphui/classes/jogamp/graph/ui')
-rw-r--r--src/graphui/classes/jogamp/graph/ui/shapes/Label0.java4
1 files changed, 2 insertions, 2 deletions
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);
}