Class ConsoleTextPane

All Implemented Interfaces:
OptionsChangeListener, ImageObserver, MenuContainer, Serializable, Accessible, Scrollable

public class ConsoleTextPane extends JTextPane implements OptionsChangeListener
A generic text pane that is used as a console to which text can be written. There is not test for this class, but it is indirectly tested by FrontEndGuiTest.
See Also:
  • Constructor Details

    • ConsoleTextPane

      public ConsoleTextPane(PluginTool tool)
  • Method Details

    • setScrollLock

      public void setScrollLock(boolean lock)
    • addMessage

      public void addMessage(String message)
    • addPartialMessage

      public void addPartialMessage(String message)
    • addErrorMessage

      public void addErrorMessage(String message)
    • optionsChanged

      public void optionsChanged(ToolOptions options, String name, Object oldValue, Object newValue)
      Description copied from interface: OptionsChangeListener
      Notification that an option changed.

      Note: to reject an options change, you can throw a OptionsVetoException.

      Specified by:
      optionsChanged in interface OptionsChangeListener
      Parameters:
      options - options object containing the property that changed
      name - name of option that changed
      oldValue - old value of the option
      newValue - new value of the option
    • setFont

      public void setFont(Font font)
      Overrides:
      setFont in class JComponent
    • dispose

      public void dispose()