Spec-Zone .ru
спецификации, руководства, описания, API
|
|
Java™ Platform Standard Ed. 7 DRAFT ea-b118 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object javax.swing.plaf.ComponentUI javax.swing.plaf.DesktopIconUI javax.swing.plaf.basic.BasicDesktopIconUI javax.swing.plaf.metal.MetalDesktopIconUI
public class MetalDesktopIconUI extends BasicDesktopIconUI
Metal desktop icon.
Modifier and Type | Class and Description |
---|
Nested classes/interfaces inherited from class javax.swing.plaf.basic.BasicDesktopIconUI |
---|
BasicDesktopIconUI.MouseInputHandler |
Modifier and Type | Field and Description |
---|
Fields inherited from class javax.swing.plaf.basic.BasicDesktopIconUI |
---|
desktopIcon, 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()
|
Methods inherited from class javax.swing.plaf.basic.BasicDesktopIconUI |
---|
createMouseInputListener, deiconize, getInsets, installUI, uninstallDefaults, uninstallUI |
Methods inherited from class javax.swing.plaf.ComponentUI |
---|
contains, getAccessibleChild, getAccessibleChildrenCount, getBaseline, getBaselineResizeBehavior, paint, update |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public MetalDesktopIconUI()
Method Detail |
---|
public static ComponentUI createUI(JComponent c)
protected void installDefaults()
installDefaults
in class BasicDesktopIconUI
protected void installComponents()
installComponents
in class BasicDesktopIconUI
protected void uninstallComponents()
uninstallComponents
in class BasicDesktopIconUI
protected void installListeners()
installListeners
in class BasicDesktopIconUI
protected void uninstallListeners()
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 componentsJComponent.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)
|
Java™ Platform Standard Ed. 7 DRAFT ea-b118 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Copyright © 1993, 2010, Oracle Corporation. All rights reserved.