java.lang.Object
javax.swing.plaf.ComponentUI
javax.swing.plaf.TreeUI
javax.swing.plaf.basic.BasicTreeUI
javax.swing.plaf.synth.SynthTreeUI
- すべての実装されたインタフェース:
- PropertyChangeListener,- EventListener,- SynthConstants,- SynthUI
public class SynthTreeUI extends BasicTreeUI implements PropertyChangeListener, SynthUI
JTreeのSynth L&F UIの委譲を提供します。- 導入されたバージョン:
- 1.7
- 
ネストされたクラスのサマリークラスjavax.swing.plaf.basic.BasicTreeUIで宣言されたネストされたクラス/インタフェースBasicTreeUI.CellEditorHandler, BasicTreeUI.ComponentHandler, BasicTreeUI.FocusHandler, BasicTreeUI.KeyHandler, BasicTreeUI.MouseHandler, BasicTreeUI.MouseInputHandler, BasicTreeUI.NodeDimensionsHandler, BasicTreeUI.PropertyChangeHandler, BasicTreeUI.SelectionModelPropertyChangeHandler, BasicTreeUI.TreeCancelEditingAction, BasicTreeUI.TreeExpansionHandler, BasicTreeUI.TreeHomeAction, BasicTreeUI.TreeIncrementAction, BasicTreeUI.TreeModelHandler, BasicTreeUI.TreePageAction, BasicTreeUI.TreeSelectionHandler, BasicTreeUI.TreeToggleAction, BasicTreeUI.TreeTraverseAction
- 
フィールドのサマリークラスjavax.swing.plaf.basic.BasicTreeUIで宣言されたフィールドcellEditor, collapsedIcon, createdCellEditor, createdRenderer, currentCellRenderer, depthOffset, drawingCache, editingComponent, editingPath, editingRow, editorHasDifferentSize, expandedIcon, largeModel, lastSelectedRow, leftChildIndent, nodeDimensions, preferredMinSize, preferredSize, rendererPane, rightChildIndent, stopEditingInCompleteEditing, totalChildIndent, tree, treeModel, treeSelectionModel, treeState, validCachedPreferredSizeインタフェースjavax.swing.plaf.synth.SynthConstantsで宣言されているフィールドDEFAULT, DISABLED, ENABLED, FOCUSED, MOUSE_OVER, PRESSED, SELECTED
- 
コンストラクタのサマリーコンストラクタ
- 
メソッドのサマリー修飾子と型メソッド説明static ComponentUI指定されたコンポーネントの新しいUIオブジェクトを作成します。指定されたコンポーネントのコンテキストを返します。voidpaint(Graphics g, JComponent c) Look & Feelに従って、指定されたコンポーネントをペイントします。protected voidpaint(SynthContext context, Graphics g) 指定されたコンポーネントをペイントします。voidpaintBorder(SynthContext context, Graphics g, int x, int y, int w, int h) ボーダーをペイントします。voidバウンド・プロパティの変更時に呼び出されます。voidupdate(Graphics g, JComponent c) このUI委譲に、指定されたコンポーネントを再ペイントするよう通知します。クラスjavax.swing.plaf.basic.BasicTreeUIで宣言されたメソッドcancelEditing, checkForClickInExpandControl, completeEditing, completeEditing, completeUIInstall, completeUIUninstall, configureLayoutCache, createCellEditorListener, createCellRendererPane, createComponentListener, createDefaultCellEditor, createDefaultCellRenderer, createFocusListener, createKeyListener, createLayoutCache, createMouseListener, createNodeDimensions, createPropertyChangeListener, createSelectionModelPropertyChangeListener, createTreeExpansionListener, createTreeModelListener, createTreeSelectionListener, drawCentered, drawDashedHorizontalLine, drawDashedVerticalLine, ensureRowsAreVisible, getBaseline, getBaselineResizeBehavior, getCellEditor, getCellRenderer, getClosestPathForLocation, getCollapsedIcon, getDropLineRect, getEditingPath, getExpandedIcon, getHashColor, getHorizontalLegBuffer, getLastChildPath, getLeadSelectionRow, getLeftChildIndent, getMaximumSize, getMinimumSize, getModel, getPathBounds, getPathForRow, getPreferredMinSize, getPreferredSize, getPreferredSize, getRightChildIndent, getRowCount, getRowForPath, getRowHeight, getRowX, getSelectionModel, getShowsRootHandles, getVerticalLegBuffer, handleExpandControlClick, installComponents, installDefaults, installKeyboardActions, installListeners, isDropLine, isEditable, isEditing, isLargeModel, isLeaf, isLocationInExpandControl, isMultiSelectEvent, isRootVisible, isToggleEvent, isToggleSelectionEvent, paintDropLine, paintExpandControl, paintHorizontalLine, paintHorizontalPartOfLeg, paintRow, paintVerticalLine, paintVerticalPartOfLeg, pathWasCollapsed, pathWasExpanded, prepareForUIInstall, prepareForUIUninstall, selectPathForEvent, setCellEditor, setCellRenderer, setCollapsedIcon, setEditable, setExpandedIcon, setHashColor, setLargeModel, setLeftChildIndent, setModel, setPreferredMinSize, setRightChildIndent, setRootVisible, setRowHeight, setSelectionModel, setShowsRootHandles, shouldPaintExpandControl, startEditing, startEditingAtPath, stopEditing, toggleExpandState, uninstallComponents, uninstallDefaults, uninstallKeyboardActions, uninstallListeners, updateCachedPreferredSize, updateCellEditor, updateDepthOffset, updateExpandedDescendants, updateLayoutCacheExpandedNodes, updateLeadSelectionRow, updateRenderer, updateSizeクラスjavax.swing.plaf.ComponentUIで宣言されたメソッドcontains, getAccessibleChild, getAccessibleChildrenCount, installUI, uninstallUI
- 
コンストラクタの詳細- 
SynthTreeUIpublic SynthTreeUI()SynthTreeUIを構築します。
 
- 
- 
メソッドの詳細- 
createUIpublic static ComponentUI createUI(JComponent x) 指定されたコンポーネントの新しいUIオブジェクトを作成します。- パラメータ:
- x- UIオブジェクトを作成するコンポーネント
- 戻り値:
- UIオブジェクト
 
- 
getContextpublic SynthContext getContext(JComponent c) 指定されたコンポーネントのコンテキストを返します。- 定義:
- getContext、インタフェース- SynthUI
- パラメータ:
- c- SynthContextを要求するコンポーネント。
- 戻り値:
- コンポーネントを記述するSynthContext。
 
- 
updatepublic void update(Graphics g, JComponent c) このUI委譲に、指定されたコンポーネントを再ペイントするよう通知します。 このメソッドはコンポーネントのバックグラウンドをペイントし、paint(SynthContext,Graphics)メソッドを呼び出します。一般に、このメソッドはサブクラスによってオーバーライドする必要はありません。 すべてのLook & Feelの描画コードを paintメソッドに入れるようにしてください。- オーバーライド:
- update、クラス- ComponentUI
- パラメータ:
- g- ペイントに使用される- Graphicsオブジェクト
- c- ペイントされるコンポーネント
- 関連項目:
 
- 
paintBorderpublic void paintBorder(SynthContext context, Graphics g, int x, int y, int w, int h) ボーダーをペイントします。- 定義:
- paintBorder、インタフェース- SynthUI
- パラメータ:
- context- コンポーネント・コンテキスト
- g- ペイントされる- Graphics
- x- X座標
- y- Y座標
- w- ボーダーの幅
- h- ボーダーの高さ
 
- 
paintpublic void paint(Graphics g, JComponent c) Look & Feelに従って、指定されたコンポーネントをペイントします。このメソッドは、Synth Look & Feelで使用されません。 ペイントは paint(SynthContext,Graphics)メソッドによって処理されます。- オーバーライド:
- paint、クラス- ComponentUI
- パラメータ:
- g- ペイントに使用される- Graphicsオブジェクト
- c- ペイントされるコンポーネント
- 関連項目:
 
- 
paintprotected void paint(SynthContext context, Graphics g) 指定されたコンポーネントをペイントします。- パラメータ:
- context- ペイントされるコンポーネントのコンテキスト
- g- ペイントに使用される- Graphicsオブジェクト
- 関連項目:
 
- 
propertyChangepublic void propertyChange(PropertyChangeEvent event) バウンド・プロパティの変更時に呼び出されます。- 定義:
- propertyChange、インタフェース- PropertyChangeListener
- パラメータ:
- event- イベント・ソースと変更されたプロパティを記述するPropertyChangeEventオブジェクト。
 
 
-