|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface ConsoleService
A service that allows for creating, writing to, and reading from Consoles.
Method Summary | |
---|---|
Console |
createConsole(String name,
Icon icon)
Create a new console. |
Console |
getConsole(String name)
Get a pointer to an existing console with a given name. |
ConsoleOutputStream |
getConsoleOutputStream(String name,
Icon icon)
Creates an output stream associated to a named console area. |
ConsoleOutputStream |
getConsoleOutputStream(String name,
Icon icon,
AttributeSet set)
Create an attributed output stream |
org.freehep.application.mdi.PageContext |
getPageContextForConsole(Console console)
Gets the page context corresponding to a given console. |
void |
redirectStandardOutputOnThreadToConsole(Thread thread,
ConsoleOutputStream out)
Redirects output to System.out for a specific thread to a given console |
void |
showConsole(Console console)
Requests that a given console be made visible |
Method Detail |
---|
Console getConsole(String name)
name
- The name to search for
null
if no console by this name
existsConsole createConsole(String name, Icon icon)
name
- The name of the newly created consoleicon
- An icon to associate with the console, or null
for no icon.
ConsoleOutputStream getConsoleOutputStream(String name, Icon icon) throws IOException
name
- The name of the console.icon
- The Icon to be used if a new console is created,
or null
.
IOException
- If an IO error occursConsoleOutputStream getConsoleOutputStream(String name, Icon icon, AttributeSet set) throws IOException
name
- The name of the Consoleicon
- The icon to use if a new console is created,
or null
set
- The attributes for text created using this outputstream,
or null
for default attributes.
IOException
- If an IO error occursgetConsoleOutputStream(String, Icon)
void redirectStandardOutputOnThreadToConsole(Thread thread, ConsoleOutputStream out)
thread
- The thread for which redirection should applyout
- The output stream to redirect tovoid showConsole(Console console)
console
- The console to be made visibleorg.freehep.application.mdi.PageContext getPageContextForConsole(Console console)
console
- The console
null if the console has been closed).- Since:
- 3.0.0
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |