| Modifier and Type | Class and Description |
|---|---|
| private static class | MotifDesktopPaneUI.
///////////////////////////////////////////////////////////////////////////////// DragPane class ///////////////////////////////////////////////////////////////////////////////// |
| private static class | MotifDesktopPaneUI.
///////////////////////////////////////////////////////////////////////////////// MotifDesktopManager class ///////////////////////////////////////////////////////////////////////////////// |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public static ComponentUI | createUI(JComponent d)
Hides javax. Constructs a new instance of |
| public Insets | |
| protected void | installDesktopManager()
Overrides javax. Installs desktop manager. |
| MotifDesktopPaneUI | back to summary |
|---|---|
| public MotifDesktopPaneUI() | |
| createUI | back to summary |
|---|---|
| public static ComponentUI createUI(JComponent d) Hides javax. Doc from javax. Constructs a new instance of | |
| getInsets | back to summary |
|---|---|
| public Insets getInsets(JComponent c) | |
| installDesktopManager | back to summary |
|---|---|
| protected void installDesktopManager() Overrides javax. Doc from javax. Installs desktop manager.
| |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| public void |
| DragPane | back to summary |
|---|---|
| private DragPane() | |
| paint | back to summary |
|---|---|
| public void paint(Graphics g) Overrides javax. Doc from javax. Invoked by Swing to draw components.
Applications should not invoke
This method actually delegates the work of painting to three
protected methods:
| |
| Modifier and Type | Field and Description |
|---|---|
| pack-priv JComponent | |
| pack-priv int | |
| pack-priv int | |
| private transient JLayeredPane | |
| pack-priv boolean |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| protected void | adjustBoundsForIcon(JInternalFrame.
Change positions of icon so that it doesn't overlap other icons. |
| protected void | adjustIcons(JDesktopPane desktop)
Change positions of icons in the desktop pane so that they do not overlap |
| public void | beginDraggingFrame(JComponent f)
Overrides javax. Implements javax. This method is normally called when the user has indicated that they will begin dragging a component around. |
| public void | beginResizingFrame(JComponent f, int direction)
Overrides javax. Implements javax. This method is normally called when the user has indicated that they will begin resizing the frame. |
| public void | dragFrame(JComponent f, int newX, int newY)
Overrides javax. Implements javax. Moves the visible location of the frame being dragged to the location specified. |
| public void | endDraggingFrame(JComponent f)
Overrides javax. Implements javax. This method signals the end of the dragging session. |
| public void | endResizingFrame(JComponent f)
Overrides javax. Implements javax. This method signals the end of the resize session. |
| protected JInternalFrame. | |
| public void | iconifyFrame(JInternalFrame f)
Overrides javax. Implements javax. Removes the frame from its parent and adds its
|
| public void | resizeFrame(JComponent f, int newX, int newY, int newWidth, int newHeight)
Overrides javax. Implements javax. Calls |
| public void | setBoundsForFrame(JComponent f, int newX, int newY, int newWidth, int newHeight)
Overrides javax. Implements javax. This moves the |
| dragPane | back to summary |
|---|---|
| pack-priv JComponent dragPane | |
| iconHeight | back to summary |
|---|---|
| pack-priv int iconHeight | |
| iconWidth | back to summary |
|---|---|
| pack-priv int iconWidth | |
| layeredPaneForDragPane | back to summary |
|---|---|
| private transient JLayeredPane layeredPaneForDragPane | |
| usingDragPane | back to summary |
|---|---|
| pack-priv boolean usingDragPane | |
| MotifDesktopManager | back to summary |
|---|---|
| private MotifDesktopManager() | |
| adjustBoundsForIcon | back to summary |
|---|---|
| protected void adjustBoundsForIcon(JInternalFrame. Change positions of icon so that it doesn't overlap other icons. | |
| adjustIcons | back to summary |
|---|---|
| protected void adjustIcons(JDesktopPane desktop) Change positions of icons in the desktop pane so that they do not overlap | |
| beginDraggingFrame | back to summary |
|---|---|
| public void beginDraggingFrame(JComponent f) Overrides javax. Implements javax. Doc from javax. This method is normally called when the user has indicated that they will begin dragging a component around. This method should be called prior to any dragFrame() calls to allow the DesktopManager to prepare any necessary state. Normally f will be a JInternalFrame.
| |
| beginResizingFrame | back to summary |
|---|---|
| public void beginResizingFrame(JComponent f, int direction) Overrides javax. Implements javax. Doc from javax. This method is normally called when the user has indicated that they will begin resizing the frame. This method should be called prior to any resizeFrame() calls to allow the DesktopManager to prepare any necessary state. Normally f will be a JInternalFrame.
| |
| dragFrame | back to summary |
|---|---|
| public void dragFrame(JComponent f, int newX, int newY) Overrides javax. Implements javax. Doc from javax. Moves the visible location of the frame being dragged
to the location specified. The means by which this occurs can vary depending
on the dragging algorithm being used. The actual logical location of the frame
might not change until
| |
| endDraggingFrame | back to summary |
|---|---|
| public void endDraggingFrame(JComponent f) Overrides javax. Implements javax. Doc from javax. This method signals the end of the dragging session. Any state maintained by the DesktopManager can be removed here. Normally f will be a JInternalFrame.
| |
| endResizingFrame | back to summary |
|---|---|
| public void endResizingFrame(JComponent f) Overrides javax. Implements javax. Doc from javax. This method signals the end of the resize session. Any state maintained by the DesktopManager can be removed here. Normally f will be a JInternalFrame.
| |
| getIconAt | back to summary |
|---|---|
| protected JInternalFrame. | |
| iconifyFrame | back to summary |
|---|---|
| public void iconifyFrame(JInternalFrame f) Overrides javax. Implements javax. Doc from javax. Removes the frame from its parent and adds its
| |
| resizeFrame | back to summary |
|---|---|
| public void resizeFrame(JComponent f, int newX, int newY, int newWidth, int newHeight) Overrides javax. Implements javax. Doc from javax. Calls
| |
| setBoundsForFrame | back to summary |
|---|---|
| public void setBoundsForFrame(JComponent f, int newX, int newY, int newWidth, int newHeight) Overrides javax. Implements javax. Doc from javax. This moves the
| |