public interface GraphicalObserverContext
Modifier and Type | Method and Description |
---|---|
void |
add(IGraphicalObserver o)
Should add a graphical observer to the context.
|
IGraphicalObserver[] |
getChildren()
Should returns all observers in this context.
|
void |
remove(IGraphicalObserver o)
Should remove a graphical observer from the context.
|
void |
setLocation(IGraphicalObserver o,
int x,
int y)
Should set the given observer's window position
|
void |
setSize(IGraphicalObserver o,
int width,
int height)
Should set the given observer's window size
|
void |
setVisible(IGraphicalObserver o,
boolean visible)
Should set the given graphical observer (in)visible
|
void |
update(IGraphicalObserver o)
Should update the given graphical observer's display
|
void add(IGraphicalObserver o)
o
- the graphical observer to addvoid remove(IGraphicalObserver o)
o
- the graphical observer to removevoid setVisible(IGraphicalObserver o, boolean visible)
o
- the graphical observervisible
- ...to see or not to see... ;-)IGraphicalObserver[] getChildren()
void setSize(IGraphicalObserver o, int width, int height)
o
- a graphical observerwidth
- window widthheight
- window heightvoid setLocation(IGraphicalObserver o, int x, int y)
o
- a graphical observerx
- horizontal coordinate of upper left edgey
- vertical coordinate of upper left edgevoid update(IGraphicalObserver o)
graphical
- observer to update