|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--sam.ui.LogInterface | +--sam.ui.awt.LogInterface
Pluggable AWT-based log interface
Nested Class Summary | |
protected class |
LogInterface.LogLevelInput
Simple log-level scroll bar. |
Constructor Summary | |
LogInterface()
Builds a new log interface |
Method Summary | |
protected void |
finalize()
|
java.awt.Button |
getButton(java.awt.Component activator)
Gets a proper switch button to activate/deactivate the log. |
protected static java.awt.Point |
getLocation(java.awt.Component source,
java.awt.Component target,
java.lang.String direction)
Gets the best location to display the log adjacent to another. |
protected void |
hide()
Hides the log window. |
protected void |
log(java.lang.String logMessage)
Actually handles a log message. |
void |
setLevel(int level)
Sets the log level. |
protected void |
show(java.lang.String direction)
Shows the log window. |
Methods inherited from class sam.ui.LogInterface |
disable, enable, flush, getLevel, log, post, start, stop, test |
Methods inherited from class java.lang.Object |
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public LogInterface()
Method Detail |
public void setLevel(int level)
setLevel
in class LogInterface
level
- the desired log level for subsequent calls
which can not be greater than Settings.Defaults.MAXIMUM_LOG_LEVEL
protected void finalize()
finalize
in class java.lang.Object
protected void log(java.lang.String logMessage)
LogInterface
log
in class LogInterface
public java.awt.Button getButton(java.awt.Component activator)
activator
- the component the button will be attached toprotected void show(java.lang.String direction)
direction
- one of BorderLayout.NORTH
, BorderLayout.SOUTH
,
BorderLayout.WEST
, BorderLayout.EAST
.protected void hide()
protected static java.awt.Point getLocation(java.awt.Component source, java.awt.Component target, java.lang.String direction)
direction
- one of BorderLayout.NORTH
, BorderLayout.SOUTH
,
BorderLayout.WEST
, BorderLayout.EAST
, BorderLayout.CENTER
.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |