aboutsummaryrefslogtreecommitdiffstats
path: root/src/demos/com
diff options
context:
space:
mode:
authorSven Göthel <[email protected]>2024-01-19 06:11:46 +0100
committerSven Göthel <[email protected]>2024-01-19 06:11:46 +0100
commita516c694031e77c0e94d30f769c66495c4bf72ea (patch)
tree062658336b7abf5def31289279a9d8171e5dcb84 /src/demos/com
parent48f907dc431817806f8bd766d98dcca59dc8290c (diff)
GraphUI Tooltip: Use delayMS for no time-based alarm (only used for now()); FontView01: Use TooltipShape for GlyphShape only with mouse click -> Tooltip.now()
Diffstat (limited to 'src/demos/com')
-rw-r--r--src/demos/com/jogamp/opengl/demos/graph/ui/FontView01.java4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/demos/com/jogamp/opengl/demos/graph/ui/FontView01.java b/src/demos/com/jogamp/opengl/demos/graph/ui/FontView01.java
index a59cdfb74..bf8d96f9e 100644
--- a/src/demos/com/jogamp/opengl/demos/graph/ui/FontView01.java
+++ b/src/demos/com/jogamp/opengl/demos/graph/ui/FontView01.java
@@ -343,7 +343,7 @@ public class FontView01 {
mainView = new Group(new GridLayout(1, 0f, 0f, Alignment.None));
mainView.addShape(glyphInfoView);
final String infoText = "Hover over this label and wait 1s for tooltip help.";
- final String infoHelp = "Hover over a Glyph and wait 1s for a big tooltip view.\n"+
+ final String infoHelp = "Click on a Glyph for a big tooltip view.\n"+
"Key-Up/Down or Slider-Mouse-Scroll to move through glyphs.\n"+
"Page-Up/Down or Control + Slider-Mouse-Scroll to page faster.\n"+
"Mouse-Scroll over left-half of Window rotates and holding control zooms.";
@@ -526,7 +526,7 @@ public class FontView01 {
sink.receiveKeyEvents(c1);
// sink.receiveMouseEvents(c1);
c1.setToolTip( new TooltipShape(new Vec4f(1, 1, 1, 1), new Vec4f(0, 0, 0, 1), 0.01f,
- new Padding(0.05f), new Vec2f(14,14), 1000, options.renderModes,
+ new Padding(0.05f), new Vec2f(14,14), 0, options.renderModes,
g, TooltipShape.NoOpDtor) );
c1.onClicked((final Shape s) -> {
c1.getTooltip().now();