From ec5d278a51eaaf4062010df41cf23f884e4b715b Mon Sep 17 00:00:00 2001 From: Sven Göthel Date: Sun, 4 Feb 2024 20:49:20 +0100 Subject: GraphUI Cleanup: Use TreeTool directly (Reduce virtl-funcs); Fix typos; Use PointerListener for onClicked(), add onHover(); Subsequent commits will fix complete cleanup where code was changed mostly regarding other issues. --- src/graphui/classes/com/jogamp/graph/ui/shapes/Button.java | 3 --- src/graphui/classes/com/jogamp/graph/ui/shapes/MediaButton.java | 2 +- 2 files changed, 1 insertion(+), 4 deletions(-) (limited to 'src/graphui/classes/com/jogamp/graph/ui/shapes') diff --git a/src/graphui/classes/com/jogamp/graph/ui/shapes/Button.java b/src/graphui/classes/com/jogamp/graph/ui/shapes/Button.java index 0a501f3db..486ba8067 100644 --- a/src/graphui/classes/com/jogamp/graph/ui/shapes/Button.java +++ b/src/graphui/classes/com/jogamp/graph/ui/shapes/Button.java @@ -149,14 +149,11 @@ public class Button extends BaseButton { @Override protected void toggleNotify(final boolean on) { - int i=0; if( null != labelOn ) { if( on ) { labelNow = labelOn; - i = 1; } else { labelNow = labelOff; - i = -1; } markShapeDirty(); } diff --git a/src/graphui/classes/com/jogamp/graph/ui/shapes/MediaButton.java b/src/graphui/classes/com/jogamp/graph/ui/shapes/MediaButton.java index 89d598d4e..3ba2a039a 100644 --- a/src/graphui/classes/com/jogamp/graph/ui/shapes/MediaButton.java +++ b/src/graphui/classes/com/jogamp/graph/ui/shapes/MediaButton.java @@ -146,7 +146,7 @@ public class MediaButton extends TexSeqButton { setSubtitleColor(DEFAULT_ASS_SUB_COLOR, DEFAULT_ASS_SUB_BLEND); this.subTexImg = new ImageButton(renderModes, width, height, new ImageSequence(mPlayer.getTextureUnit(), true /* useBuildInTexLookup */)); - this.subTexImg.setPerp().setToggleable(false).setDragAndResizeable(false).setInteractive(false); + this.subTexImg.setPerp().setToggleable(false).setDragAndResizable(false).setInteractive(false); // this.subTexImg.setBorder(0.001f).setBorderColor(1, 1, 0, 1); this.subTexImg.getImageSequence().setParams(GL.GL_LINEAR, GL.GL_LINEAR, GL.GL_CLAMP_TO_EDGE, GL.GL_CLAMP_TO_EDGE); this.subTexImg.setARatioAdjustment(false); -- cgit v1.2.3