public class MetalDesktopIconUI extends BasicDesktopIconUI
BasicDesktopIconUI.MouseInputHandler
desktopIcon, frame, iconPane
Constructor and Description |
---|
MetalDesktopIconUI()
Constructs a new instance of
MetalDesktopIconUI . |
Modifier and Type | Method and Description |
---|---|
static ComponentUI |
createUI(JComponent c)
Constructs a new instance of
MetalDesktopIconUI . |
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()
Registers components.
|
protected void |
installDefaults()
Installs default properties.
|
protected void |
installListeners()
Registers listeners.
|
protected void |
uninstallComponents()
Unregisters components.
|
protected void |
uninstallListeners()
Unregisters listeners.
|
createMouseInputListener, deiconize, getInsets, installUI, uninstallDefaults, uninstallUI
contains, getAccessibleChild, getAccessibleChildrenCount, getBaseline, getBaselineResizeBehavior, paint, update
public MetalDesktopIconUI()
MetalDesktopIconUI
.public static ComponentUI createUI(JComponent c)
MetalDesktopIconUI
.c
- a componentMetalDesktopIconUI
protected void installDefaults()
BasicDesktopIconUI
installDefaults
in class BasicDesktopIconUI
protected void installComponents()
BasicDesktopIconUI
installComponents
in class BasicDesktopIconUI
protected void uninstallComponents()
BasicDesktopIconUI
uninstallComponents
in class BasicDesktopIconUI
protected void installListeners()
BasicDesktopIconUI
installListeners
in class BasicDesktopIconUI
protected void uninstallListeners()
BasicDesktopIconUI
uninstallListeners
in class BasicDesktopIconUI
public Dimension getPreferredSize(JComponent c)
ComponentUI
null
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 BasicDesktopIconUI
c
- 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 componentsDimension
object containing given component's preferred
size appropriate for the look and feelJComponent.getPreferredSize()
,
LayoutManager.preferredLayoutSize(java.awt.Container)
public Dimension getMinimumSize(JComponent c)
ComponentUI
null
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 BasicDesktopIconUI
c
- 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 null
JComponent.getMinimumSize()
,
LayoutManager.minimumLayoutSize(java.awt.Container)
,
ComponentUI.getPreferredSize(javax.swing.JComponent)
public Dimension getMaximumSize(JComponent c)
BasicDesktopIconUI
getMaximumSize
in class BasicDesktopIconUI
c
- 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 null
BasicDesktopIconUI.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.
DRAFT 9-internal+0-2016-01-26-133437.ivan.openjdk9onspinwait