aboutsummaryrefslogtreecommitdiffstats
path: root/src/graphui/classes/com/jogamp/graph/ui/Tooltip.java
diff options
context:
space:
mode:
authorSven Göthel <[email protected]>2024-01-22 08:37:26 +0100
committerSven Göthel <[email protected]>2024-01-22 08:37:26 +0100
commit6c11c32f4081e9029eeed281d317894bd179f1e3 (patch)
tree7b338bf48fb698aac9e71a638920c4b22a4947af /src/graphui/classes/com/jogamp/graph/ui/Tooltip.java
parent6cf158cc59e901b49ab54681e363d23492421a9d (diff)
Simplify TooltipShape: Create own wrapper Group to not mutate user given Shape (if reused in DAG); Fix FontView01 TooltipShape instance, use NoOp DestroyCallback
Diffstat (limited to 'src/graphui/classes/com/jogamp/graph/ui/Tooltip.java')
-rw-r--r--src/graphui/classes/com/jogamp/graph/ui/Tooltip.java7
1 files changed, 5 insertions, 2 deletions
diff --git a/src/graphui/classes/com/jogamp/graph/ui/Tooltip.java b/src/graphui/classes/com/jogamp/graph/ui/Tooltip.java
index b7a79b4ca..91e67dbb7 100644
--- a/src/graphui/classes/com/jogamp/graph/ui/Tooltip.java
+++ b/src/graphui/classes/com/jogamp/graph/ui/Tooltip.java
@@ -37,6 +37,8 @@ import com.jogamp.math.geom.AABBox;
import com.jogamp.math.util.PMVMatrix4f;
import com.jogamp.opengl.GL2ES2;
import com.jogamp.opengl.GLAutoDrawable;
+import com.jogamp.opengl.GLProfile;
+import com.jogamp.opengl.util.texture.TextureSequence;
/** A HUD tooltip for {@link Shape}, see {@link Shape#setToolTip(Tooltip)}. */
public abstract class Tooltip {
@@ -51,6 +53,7 @@ public abstract class Tooltip {
private volatile boolean forced;
/** Shape 'tool' owning this tooltip. */
private Shape tool;
+ /** Graph's {@link Region} render modes, see {@link GLRegion#create(GLProfile, int, TextureSequence) create(..)}. */
protected final int renderModes;
protected final Vec4f backColor = new Vec4f(1, 1, 0, 1);
protected final Vec4f frontColor = new Vec4f(0.1f, 0.1f, 0.1f, 1);
@@ -185,8 +188,8 @@ public abstract class Tooltip {
* <p>
* This default implementation simply calls {@link Shape#destroy(GL2ES2, RegionRenderer)}.
* </p>
- * @param gl
- * @param renderer
+ * @param gl current {@link GL2ES2}
+ * @param renderModes Graph's {@link Region} render modes, see {@link GLRegion#create(GLProfile, int, TextureSequence) create(..)}.
* @param tip
* @see #createTip(GLAutoDrawable, Scene, PMVMatrix4f, AABBox)
*/