public interface IGraphicalObserver
Modifier and Type | Method and Description |
---|---|
void |
deregister()
Deregisters the observer from the context
|
GraphicalObserverContext |
getContext()
Returns the context this observer is displayed in
|
java.awt.Component |
getGUI()
Should return the graphical observer's main GUI component
|
java.lang.String |
getName()
Returns the observer's name
|
void |
register()
Registers the observer with the context
|
void |
setLocation(int x,
int y)
Sets the position of the observer's main window's upper left edge.
|
void |
setSize(int width,
int height)
Sets the observer's main window's size.
|
void |
setVisible(boolean visible)
Sets the observer visible withing the context
|
void |
update()
Requests an update of the observer's display from the context.
|
GraphicalObserverContext getContext()
java.awt.Component getGUI()
void register()
void deregister()
void setVisible(boolean visible)
void setSize(int width, int height)
width
- window widthheight
- window heightvoid setLocation(int x, int y)
x
- horizontal positiony
- vertical positionjava.lang.String getName()
void update()