|
JavaTM 2 Platform Standard Ed. 6 |
|||||||||
| 上一個類別 下一個類別 | 框架 無框架 | |||||||||
| 摘要: 巢狀 | 欄位 | 建構子 | 方法 | 詳細資訊: 欄位 | 建構子 | 方法 | |||||||||
java.lang.Objectjavax.swing.plaf.ComponentUI
javax.swing.plaf.TreeUI
javax.swing.plaf.multi.MultiTreeUI
public class MultiTreeUI
用於組合 TreeUI 的多路 UI。
此檔案由 AutoMulti 自動產生。
| 欄位摘要 | |
|---|---|
protected Vector |
uis
包含實際 UI 的向量。 |
| 建構子摘要 | |
|---|---|
MultiTreeUI()
|
|
| 方法摘要 | |
|---|---|
void |
cancelEditing(JTree a)
在由此物件處理的每個 UI 上調用 cancelEditing 方法。 |
boolean |
contains(JComponent a,
int b,
int c)
在由此物件處理的每個 UI 上調用 contains 方法。 |
static ComponentUI |
createUI(JComponent a)
如果任意輔助 LookAndFeel 都支持此 UI,則返回一個多路 UI 實例。 |
Accessible |
getAccessibleChild(JComponent a,
int b)
在由此物件處理的每個 UI 上調用 getAccessibleChild 方法。 |
int |
getAccessibleChildrenCount(JComponent a)
在由此物件處理的每個 UI 上調用 getAccessibleChildrenCount 方法。 |
TreePath |
getClosestPathForLocation(JTree a,
int b,
int c)
在由此物件處理的每個 UI 上調用 getClosestPathForLocation 方法。 |
TreePath |
getEditingPath(JTree a)
在由此物件處理的每個 UI 上調用 getEditingPath 方法。 |
Dimension |
getMaximumSize(JComponent a)
在由此物件處理的每個 UI 上調用 getMaximumSize 方法。 |
Dimension |
getMinimumSize(JComponent a)
在由此物件處理的每個 UI 上調用 getMinimumSize 方法。 |
Rectangle |
getPathBounds(JTree a,
TreePath b)
在由此物件處理的每個 UI 上調用 getPathBounds 方法。 |
TreePath |
getPathForRow(JTree a,
int b)
在由此物件處理的每個 UI 上調用 getPathForRow 方法。 |
Dimension |
getPreferredSize(JComponent a)
在由此物件處理的每個 UI 上調用 getPreferredSize 方法。 |
int |
getRowCount(JTree a)
在由此物件處理的每個 UI 上調用 getRowCount 方法。 |
int |
getRowForPath(JTree a,
TreePath b)
在由此物件處理的每個 UI 上調用 getRowForPath 方法。 |
ComponentUI[] |
getUIs()
返回與此多路 UI 關聯的 UI 列表。 |
void |
installUI(JComponent a)
在由此物件處理的每個 UI 上調用 installUI 方法。 |
boolean |
isEditing(JTree a)
在由此物件處理的每個 UI 上調用 isEditing 方法。 |
void |
paint(Graphics a,
JComponent b)
在由此物件處理的每個 UI 上調用 paint 方法。 |
void |
startEditingAtPath(JTree a,
TreePath b)
在由此物件處理的每個 UI 上調用 startEditingAtPath 方法。 |
boolean |
stopEditing(JTree a)
在由此物件處理的每個 UI 上調用 stopEditing 方法。 |
void |
uninstallUI(JComponent a)
在由此物件處理的每個 UI 上調用 uninstallUI 方法。 |
void |
update(Graphics a,
JComponent b)
在由此物件處理的每個 UI 上調用 update 方法。 |
| 從類別 javax.swing.plaf.ComponentUI 繼承的方法 |
|---|
getBaseline, getBaselineResizeBehavior |
| 從類別 java.lang.Object 繼承的方法 |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| 欄位詳細資訊 |
|---|
protected Vector uis
createUI 的調用中產生的,並且可通過調用 getUIs 方法獲得它。可以保證第一個元素是從預設外觀獲得的實際 UI。
| 建構子詳細資訊 |
|---|
public MultiTreeUI()
| 方法詳細資訊 |
|---|
public ComponentUI[] getUIs()
public Rectangle getPathBounds(JTree a,
TreePath b)
getPathBounds 方法。
TreeUI 中的 getPathBoundsLookAndFeel 獲得的 UI
public TreePath getPathForRow(JTree a,
int b)
getPathForRow 方法。
TreeUI 中的 getPathForRowLookAndFeel 獲得的 UI
public int getRowForPath(JTree a,
TreePath b)
getRowForPath 方法。
TreeUI 中的 getRowForPathLookAndFeel 獲得的 UIpublic int getRowCount(JTree a)
getRowCount 方法。
TreeUI 中的 getRowCountLookAndFeel 獲得的 UI
public TreePath getClosestPathForLocation(JTree a,
int b,
int c)
getClosestPathForLocation 方法。
TreeUI 中的 getClosestPathForLocationLookAndFeel 獲得的 UIpublic boolean isEditing(JTree a)
isEditing 方法。
TreeUI 中的 isEditingLookAndFeel 獲得的 UIpublic boolean stopEditing(JTree a)
stopEditing 方法。
TreeUI 中的 stopEditingLookAndFeel 獲得的 UIpublic void cancelEditing(JTree a)
cancelEditing 方法。
TreeUI 中的 cancelEditing
public void startEditingAtPath(JTree a,
TreePath b)
startEditingAtPath 方法。
TreeUI 中的 startEditingAtPathpublic TreePath getEditingPath(JTree a)
getEditingPath 方法。
TreeUI 中的 getEditingPathLookAndFeel 獲得的 UI
public boolean contains(JComponent a,
int b,
int c)
contains 方法。
ComponentUI 中的 containsa - 將在其中查詢 x,y 的元件;此參數常被忽略,但如果 UI 物件是無狀態的並由多個元件共享,則可以使用該參數b - 點的 x 坐標c - 點的 y 坐標
LookAndFeel 獲得的 UIJComponent.contains(int, int),
Component.contains(int, int)
public void update(Graphics a,
JComponent b)
update 方法。
ComponentUI 中的 updatea - 將在其中進行繪製的 Graphics 上下文b - 將繪製的元件;此參數常被忽略,但如果 UI 物件是無狀態的並由多個元件共享,則可以使用該參數ComponentUI.paint(java.awt.Graphics, javax.swing.JComponent),
JComponent.paintComponent(java.awt.Graphics)public static ComponentUI createUI(JComponent a)
LookAndFeel 都支持此 UI,則返回一個多路 UI 實例。否則只返回從預設 LookAndFeel 獲得的 UI 物件。
public void installUI(JComponent a)
installUI 方法。
ComponentUI 中的 installUIa - 將安裝此 UI 委託的元件ComponentUI.uninstallUI(javax.swing.JComponent),
JComponent.setUI(javax.swing.plaf.ComponentUI),
JComponent.updateUI()public void uninstallUI(JComponent a)
uninstallUI 方法。
ComponentUI 中的 uninstallUIa - 從中移除此 UI 委託的元件;此參數常被忽略,但如果 UI 物件是無狀態的並由多個元件共享,則可以使用該參數ComponentUI.installUI(javax.swing.JComponent),
JComponent.updateUI()
public void paint(Graphics a,
JComponent b)
paint 方法。
ComponentUI 中的 painta - 將在其中進行繪製的 Graphics 上下文b - 將繪製的元件;此參數常被忽略,但如果 UI 物件是無狀態的並由多個元件共享,則可以使用該參數ComponentUI.update(java.awt.Graphics, javax.swing.JComponent)public Dimension getPreferredSize(JComponent a)
getPreferredSize 方法。
ComponentUI 中的 getPreferredSizea - 將查詢其首選大小的元件;此參數常被忽略,但如果 UI 物件是無狀態的並由多個元件共享,則可以使用該參數
LookAndFeel 獲得的 UIJComponent.getPreferredSize(),
LayoutManager.preferredLayoutSize(java.awt.Container)public Dimension getMinimumSize(JComponent a)
getMinimumSize 方法。
ComponentUI 中的 getMinimumSizea - 將查詢其最小大小的元件;此參數常被忽略,但如果 UI 物件是無狀態的並由多個元件共享,則可以使用該參數
LookAndFeel 獲得的 UIJComponent.getMinimumSize(),
LayoutManager.minimumLayoutSize(java.awt.Container),
ComponentUI.getPreferredSize(javax.swing.JComponent)public Dimension getMaximumSize(JComponent a)
getMaximumSize 方法。
ComponentUI 中的 getMaximumSizea - 將查詢其最大大小的元件;此參數常被忽略,但如果 UI 物件是無狀態的並由多個元件共享,則可以使用該參數
LookAndFeel 獲得的 UIJComponent.getMaximumSize(),
LayoutManager2.maximumLayoutSize(java.awt.Container)public int getAccessibleChildrenCount(JComponent a)
getAccessibleChildrenCount 方法。
ComponentUI 中的 getAccessibleChildrenCountLookAndFeel 獲得的 UIComponentUI.getAccessibleChild(javax.swing.JComponent, int)
public Accessible getAccessibleChild(JComponent a,
int b)
getAccessibleChild 方法。
ComponentUI 中的 getAccessibleChildb - 子物件的從零開始的索引
LookAndFeel 獲得的 UIComponentUI.getAccessibleChildrenCount(javax.swing.JComponent)
|
JavaTM 2 Platform Standard Ed. 6 |
|||||||||
| 上一個類別 下一個類別 | 框架 無框架 | |||||||||
| 摘要: 巢狀 | 欄位 | 建構子 | 方法 | 詳細資訊: 欄位 | 建構子 | 方法 | |||||||||
版權所有 2008 Sun Microsystems, Inc. 保留所有權利。請遵守GNU General Public License, version 2 only。