|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object java.awt.Component java.awt.Container javax.swing.JComponent javax.swing.JPanel de.lmu.ifi.dbs.elki.gui.util.LogPanel
public class LogPanel
Panel that contains a text logging pane (LogPane
) and progress bars.
Nested Class Summary | |
---|---|
private class |
LogPanel.LogPanelHandler
Internal Handler |
Nested classes/interfaces inherited from class javax.swing.JPanel |
---|
JPanel.AccessibleJPanel |
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 LogPane |
logpane
The actual text logging pane |
protected HashMap<Progress,JProgressBar> |
pbarmap
Current progress bars |
private static long |
serialVersionUID
Serial |
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 | |
---|---|
LogPanel()
Constructor. |
Method Summary | |
---|---|
protected void |
addProgressBar(JProgressBar pbar)
Add a new progress bar. |
void |
becomeDefaultLogger()
Become the default logger. |
void |
clear()
Clear the current contents. |
private JProgressBar |
getOrCreateProgressBar(Progress prog)
Get an existing or create a new progress bar. |
void |
publish(LogRecord record)
Publish a logging record. |
void |
publish(String message,
Level level)
Print a message as if it were logged, without going through the full logger. |
private void |
publishTextRecord(LogRecord record)
Publish a text record to the pane |
protected void |
removeProgressBar(JProgressBar pbar)
Remove a new progress bar. |
private void |
removeProgressBar(Progress prog,
JProgressBar pbar)
Remove a progress bar |
private void |
updateProgressBar(Progress prog,
JProgressBar pbar)
Update a progress bar |
Methods inherited from class javax.swing.JPanel |
---|
getAccessibleContext, getUI, getUIClassID, paramString, setUI, updateUI |
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 LogPane logpane
protected HashMap<Progress,JProgressBar> pbarmap
Constructor Detail |
---|
public LogPanel()
Method Detail |
---|
public void becomeDefaultLogger()
public void publish(String message, Level level)
message
- Message textlevel
- Message levelpublic void publish(LogRecord record)
record
- Log record to publishprivate void publishTextRecord(LogRecord record)
record
- Record to publishprivate JProgressBar getOrCreateProgressBar(Progress prog)
prog
- Progress
private void updateProgressBar(Progress prog, JProgressBar pbar)
prog
- Progresspbar
- Associated progress barprivate void removeProgressBar(Progress prog, JProgressBar pbar)
prog
- Progresspbar
- Associated progress barpublic void clear()
protected void addProgressBar(JProgressBar pbar)
pbar
- protected void removeProgressBar(JProgressBar pbar)
pbar
-
|
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |