|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjavax.swing.DefaultDesktopManager
ARoad0.Gui1.InsideDesktop
public class InsideDesktop
A DesktopManager that keeps its frames inside the desktop when they are resized or dragged, and that keeps the explorer frame location at the upper-left corner of the desktop.
| Field Summary | |
|---|---|
protected static java.lang.String |
DRAGGING
Tag internal frames that are being moved using a client property with the name DRAGGING. |
protected static java.awt.Point |
initialLocation__
Initial location of the frame before the dragging |
protected static InsideDesktop |
instance__
|
protected static java.lang.String |
RESIZING
Tag internal frames that are being resized using a client property with the name RESIZING. |
| Constructor Summary | |
|---|---|
private |
InsideDesktop()
With this private constructor, the compiler won't generate a default public constructor. |
| Method Summary | |
|---|---|
void |
beginDraggingFrame(javax.swing.JComponent _f)
|
void |
beginResizingFrame(javax.swing.JComponent _f,
int dir)
|
void |
endDraggingFrame(javax.swing.JComponent _f)
Keeps the explorer frame location at the upper-left corner of the desktop, and the other frames in the desktop. |
void |
endResizingFrame(javax.swing.JComponent _f)
|
static InsideDesktop |
getInstance()
Only mean to get an instance. |
void |
setBoundsForFrame(javax.swing.JComponent _f,
int _x,
int _y,
int _w,
int _h)
This is called any time a frame is moved or resized. |
| Methods inherited from class javax.swing.DefaultDesktopManager |
|---|
activateFrame, closeFrame, deactivateFrame, deiconifyFrame, dragFrame, getBoundsForIconOf, getPreviousBounds, iconifyFrame, maximizeFrame, minimizeFrame, openFrame, removeIconFor, resizeFrame, setPreviousBounds, setWasIcon, wasIcon |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected static final java.lang.String RESIZING
protected static final java.lang.String DRAGGING
protected static java.awt.Point initialLocation__
protected static final InsideDesktop instance__
| Constructor Detail |
|---|
private InsideDesktop()
| Method Detail |
|---|
public static InsideDesktop getInstance()
public void beginDraggingFrame(javax.swing.JComponent _f)
beginDraggingFrame in interface javax.swing.DesktopManagerbeginDraggingFrame in class javax.swing.DefaultDesktopManager_f - JComponentpublic void endDraggingFrame(javax.swing.JComponent _f)
endDraggingFrame in interface javax.swing.DesktopManagerendDraggingFrame in class javax.swing.DefaultDesktopManager_f - JComponent
public void beginResizingFrame(javax.swing.JComponent _f,
int dir)
beginResizingFrame in interface javax.swing.DesktopManagerbeginResizingFrame in class javax.swing.DefaultDesktopManager_f - JComponentdir - intpublic void endResizingFrame(javax.swing.JComponent _f)
endResizingFrame in interface javax.swing.DesktopManagerendResizingFrame in class javax.swing.DefaultDesktopManager_f - JComponent
public void setBoundsForFrame(javax.swing.JComponent _f,
int _x,
int _y,
int _w,
int _h)
setBoundsForFrame in interface javax.swing.DesktopManagersetBoundsForFrame in class javax.swing.DefaultDesktopManager_f - JComponent_x - int left border_y - int top border_w - int width_h - int height
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||