|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.ObjectNOS.gui.NOSDesktop
public class NOSDesktop
| Constructor Summary | |
|---|---|
NOSDesktop(NOSApplet applet,
Settings settings)
Creates a new NOSDesktop object. |
|
| Method Summary | |
|---|---|
void |
addNOSDesktopListener(NOSDesktopListener list)
Add a NOSDesktopListener to this desktop. |
void |
addWindow(NOSWindow window,
NOSProcess proc)
Add a window to this desktop. |
void |
centreWindow(NOSWindow window)
Position a NOSWindow in the centre of the dekstop. |
void |
centreWindowInWindow(NOSWindow window,
NOSWindow target)
Position a window in the centre of another window. |
void |
destroy()
Destroy this desktop |
void |
eventDispatched(java.awt.AWTEvent event)
Used to listen for the user changing between windows by clicking on them. |
java.awt.Rectangle |
getDesktopClientRect()
Returns the rectangle in which ordinary windows are placed on the desktop. |
java.awt.Point |
getLocationOnScreen()
Returns the location of the NOS desktop on the system screen. |
Settings |
getSettings()
Returns the desktop Settings object. |
java.awt.Dimension |
getSize()
Returns the size of this desktop in pixels. |
void |
registerForRepaint(NOSWindow window)
Notify the desktop that a window needs to be repainted on the screen. |
void |
removeNOSDesktopListener(NOSDesktopListener list)
Remove a NOSDesktopListener from this desktop |
void |
removeWindow(NOSWindow window,
NOSProcess proc)
Remove a window from this desktop. |
void |
sendToBack(NOSWindow window)
Send a window to the back of the z-order. |
void |
sendToTop(NOSWindow window)
Send a window to the top of the z-order |
void |
setBackground(NOSFile background)
Change the background image. |
void |
setStyle(NOSFile style)
Change the style file used to decorate windows and menus on this desktop. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public NOSDesktop(NOSApplet applet,
Settings settings)
applet - The parent applet window onto which this desktop will be
placed.settings - The settings object to use as a template for the
desktop setup.| Method Detail |
|---|
public void setBackground(NOSFile background)
background - The location of the new background image.public Settings getSettings()
public java.awt.Dimension getSize()
public java.awt.Rectangle getDesktopClientRect()
public java.awt.Point getLocationOnScreen()
public void setStyle(NOSFile style)
style - The location of the Style to be used.public void addNOSDesktopListener(NOSDesktopListener list)
list - The NOSDesktopListener to be added.
public void addWindow(NOSWindow window,
NOSProcess proc)
window - The NOSWindow to be addedproc - The NOSProcess to which the window being added belongs.public void centreWindow(NOSWindow window)
window - The window to be relocated.
public void centreWindowInWindow(NOSWindow window,
NOSWindow target)
window - The window to be relocated.target - The window to be centred on.public void destroy()
public void eventDispatched(java.awt.AWTEvent event)
eventDispatched in interface java.awt.event.AWTEventListenerevent - The AWTEvent that has been triggered.public void registerForRepaint(NOSWindow window)
window - The window to be repainted.public void removeNOSDesktopListener(NOSDesktopListener list)
list - The NOSDesktopListener to be removed.
public void removeWindow(NOSWindow window,
NOSProcess proc)
window - The NOSWindow to be removedproc - The NOSProcess to which this window belongs.public void sendToBack(NOSWindow window)
window - The window to be relocated.public void sendToTop(NOSWindow window)
window - The window to be relocated.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||