Class SwingLogPane

All Implemented Interfaces:
ImageObserver, MenuContainer, Serializable, Accessible

public class SwingLogPane extends JPanel
A Swing component that displays logging messages.
See Also:
Serialized Form
  • Constructor Details

    • SwingLogPane

      public SwingLogPane​(com.dua3.utility.logging.LogBuffer buffer)
    • SwingLogPane

      public SwingLogPane​(com.dua3.utility.logging.LogBuffer buffer, Function<com.dua3.utility.logging.LogEntry,​com.dua3.utility.data.Color> colorize)
  • Method Details

    • setLogFormatter

      public void setLogFormatter​(Function<com.dua3.utility.logging.LogEntry,​String> format)
      Set the formatter used to convert log entries to text.
      Parameters:
      format - the formatting function
    • setDividerLocation

      public void setDividerLocation​(double propertionalLocation)
      Set the diivider location. Analog to JSplitPane.setDividerLocation(double).
      Parameters:
      propertionalLocation - the proportional location
    • setDividerLocation

      public void setDividerLocation​(int location)
      Set the diivider location. Analog to JSplitPane.setDividerLocation(int).
      Parameters:
      location - the location
    • clearBuffer

      public void clearBuffer()
      Clear the log buffer.
    • copyBuffer

      public void copyBuffer()
      Copy contents of log buffer to clipboard.
    • setBounds

      public void setBounds​(int x, int y, int width, int height)
      Overrides:
      setBounds in class Component