Package adams.gui.core
Interface LogPanel
-
- All Known Implementing Classes:
ConsolePanel.OutputPanel,SimpleLogPanel
public interface LogPanelCommon interface for log panels.- Version:
- $Revision$
- Author:
- FracPete (fracpete at waikato dot ac dot nz)
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidappend(LoggingLevel level, String msg)Appends the given string.voidclear()Clears the text.voidcopy()Copies the text to the clipboard.booleangetLineWrap()Returns the current line wrap setting.StringgetText()Returns the current text.voidsaveAs()Saves the current content to a file.voidsetLineWrap(boolean value)Sets the line wrap flag.voidsetText(String value)Sets the current text.
-
-
-
Method Detail
-
append
void append(LoggingLevel level, String msg)
Appends the given string.- Parameters:
level- the logging levelmsg- the message to append
-
clear
void clear()
Clears the text.
-
copy
void copy()
Copies the text to the clipboard.
-
saveAs
void saveAs()
Saves the current content to a file.
-
setLineWrap
void setLineWrap(boolean value)
Sets the line wrap flag.- Parameters:
value- if true line wrap is enabled
-
getLineWrap
boolean getLineWrap()
Returns the current line wrap setting.- Returns:
- true if line wrap is enabled
-
setText
void setText(String value)
Sets the current text.- Parameters:
value- the text
-
getText
String getText()
Returns the current text.- Returns:
- the tex
-
-