当前页面:
在线文档首页 >
JDK 5 Documentation v1.2.2, Java 2 SDK 英文文档
Java(TM) 2 Platform, Standard Edition, v1.2.2 API Specification: Class ComponentUI - JDK 5 Documentation v1.2.2, Java 2 SDK 英文文档
javax.swing.plaf
Class ComponentUI
java.lang.Object
|
+--javax.swing.plaf.ComponentUI
- Direct Known Subclasses:
- ButtonUI, ColorChooserUI, ComboBoxUI, DesktopIconUI, DesktopPaneUI, FileChooserUI, InternalFrameUI, LabelUI, ListUI, MenuBarUI, OptionPaneUI, PanelUI, PopupMenuUI, ProgressBarUI, ScrollBarUI, ScrollPaneUI, SeparatorUI, SliderUI, SplitPaneUI, TabbedPaneUI, TableHeaderUI, TableUI, TextUI, ToolBarUI, ToolTipUI, TreeUI, ViewportUI
- public abstract class ComponentUI
- extends Object
Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
ComponentUI
public ComponentUI()
installUI
public void installUI(JComponent c)
uninstallUI
public void uninstallUI(JComponent c)
paint
public void paint(Graphics g,
JComponent c)
update
public void update(Graphics g,
JComponent c)
getPreferredSize
public Dimension getPreferredSize(JComponent c)
getMinimumSize
public Dimension getMinimumSize(JComponent c)
getMaximumSize
public Dimension getMaximumSize(JComponent c)
contains
public boolean contains(JComponent c,
int x,
int y)
createUI
public static ComponentUI createUI(JComponent c)
getAccessibleChildrenCount
public int getAccessibleChildrenCount(JComponent c)
- Returns the number of accessible children in the object. If all
of the children of this object implement Accessible, than this
method should return the number of children of this object.
UI's might wish to override this if they present areas on the
screen that can be viewed as components, but actual components
are not used for presenting those areas.
- Returns:
- the number of accessible children in the object.
- See Also:
getAccessibleChild(javax.swing.JComponent, int)
getAccessibleChild
public Accessible getAccessibleChild(JComponent c,
int i)
- Return the nth Accessible child of the object.
UI's might wish to override this if they present areas on the
screen that can be viewed as components, but actual components
are not used for presenting those areas.
- Parameters:
i
- zero-based index of child- Returns:
- the nth Accessible child of the object
- See Also:
getAccessibleChildrenCount(javax.swing.JComponent)
Submit a bug or feature
Java, Java 2D, and JDBC are a trademarks or registered trademarks of Sun Microsystems, Inc. in the US and other countries.
Copyright 1993-1999 Sun Microsystems, Inc. 901 San Antonio Road,
Palo Alto, California, 94303, U.S.A. All Rights Reserved.