Class SlickerConsole

java.lang.Object
java.awt.Component
java.awt.Container
javax.swing.JComponent
org.processmining.framework.util.ui.SlickerConsole
All Implemented Interfaces:
ImageObserver, MenuContainer, Serializable

public class SlickerConsole extends JComponent
Author:
Christian W. Guenther (christian@deckfour.org)
See Also:
  • Field Details

    • dateFormat

      protected static SimpleDateFormat dateFormat
    • logFile

      protected static File logFile
    • testFile

      protected static File testFile
    • colorBg

      protected Color colorBg
    • colorFontBg

      protected Color colorFontBg
    • colorNormal

      public static Color colorNormal
    • colorWarning

      public static Color colorWarning
    • colorError

      public static Color colorError
    • colorDebug

      public static Color colorDebug
    • colorTest

      public static Color colorTest
    • messages

      protected ArrayList<String> messages
    • types

      protected ArrayList<Logger.MessageLevel> types
    • timestamps

      protected ArrayList<String> timestamps
    • maxSize

      protected int maxSize
    • showMessages

      protected boolean showMessages
    • showWarnings

      protected boolean showWarnings
    • showErrors

      protected boolean showErrors
    • showDebug

      protected boolean showDebug
    • showTest

      protected boolean showTest
    • expanded

      protected boolean expanded
    • lineHeight

      protected int lineHeight
    • stringHeight

      protected int stringHeight
    • leftBorder

      protected int leftBorder
  • Constructor Details

    • SlickerConsole

      public SlickerConsole(int bufferSize)
  • Method Details

    • setExpanded

      public void setExpanded(boolean expanded)
    • receiveMessage

      public void receiveMessage(String text, Logger.MessageLevel type)
    • scrollToBottom

      public void scrollToBottom()
    • paintComponent

      protected void paintComponent(Graphics g)
      Overrides:
      paintComponent in class JComponent
    • drawLine

      protected void drawLine(int index, int x, int y, Graphics2D g2d, boolean shadow)
    • isShowMessages

      public boolean isShowMessages()
      Returns:
      the showMessages
    • setShowMessages

      public void setShowMessages(boolean showMessages)
      Parameters:
      showMessages - the showMessages to set
    • isShowWarnings

      public boolean isShowWarnings()
      Returns:
      the showWarnings
    • setShowWarnings

      public void setShowWarnings(boolean showWarnings)
      Parameters:
      showWarnings - the showWarnings to set
    • isShowErrors

      public boolean isShowErrors()
      Returns:
      the showErrors
    • setShowErrors

      public void setShowErrors(boolean showErrors)
      Parameters:
      showErrors - the showErrors to set
    • isShowDebug

      public boolean isShowDebug()
      Returns:
      the showDebug
    • setShowDebug

      public void setShowDebug(boolean showDebug)
      Parameters:
      showDebug - the showDebug to set
    • isShowTest

      public boolean isShowTest()
      Returns:
      the showTest
    • setShowTest

      public void setShowTest(boolean showTest)
      Parameters:
      showTest - the showTest to set