Class MessageDisplayComponentSupport

java.lang.Object
com.inductiveautomation.ignition.designer.mvvm.messagedisplay.MessageDisplayComponentSupport

public final class MessageDisplayComponentSupport extends Object
A utility class that provides support for painting text on a JComponent.

In the component that you want to paint text on, add the following code to the paintComponent method:
     private final MessageDisplayComponentSupport support = new MessageDisplayComponentSupport(this);

    @Override
     protected void paintComponent(Graphics g) {
         super.paintComponent(g);
         support.paintTextOverlay(g);
     }
 
  • Constructor Details

  • Method Details

    • setPromptText

      public void setPromptText(String text)
    • setInfoText

      public void setInfoText(String text)
    • setWarnText

      public void setWarnText(String text)
    • clearAlert

      public void clearAlert()
    • paintTextOverlay

      public void paintTextOverlay(Graphics g)