Package jme3utilities.ui
Class HelpBuilder
java.lang.Object
jme3utilities.ui.HelpBuilder
Generate hotkey clues for action-oriented applications.
- 
Field SummaryFields
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptioncom.jme3.scene.NodebuildDetailedNode(InputMode inputMode, com.jme3.font.Rectangle bounds, com.jme3.font.BitmapFont font, com.jme3.texture.image.ColorSpace colorSpace) Build a Node to describe the hotkey mappings of the specified InputMode in detail.com.jme3.scene.NodebuildMinimalNode(InputMode inputMode, com.jme3.font.Rectangle bounds, com.jme3.font.BitmapFont font, com.jme3.texture.image.ColorSpace colorSpace) Build a Node to describe the "toggle help" hotkey mappings of the specified InputMode.com.jme3.math.ColorRGBAcopyBackgroundColor(com.jme3.math.ColorRGBA storeResult) Copy the color of the background.static StringCompactly describe the specified Combo using compressed local hotkey names.floatpadding()Return the amount of padding between the content bounds and the edges of the background.floatReturn the amount of horizontal space between hotkey descriptions.voidsetBackgroundColor(com.jme3.math.ColorRGBA newColor) Alter the color for backgrounds.voidsetPadding(float newPadding) Alter the amount of padding between the content bounds and the edges of the background.voidsetSeparation(float newSeparation) Alter the amount of horizontal space between hotkey descriptions.
- 
Field Details- 
loggermessage logger for this class
 
- 
- 
Constructor Details- 
HelpBuilderpublic HelpBuilder()A no-arg constructor to avoid javadoc warnings from JDK 18.
 
- 
- 
Method Details- 
buildDetailedNodepublic com.jme3.scene.Node buildDetailedNode(InputMode inputMode, com.jme3.font.Rectangle bounds, com.jme3.font.BitmapFont font, com.jme3.texture.image.ColorSpace colorSpace) Build a Node to describe the hotkey mappings of the specified InputMode in detail.- Parameters:
- inputMode- the InputMode to describe (not null, unaffected)
- bounds- (in framebuffer pixels, relative to the resulting node, not null, unaffected)
- font- the font to use (not null, unaffected)
- colorSpace- the ColorSpace to use (not null)
- Returns:
- a new orphan Node, suitable for attachment to the GUI node
 
- 
buildMinimalNodepublic com.jme3.scene.Node buildMinimalNode(InputMode inputMode, com.jme3.font.Rectangle bounds, com.jme3.font.BitmapFont font, com.jme3.texture.image.ColorSpace colorSpace) Build a Node to describe the "toggle help" hotkey mappings of the specified InputMode.- Parameters:
- inputMode- the InputMode to describe (not null, unaffected)
- bounds- (in framebuffer pixels, relative to the resulting node, not null, unaffected)
- font- the font to use (not null, unaffected)
- colorSpace- the ColorSpace to use (not null)
- Returns:
- a new orphan Node, suitable for attachment to the GUI node
 
- 
copyBackgroundColorpublic com.jme3.math.ColorRGBA copyBackgroundColor(com.jme3.math.ColorRGBA storeResult) Copy the color of the background.- Parameters:
- storeResult- storage for the result (modified if not null)
- Returns:
- the gamma-encoded color (either storeResultor a new instance)
 
- 
describeCompactly describe the specified Combo using compressed local hotkey names. Compare withCombo.toStringLocal().- Parameters:
- combo- the Combo to describe (not null)
- Returns:
- a textual description (not null)
 
- 
paddingpublic float padding()Return the amount of padding between the content bounds and the edges of the background.- Returns:
- the padding (in framebuffer pixels, ≥0)
 
- 
separationpublic float separation()Return the amount of horizontal space between hotkey descriptions.- Returns:
- the separation (in framebuffer pixels, >0)
 
- 
setBackgroundColorpublic void setBackgroundColor(com.jme3.math.ColorRGBA newColor) Alter the color for backgrounds.- Parameters:
- newColor- the desired color (not null, unaffected, gamma-encoded, default=opaque black)
 
- 
setPaddingpublic void setPadding(float newPadding) Alter the amount of padding between the content bounds and the edges of the background.- Parameters:
- newPadding- the desired padding (in framebuffer pixels, ≥0, default=5)
 
- 
setSeparationpublic void setSeparation(float newSeparation) Alter the amount of horizontal space between hotkey descriptions.- Parameters:
- newSeparation- the desired separation (in framebuffer pixels, >0, default=20)
 
 
-