275276277278279280281282283284285
// use an scurve to smoothly shift origin parent.setHudXY(Math.round(MathUtils.lerp(sCurve, originX, endX)), Math.round(MathUtils.lerp(sCurve, originY, endY))); parent.layout(); } }); } @Override
9899100101102103104105106107108
angle += time * 10; angle %= 360; rotate.fromAngleNormalAxis(angle * MathUtils.DEG_TO_RAD, axis); caller.setRotation(rotate); caller.fireComponentDirty(); panel.layout(); } }); rotatingLabel.setLayoutData(BorderLayoutData.NORTH); return panel;