Package com.jogamp.graph.ui
Class TooltipText
- java.lang.Object
-
- com.jogamp.graph.ui.Tooltip
-
- com.jogamp.graph.ui.TooltipText
-
public class TooltipText extends Tooltip
-
-
Field Summary
-
Fields inherited from class com.jogamp.graph.ui.Tooltip
DEFAULT_DELAY
-
-
Constructor Summary
Constructors Constructor Description TooltipText(CharSequence tipText, Font tipFont, float scaleY)Ctor ofTooltipTextusingTooltip.DEFAULT_DELAY,Region.VBAA_RENDERING_BITand a slightly transparent white background with an opaque almost-black text color.TooltipText(CharSequence tipText, Font tipFont, com.jogamp.math.Vec4f backColor, com.jogamp.math.Vec4f labelColor, float scaleY, long delayMS, int renderModes)Ctor ofTooltipText.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ShapecreateTip(Scene scene, com.jogamp.math.geom.AABBox toolMvBounds)Create a new HUD tip shape, usually called byScene-
Methods inherited from class com.jogamp.graph.ui.Tooltip
destroyTip, forced, getTipMvPosition, getTipMvPosition, getTipMvPosition, getTool, getToolMvBounds, now, start, stop, tick, toString
-
-
-
-
Constructor Detail
-
TooltipText
public TooltipText(CharSequence tipText, Font tipFont, com.jogamp.math.Vec4f backColor, com.jogamp.math.Vec4f labelColor, float scaleY, long delayMS, int renderModes)
Ctor ofTooltipText.- Parameters:
tipText- HUD tip texttipFont- HUD tip fontbackColor- optional HUD tip background color, if null a slightly transparent white background is usedlabelColor- optional HUD tip front color, if null an opaque almost-black is usedscaleY- HUD tip vertical scale against tool heightdelayMS- delay until HUD tip is visible after timer start (mouse moved)renderModes- Graph'sRegionrender modes, seecreate(..).
-
TooltipText
public TooltipText(CharSequence tipText, Font tipFont, float scaleY)
Ctor ofTooltipTextusingTooltip.DEFAULT_DELAY,Region.VBAA_RENDERING_BITand a slightly transparent white background with an opaque almost-black text color.- Parameters:
tipText- HUD tip texttipFont- HUD tip fontscaleY- HUD tip vertical scale against tool heighttool- the tool shape for this tip
-
-
Method Detail
-
createTip
public Shape createTip(Scene scene, com.jogamp.math.geom.AABBox toolMvBounds)
Description copied from class:TooltipCreate a new HUD tip shape, usually called byScene- Specified by:
createTipin classTooltip- Parameters:
scene- theScenecaller for which this HUD tip shape is createdtoolMvBounds-AABBoxof theTooltip.getTool()in model-view (Mv) space of the givenScene- Returns:
- newly created HUD tip shape
- See Also:
Tooltip.destroyTip(GL2ES2, RegionRenderer, Shape)
-
-