|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjava.awt.Component
java.awt.Container
java.awt.Window
java.awt.Frame
javax.swing.JFrame
de.limdul.cassiopeia.gui.CassiopeiaGui
public class CassiopeiaGui
Hauptfenster der Gui.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class javax.swing.JFrame |
|---|
JFrame.AccessibleJFrame |
| Nested classes/interfaces inherited from class java.awt.Frame |
|---|
Frame.AccessibleAWTFrame |
| Nested classes/interfaces inherited from class java.awt.Window |
|---|
Window.AccessibleAWTWindow |
| 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 |
|---|
| Fields inherited from class javax.swing.JFrame |
|---|
accessibleContext, EXIT_ON_CLOSE, rootPane, rootPaneCheckingEnabled |
| Fields inherited from class java.awt.Frame |
|---|
CROSSHAIR_CURSOR, DEFAULT_CURSOR, E_RESIZE_CURSOR, HAND_CURSOR, ICONIFIED, MAXIMIZED_BOTH, MAXIMIZED_HORIZ, MAXIMIZED_VERT, MOVE_CURSOR, N_RESIZE_CURSOR, NE_RESIZE_CURSOR, NORMAL, NW_RESIZE_CURSOR, S_RESIZE_CURSOR, SE_RESIZE_CURSOR, SW_RESIZE_CURSOR, TEXT_CURSOR, W_RESIZE_CURSOR, WAIT_CURSOR |
| Fields inherited from class java.awt.Component |
|---|
BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENT |
| Fields inherited from interface javax.swing.WindowConstants |
|---|
DISPOSE_ON_CLOSE, DO_NOTHING_ON_CLOSE, HIDE_ON_CLOSE |
| Fields inherited from interface java.awt.image.ImageObserver |
|---|
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH |
| Constructor Summary | |
|---|---|
CassiopeiaGui()
Erzeugt das Fenster. |
|
| Method Summary | |
|---|---|
void |
addDesktopPane(GameDesktopPane pane,
String title)
Fügt eine Spieloberfläche hinzu. |
void |
addGuiClient(IGuiClient client)
Fügt einen Guiclient hinzu, |
void |
addMetaPanel(MetaServerPanel panel)
Fügt ein Metaserver Panel hinzu. |
void |
addRemoteServer(RemoteServer server)
Fügt einen Server zu liste der aktiven Server hinzu. |
boolean |
checkExit()
Testet, ob das beendet erlaubt ist. |
void |
closeClient(GuiClient client,
boolean isLocal)
Entfernt einen Client aus der Anzeige. |
void |
dispose()
|
GuiCommandCollector |
getCommandCollector()
Liefert den GuiCommand Collector zurück. |
EventHandler |
getEventHandler()
Liefert den Handler für die Gui. |
RemoteServerList |
getServerList()
Liefert die Liste der laufenden Server. |
boolean |
isClosed()
Gibt an, ob die GUI bereits beendet wurde. |
void |
parseGuiCommand(GuiCommand command)
Verarbeitet ein GuiCommand. |
void |
removeClient(IGuiClient client)
Entfernt einen GuiClient. |
void |
removeMetaPanel()
Entfernt das Metapanel. |
void |
setEventHandler(EventHandler handler)
Setzt den Ereignisshandler, der für die Verteilung von Ereignissen zuständig ist. |
void |
setVisible(boolean b)
|
void |
startLocalGame()
Setzt, dsas ein lokales Spiel gestartet wird. |
void |
startRemoteGame()
Setzt, dass ein Remote Game gestartet wird. |
| Methods inherited from class java.awt.Frame |
|---|
addNotify, getCursorType, getExtendedState, getFrames, getIconImage, getMaximizedBounds, getMenuBar, getState, getTitle, isResizable, isUndecorated, remove, removeNotify, setCursor, setExtendedState, setMaximizedBounds, setMenuBar, setResizable, setState, setTitle, setUndecorated |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface java.awt.MenuContainer |
|---|
getFont, postEvent |
| Constructor Detail |
|---|
public CassiopeiaGui()
| Method Detail |
|---|
public void startRemoteGame()
public void startLocalGame()
public void addGuiClient(IGuiClient client)
client - Der GuiClient.public void addRemoteServer(RemoteServer server)
server - Der Server.
public void addDesktopPane(GameDesktopPane pane,
String title)
pane - Die Spieloberfläche.title - Der Titel.public void addMetaPanel(MetaServerPanel panel)
panel - Das hinzuzufügende Panel.public void dispose()
dispose in class WindowWindow.dispose()public boolean checkExit()
true, wenn das beenden erlaubt ist, false sonst.public RemoteServerList getServerList()
public void removeClient(IGuiClient client)
client - Der zu entfernende GuiClient.public EventHandler getEventHandler()
public void parseGuiCommand(GuiCommand command)
GuiCommandListenerGuiCommand.
parseGuiCommand in interface GuiCommandListenercommand - Das GuiCommandGuiCommandListener.parseGuiCommand(de.limdul.cassiopeia.control.guicommands.GuiCommand)public void setEventHandler(EventHandler handler)
CassiopeiaListener
setEventHandler in interface CassiopeiaListenerhandler - Der EreignisshandlerCassiopeiaListener.setEventHandler(de.limdul.cassiopeia.control.EventHandler)public void setVisible(boolean b)
setVisible in class WindowComponent.setVisible(boolean)
public void closeClient(GuiClient client,
boolean isLocal)
client - Der zu entfernende ClientisLocal - Ob es sich um ein lokales Spiel handeltpublic void removeMetaPanel()
public boolean isClosed()
true, wenn sie bereits beendet wurde, false sonst.public GuiCommandCollector getCommandCollector()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||