|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectorg.jzuul.engine.gui.SwingGui
Diese Klasse Implementiert ein GUI auf Suns Swing Toolkit.
| Field Summary | |
protected boolean |
applet
|
protected ActionListener |
backup
|
protected ActionListener |
current
|
protected ActionListener |
defaultListener
|
protected StyledDocument |
doc
|
protected HashMap |
history
|
protected JLabel |
imageArea
|
protected ObjectCache |
imageCache
|
(package private) double |
imageHeight
|
(package private) double |
imageWith
|
protected JTextField |
inputArea
|
protected Container |
mainFrame
|
static int |
maxImageSize
|
protected JTextPane |
outputArea
|
protected JScrollPane |
scrollPane
|
| Fields inherited from interface org.jzuul.engine.gui.GuiInterface |
BLACK, BLUE, GREEN, ORANGE, RED |
| Constructor Summary | |
SwingGui()
|
|
SwingGui(RootPaneContainer root)
|
|
| Method Summary | |
void |
close()
Beendet und schliesst das UserInterface |
void |
disableInput()
Schaltet das Input ab, der gesetzte ActionListener darf nicht mehr mit Events bedient werden. |
void |
enableInput()
Schaltet das Input ein, der gesetzte ActionListener wird mit Events bedient. |
ActionListener |
getActionListener()
Gibt den aktuell aktiven ActionListener zurück |
String |
getInput()
Holt den aktuellen Wert der Eingabezeile |
boolean |
isApplet()
Fragt das GUI ob es in einer Applet Sandbox läuft |
void |
print(String out)
Erwartet die Ausgabe von out ohne Zeilenumbruch |
void |
print(String out,
AttributeSet a)
|
void |
println()
Erwartet eine Leerzeile in der Ausgabe |
void |
println(String out)
Erwartet die Ausgabe mit anschließendem Zeilenumbruch |
void |
println(String out,
int[] color)
Erwartet die Ausgaben von out mit anschließendem Zeilenumbruch in der Farbe color, die in RGB in einem int[3] übergeben wird. |
void |
printlnB(String out)
Erwartet die Ausgabe von out in Fett (Bold), falls das Ausgabesystem es unterstützt plus einen Zeilenumbruch |
void |
printlnB(String out,
int[] color)
Erwartet die Ausgabe von out in Fett (Bold) in der in color spezifizierten Farbe, falls das Ausgabesystem es unterstützt plus einen Zeilenumbruch. |
void |
printlnI(String out)
Erwartet die Ausgabe von out in Kursiv (Italic) plus einen Zeilenumbruch |
void |
printlnI(String out,
int[] color)
Erwartet die Ausgabe von out in Kursiv(Italic) in der in color spezifizierten Farbe, falls das Ausgabesystem dies unterstützt plus einen Zeilenumbruch. |
void |
printU(String out)
Erwartet die Ausgabe von out unterstrichen, falls das Ausgabesystem es unterstützt |
void |
redraw()
Fordert das neuzeichnen der Ausgabe, alle vorher aufgerufenen print methoden müssen dargestellt werden. |
void |
resetInput()
Das GUI muss die Inputzeile bereinigen, falls dies möglich ist |
void |
setActionListener(ActionListener al)
Setzt den ActionListener der von dem GUI Objekt bedient werden muss. |
void |
setDefaultActionListener()
Setzt den ActionListener der mit setDefaultActionListener(defaultListener) gesetzt worden ist wieder aktuell. |
void |
setDefaultActionListener(ActionListener defaultListener)
Setzt einen default ActionListener der mit setDefaultActionListener() wieder gesetzt werden kann. |
void |
setInput(String newline)
Setzt die Eingabezeile auf newline |
void |
setKeyListener(KeyListener list)
Setzt einen KeyListener, der einzelne Tastendrücke mitgeteilt bekommt, falls das Ausgabesystem dies unterstützt. |
void |
showImage(InputStream imageStream)
Zeigt ein Bild an, wenn das Gui dieses Unterstützt |
void |
splash_next(String message)
stellt aufdem Splashscreen den Fortschritt um einen weiteren Task da |
void |
splash_start(int count)
Startet den Splashscreen (Fenster was den Ladevorgang illustriert) |
void |
start()
Übergibt dem GUI die Kontrolle |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
protected Container mainFrame
protected JTextPane outputArea
protected JLabel imageArea
protected JTextField inputArea
protected ActionListener backup
protected HashMap history
protected StyledDocument doc
protected JScrollPane scrollPane
protected ActionListener current
protected ActionListener defaultListener
protected boolean applet
public static final int maxImageSize
protected ObjectCache imageCache
final double imageWith
final double imageHeight
| Constructor Detail |
public SwingGui()
public SwingGui(RootPaneContainer root)
| Method Detail |
public void println(String out,
int[] color)
GuiInterface
println in interface GuiInterfaceout - der String der Ausgegeben werden sollcolor - die Farbe in RGB
public void print(String out,
AttributeSet a)
public void print(String out)
GuiInterface
print in interface GuiInterfaceout - der String der Ausgegeben werden sollpublic void println(String out)
GuiInterface
println in interface GuiInterfaceout - der String der Ausgegben wirdpublic void println()
GuiInterface
println in interface GuiInterfacepublic void printU(String out)
GuiInterface
printU in interface GuiInterfaceout - der String der ausgegebn werden sollpublic void printlnB(String out)
GuiInterface
printlnB in interface GuiInterfaceout - der String der Ausgegeben werden soll
public void printlnB(String out,
int[] color)
GuiInterface
printlnB in interface GuiInterfaceout - der String der Ausgegeben werden sollcolor - die RGB Farben in einem int[3]public void printlnI(String out)
GuiInterface
printlnI in interface GuiInterfaceout - der String der Ausgegeben werden soll.
public void printlnI(String out,
int[] color)
GuiInterface
printlnI in interface GuiInterfaceout - der String der ausgegeben werden sollcolor - die Farbe in RGB in einem int[3]public void setActionListener(ActionListener al)
GuiInterface
setActionListener in interface GuiInterfaceal - der ActionListenerpublic void setDefaultActionListener()
GuiInterface
setDefaultActionListener in interface GuiInterfaceGuiInterface.setDefaultActionListener(ActionListener defaultListener)public void setDefaultActionListener(ActionListener defaultListener)
GuiInterface
setDefaultActionListener in interface GuiInterfacedefaultListener - der default ActionListenerGuiInterface.setDefaultActionListener()public void setKeyListener(KeyListener list)
GuiInterface
setKeyListener in interface GuiInterfacelist - der KeyListener.public void redraw()
GuiInterface
redraw in interface GuiInterfacepublic void disableInput()
GuiInterface
disableInput in interface GuiInterfacepublic void enableInput()
GuiInterface
enableInput in interface GuiInterfacepublic void start()
GuiInterface
start in interface GuiInterfacepublic void resetInput()
GuiInterface
resetInput in interface GuiInterfacepublic boolean isApplet()
GuiInterface
isApplet in interface GuiInterfacepublic ActionListener getActionListener()
GuiInterface
getActionListener in interface GuiInterfacepublic void setInput(String newline)
GuiInterface
setInput in interface GuiInterfacenewline - der neue Text der Eingabezeilepublic String getInput()
GuiInterface
getInput in interface GuiInterfacepublic void close()
GuiInterface
close in interface GuiInterfacepublic void splash_start(int count)
GuiInterface
splash_start in interface GuiInterfacecount - wieviele Schritte ausgeführt werdenpublic void splash_next(String message)
GuiInterface
splash_next in interface GuiInterfacemessage - Nachricht die für den Fortschritt ausgegeben werden sollpublic void showImage(InputStream imageStream)
GuiInterface
showImage in interface GuiInterfaceimageStream -
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||