Package docking.util

Class GGlassPaneMessage

java.lang.Object
docking.util.GGlassPaneMessage

public class GGlassPaneMessage extends Object
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 Details

    • GGlassPaneMessage

      public GGlassPaneMessage(JComponent component)
  • Method Details

    • setHideDelay

      public void setHideDelay(Duration duration)
      Sets the amount of time the message will remain on screen after the animation has completed. To hide the message sooner, call hide().
      Parameters:
      duration - the duration
    • showCenteredMessage

      public void showCenteredMessage(String newMessage)
      Shows the given message centered over the component used by this class.
      Parameters:
      newMessage - the message
    • showBottomMessage

      public void showBottomMessage(String newMessage)
      Shows a message at the bottom of the component used by this class.
      Parameters:
      newMessage - the message
    • showMessage

      public void showMessage(String newMessage, AnimationPainter painter)
    • hide

      public void hide()
      Hides any message being displayed. This can be called even if the message has been hidden.
    • toString

      public String toString()
      Overrides:
      toString in class Object