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 Link icon

    • GGlassPaneMessage Link icon

      public GGlassPaneMessage(JComponent component)
  • Method Details Link icon

    • setHideDelay Link icon

      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 Link icon

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

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

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

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

      public String toString()
      Overrides:
      toString in class Object