public class MetalDesktopIconUI extends BasicDesktopIconUI
BasicDesktopIconUI.MouseInputHandlerdesktopIcon, frame, iconPane| Constructor and Description |
|---|
MetalDesktopIconUI() |
| Modifier and Type | Method and Description |
|---|---|
static ComponentUI |
createUI(JComponent c) |
Dimension |
getMaximumSize(JComponent c)
Desktop icons can not be resized.
|
Dimension |
getMinimumSize(JComponent c)
Returns the specified component's minimum size appropriate for
the look and feel.
|
Dimension |
getPreferredSize(JComponent c)
Returns the specified component's preferred size appropriate for
the look and feel.
|
protected void |
installComponents() |
protected void |
installDefaults() |
protected void |
installListeners() |
protected void |
uninstallComponents() |
protected void |
uninstallListeners() |
createMouseInputListener, deiconize, getInsets, installUI, uninstallDefaults, uninstallUIcontains, getAccessibleChild, getAccessibleChildrenCount, getBaseline, getBaselineResizeBehavior, paint, updatepublic static ComponentUI createUI(JComponent c)
protected void installDefaults()
installDefaults in class BasicDesktopIconUIprotected void installComponents()
installComponents in class BasicDesktopIconUIprotected void uninstallComponents()
uninstallComponents in class BasicDesktopIconUIprotected void installListeners()
installListeners in class BasicDesktopIconUIprotected void uninstallListeners()
uninstallListeners in class BasicDesktopIconUIpublic Dimension getPreferredSize(JComponent c)
ComponentUInull is returned, the preferred
size will be calculated by the component's layout manager instead
(this is the preferred approach for any component with a specific
layout manager installed). The default implementation of this
method returns null.getPreferredSize in class BasicDesktopIconUIc - the component whose preferred size is being queried;
this argument is often ignored,
but might be used if the UI object is stateless
and shared by multiple componentsJComponent.getPreferredSize(),
LayoutManager.preferredLayoutSize(java.awt.Container)public Dimension getMinimumSize(JComponent c)
ComponentUInull is returned, the minimum
size will be calculated by the component's layout manager instead
(this is the preferred approach for any component with a specific
layout manager installed). The default implementation of this
method invokes getPreferredSize and returns that value.getMinimumSize in class BasicDesktopIconUIc - the component whose minimum size is being queried;
this argument is often ignored,
but might be used if the UI object is stateless
and shared by multiple componentsDimension object or nullJComponent.getMinimumSize(),
LayoutManager.minimumLayoutSize(java.awt.Container),
ComponentUI.getPreferredSize(javax.swing.JComponent)public Dimension getMaximumSize(JComponent c)
BasicDesktopIconUIgetMaximumSize in class BasicDesktopIconUIc - the component whose maximum size is being queried;
this argument is often ignored,
but might be used if the UI object is stateless
and shared by multiple componentsDimension object or nullBasicDesktopIconUI.getMinimumSize(javax.swing.JComponent) Submit a bug or feature
For further API reference and developer documentation, see Java SE Documentation. That documentation contains more detailed, developer-targeted descriptions, with conceptual overviews, definitions of terms, workarounds, and working code examples.
Copyright © 1993, 2016, Oracle and/or its affiliates. All rights reserved. Use is subject to license terms. Also see the documentation redistribution policy.