diff options
author | Sven Gothel <[email protected]> | 2023-10-03 02:37:32 +0200 |
---|---|---|
committer | Sven Gothel <[email protected]> | 2023-10-03 02:37:32 +0200 |
commit | c8ec6fa7cc16a0777db16af8b4d0d0b898f8b546 (patch) | |
tree | 7673f7635bd1eff387552f74eae688e33694e728 /src/graphui/classes/com/jogamp/graph/ui/layout | |
parent | 69549319e1d9ddf4d3903aa077f2c4cebb54195e (diff) |
GraphUI Shape: 'int name' -> 'int id' and add 'String name', change get/set methods accordingly
Diffstat (limited to 'src/graphui/classes/com/jogamp/graph/ui/layout')
-rw-r--r-- | src/graphui/classes/com/jogamp/graph/ui/layout/BoxLayout.java | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/src/graphui/classes/com/jogamp/graph/ui/layout/BoxLayout.java b/src/graphui/classes/com/jogamp/graph/ui/layout/BoxLayout.java index 80d9d0d50..a507e5de1 100644 --- a/src/graphui/classes/com/jogamp/graph/ui/layout/BoxLayout.java +++ b/src/graphui/classes/com/jogamp/graph/ui/layout/BoxLayout.java @@ -189,7 +189,7 @@ public class BoxLayout implements Group.Layout { s.getBounds().transform(pmv.getMv(), sbox); pmv.popMv(); - final int x = 0, y = 0; + final float x = 0, y = 0; if( TRACE_LAYOUT ) { System.err.println("bl("+i+").0: sbox "+sbox+", s "+s); } @@ -245,10 +245,8 @@ public class BoxLayout implements Group.Layout { } // Position and scale shape { - // New shape position, relative to previous position - final float aX = x + dxh; - final float aY = y + dyh; - s.moveTo( aX, aY, s.getPosition().z() ); + // New shape position + s.moveTo( x + dxh, y + dyh, s.getPosition().z() ); // Remove the negative or positive delta on centered axis. // Only remove negative offset of non-centered axis (i.e. underline) |