| Modifier and Type | Class and Description |
|---|---|
| public class | BasicDesktopIconUI.
Listens for mouse movements and acts on them. |
| Modifier and Type | Field and Description |
|---|---|
| protected JInternalFrame. | desktopIcon
The instance of |
| protected JInternalFrame | frame
The instance of |
| protected JComponent | iconPane
The title pane component used in the desktop icon. |
| pack-priv MouseInputListener |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| protected MouseInputListener | Returns: a new instance ofMouseInputListenerReturns a new instance of |
| public static ComponentUI | Returns: a new instance ofBasicDesktopIconUIa component c)Hides javax. Constructs a new instance of |
| public void | |
| public Insets | |
| public Dimension | getMaximumSize(JComponent c)
Overrides javax. Desktop icons can not be resized. |
| public Dimension | getMinimumSize(JComponent c)
Overrides javax. Returns the specified component's minimum size appropriate for the look and feel. |
| public Dimension | getPreferredSize(JComponent c)
Overrides javax. Returns the specified component's preferred size appropriate for the look and feel. |
| protected void | |
| protected void | |
| protected void | |
| public void | installUI(JComponent c)
Overrides javax. Configures the specified component appropriately for the look and feel. |
| protected void | |
| protected void | |
| protected void | |
| public void | uninstallUI(JComponent c)
Overrides javax. Reverses configuration which was done on the specified component during
|
| desktopIcon | back to summary |
|---|---|
| protected JInternalFrame. The instance of | |
| frame | back to summary |
|---|---|
| protected JInternalFrame frame The instance of | |
| iconPane | back to summary |
|---|---|
| protected JComponent iconPane The title pane component used in the desktop icon.
| |
| mouseInputListener | back to summary |
|---|---|
| pack-priv MouseInputListener mouseInputListener | |
| BasicDesktopIconUI | back to summary |
|---|---|
| public BasicDesktopIconUI() Constructs a new instance of | |
| createMouseInputListener | back to summary |
|---|---|
| protected MouseInputListener createMouseInputListener() Returns a new instance of
| |
| createUI | back to summary |
|---|---|
| public static ComponentUI createUI(JComponent c) Hides javax. Constructs a new instance of
| |
| deiconize | back to summary |
|---|---|
| public void deiconize() De-iconifies the internal frame. | |
| getInsets | back to summary |
|---|---|
| public Insets getInsets(JComponent c) Returns the insets.
| |
| getMaximumSize | back to summary |
|---|---|
| public Dimension getMaximumSize(JComponent c) Overrides javax. Desktop icons can not be resized. Therefore, we should always return the minimum size of the desktop icon.
| |
| getMinimumSize | back to summary |
|---|---|
| public Dimension getMinimumSize(JComponent c) Overrides javax. Doc from javax. Returns the specified component's minimum size appropriate for
the look and feel. If | |
| getPreferredSize | back to summary |
|---|---|
| public Dimension getPreferredSize(JComponent c) Overrides javax. Doc from javax. Returns the specified component's preferred size appropriate for
the look and feel. If | |
| installComponents | back to summary |
|---|---|
| protected void installComponents() Registers components. | |
| installDefaults | back to summary |
|---|---|
| protected void installDefaults() Installs default properties. | |
| installListeners | back to summary |
|---|---|
| protected void installListeners() Registers listeners. | |
| installUI | back to summary |
|---|---|
| public void installUI(JComponent c) Overrides javax. Doc from javax. Configures the specified component appropriately for the look and feel.
This method is invoked when the
| |
| uninstallComponents | back to summary |
|---|---|
| protected void uninstallComponents() Unregisters components. | |
| uninstallDefaults | back to summary |
|---|---|
| protected void uninstallDefaults() Uninstalls default properties. | |
| uninstallListeners | back to summary |
|---|---|
| protected void uninstallListeners() Unregisters listeners. | |
| uninstallUI | back to summary |
|---|---|
| public void uninstallUI(JComponent c) Overrides javax. Doc from javax. Reverses configuration which was done on the specified component during
| |
BasicDesktopIconUI.
| Modifier and Type | Field and Description |
|---|---|
| pack-priv int | |
| pack-priv int | |
| pack-priv int | |
| pack-priv int | |
| pack-priv Rectangle |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public void | mouseDragged(MouseEvent e)
Overrides java. Implements java. Invoked when a mouse button is pressed on a component and then dragged. |
| public void | mouseMoved(MouseEvent e)
Overrides java. Implements java. Invoked when the mouse cursor has been moved onto a component but no buttons have been pushed. |
| public void | mousePressed(MouseEvent e)
Overrides java. Implements java. Invoked when a mouse button has been pressed on a component. |
| public void | mouseReleased(MouseEvent e)
Overrides java. Implements java. Invoked when a mouse button has been released on a component. |
| public void | moveAndRepaint(JComponent
a component f, int a new X coordinate newX, int a new Y coordinate newY, int a new width newWidth, int a new height newHeight)Moves and repaints a component |
| __x | back to summary |
|---|---|
| pack-priv int __x | |
| __y | back to summary |
|---|---|
| pack-priv int __y | |
| _x | back to summary |
|---|---|
| pack-priv int _x | |
| _y | back to summary |
|---|---|
| pack-priv int _y | |
| startingBounds | back to summary |
|---|---|
| pack-priv Rectangle startingBounds | |
| MouseInputHandler | back to summary |
|---|---|
| public MouseInputHandler() Constructs a | |
| mouseDragged | back to summary |
|---|---|
| public void mouseDragged(MouseEvent e) Overrides java. Implements java. Doc from java. Invoked when a mouse button is pressed on a component and then
dragged.
Due to platform-dependent Drag&Drop implementations,
| |
| mouseMoved | back to summary |
|---|---|
| public void mouseMoved(MouseEvent e) Overrides java. Implements java. Doc from java. Invoked when the mouse cursor has been moved onto a component but no buttons have been pushed. | |
| mousePressed | back to summary |
|---|---|
| public void mousePressed(MouseEvent e) Overrides java. Implements java. Doc from java. Invoked when a mouse button has been pressed on a component. | |
| mouseReleased | back to summary |
|---|---|
| public void mouseReleased(MouseEvent e) Overrides java. Implements java. Doc from java. Invoked when a mouse button has been released on a component. | |
| moveAndRepaint | back to summary |
|---|---|
| public void moveAndRepaint(JComponent f, int newX, int newY, int newWidth, int newHeight) Moves and repaints a component
| |