|
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjava.awt.Component
java.awt.Container
javax.swing.JComponent
javax.swing.text.JTextComponent
javax.swing.JEditorPane
javax.swing.JTextPane
de.lmu.ifi.dbs.elki.gui.util.LogPane
public class LogPane

A Swing object to receive ELKI logging output. Call
becomeDefaultLogger() to register as default logger in ELKI.
| Nested Class Summary | |
|---|---|
private class |
LogPane.LogPaneHandler
Internal Handler |
| Nested classes/interfaces inherited from class javax.swing.JEditorPane |
|---|
JEditorPane.AccessibleJEditorPane, JEditorPane.AccessibleJEditorPaneHTML, JEditorPane.JEditorPaneAccessibleHypertextSupport |
| Nested classes/interfaces inherited from class javax.swing.text.JTextComponent |
|---|
JTextComponent.AccessibleJTextComponent, JTextComponent.DropLocation, JTextComponent.KeyBinding |
| Nested classes/interfaces inherited from class javax.swing.JComponent |
|---|
JComponent.AccessibleJComponent |
| Nested classes/interfaces inherited from class java.awt.Container |
|---|
Container.AccessibleAWTContainer |
| Nested classes/interfaces inherited from class java.awt.Component |
|---|
Component.AccessibleAWTComponent, Component.BaselineResizeBehavior, Component.BltBufferStrategy, Component.FlipBufferStrategy |
| Field Summary | |
|---|---|
protected Style |
baseStyle
Base (default) style |
protected Style |
dbgStyle
Debug message style |
private Formatter |
debugformat
Formatter for debugging messages |
private Formatter |
errformat
Formatter for error messages |
protected Style |
errStyle
Error message style |
private int |
lastNewlinePos
Last newline position |
private Formatter |
msgformat
Formatter for regular messages (informational records) |
protected Style |
msgStyle
Regular message style |
private static long |
serialVersionUID
Serialization version number |
| Fields inherited from class javax.swing.JEditorPane |
|---|
HONOR_DISPLAY_PROPERTIES, W3C_LENGTH_UNITS |
| Fields inherited from class javax.swing.text.JTextComponent |
|---|
DEFAULT_KEYMAP, FOCUS_ACCELERATOR_KEY |
| Fields inherited from class javax.swing.JComponent |
|---|
accessibleContext, listenerList, TOOL_TIP_TEXT_KEY, ui, UNDEFINED_CONDITION, WHEN_ANCESTOR_OF_FOCUSED_COMPONENT, WHEN_FOCUSED, WHEN_IN_FOCUSED_WINDOW |
| Fields inherited from class java.awt.Component |
|---|
BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENT |
| Fields inherited from interface java.awt.image.ImageObserver |
|---|
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH |
| Constructor Summary | |
|---|---|
LogPane()
Constructor |
|
| Method Summary | |
|---|---|
void |
becomeDefaultLogger()
Become the default logger. |
void |
clear()
Clear the current contents. |
protected void |
publish(LogRecord record)
Publish a log record to the logging pane. |
void |
publish(String message,
Level level)
Print a message as if it were logged, without going through the full logger. |
private int |
tailingNonNewline(String str,
int off,
int len)
Count the tailing non-newline characters. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
private static final long serialVersionUID
protected Style baseStyle
protected Style msgStyle
protected Style dbgStyle
protected Style errStyle
private Formatter msgformat
private Formatter debugformat
private Formatter errformat
private int lastNewlinePos
| Constructor Detail |
|---|
public LogPane()
| Method Detail |
|---|
public void publish(String message,
Level level)
message - Message textlevel - Message level
protected void publish(LogRecord record)
throws Exception
record - Log record
Exception
private int tailingNonNewline(String str,
int off,
int len)
str - Stringoff - Offsetlen - Range
public void clear()
public void becomeDefaultLogger()
|
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||||