Package docking.util
Class GGlassPaneMessage
java.lang.Object
docking.util.GGlassPaneMessage
A class that allows clients to paint a message over top of a given component.
This class will honor newline characters and will word wrap as needed. If the message being displayed will not fit within the bounds of the given component, then the text will be clipped.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
hide()
Hides any message being displayed.void
setHideDelay
(Duration duration) Sets the amount of time the message will remain on screen after the animation has completed.void
showBottomMessage
(String newMessage) Shows a message at the bottom of the component used by this class.void
showCenteredMessage
(String newMessage) Shows the given message centered over the component used by this class.void
showMessage
(String newMessage, AnimationPainter painter) toString()
-
Constructor Details
-
GGlassPaneMessage
-
-
Method Details
-
setHideDelay
Sets the amount of time the message will remain on screen after the animation has completed. To hide the message sooner, callhide()
.- Parameters:
duration
- the duration
-
showCenteredMessage
Shows the given message centered over the component used by this class.- Parameters:
newMessage
- the message
-
showBottomMessage
Shows a message at the bottom of the component used by this class.- Parameters:
newMessage
- the message
-
showMessage
-
hide
public void hide()Hides any message being displayed. This can be called even if the message has been hidden. -
toString
-