public class BasicTreeUI extends TreeUI
| 修食åãšå | ã¯ã©ã¹ | 説æ |
|---|---|---|
class |
BasicTreeUI.CellEditorHandler |
ã»ã«ç·šéã€ãã³ããååŸããããã«å¿ããŠããªãŒãæŽæ°ãããªã¹ããŒã§ãã
|
class |
BasicTreeUI.ComponentHandler |
ã¹ã¯ããŒã«æã«æšå¥šãµã€ãºãæŽæ°ããŸã(å¿
èŠã«å¿ããŠ)ã
|
class |
BasicTreeUI.FocusHandler |
ãã©ãŒã«ã¹ãåªå€±ãŸãã¯ååŸãããšãã«ãªãŒãéžæè¡ãåãã€ã³ãããŸãã
|
class |
BasicTreeUI.KeyHandler |
ããã¯ãè€æ°ã®ããŒæŒäžã€ãã³ããååŸããŠé©åã«ã€ãã³ããçæããããã«äœ¿çšãããŸãã
|
class |
BasicTreeUI.MouseHandler |
TreeMouseListenerã¯ããŠã¹ã»ã€ãã³ãã«åºã¥ããŠéžæãæŽæ°ããŸãã
|
class |
BasicTreeUI.MouseInputHandler |
MouseInputHandlerã¯ãããŠã¹ãæŸãããŠæ§ç¯æžã¿ã®éä¿¡å
ã«éããããŸã§ããã¹ãŠã®ããŠã¹ã»ã€ãã³ã(ããŠã¹ã»ã¢ãŒã·ã§ã³ã»ã€ãã³ããªã©)ãæž¡ããŸãã
|
class |
BasicTreeUI.NodeDimensionsHandler |
ããŒãã®ãµã€ãºãååŸããã¯ã©ã¹ãã¡ãœããã¯BasicTreeUIã¡ãœããã«è»¢éãããŸãã
|
class |
BasicTreeUI.PropertyChangeHandler |
ããªãŒã®PropertyChangeListenerã§ãã
|
class |
BasicTreeUI.SelectionModelPropertyChangeHandler |
TreeSelectionModelã®ãªã¹ããŒãã¢ãã«ã®ããããã£ã倿Žãããå Žåã«è¡éžæããªã»ããããŸãã
|
class |
BasicTreeUI.TreeCancelEditingAction |
ã¢ã¯ã·ã§ã³ãå®è¡ããããšãã«cancelEditingãåŒã³åºãActionListenerã§ãã
|
class |
BasicTreeUI.TreeExpansionHandler |
ããŒãã®å±éãŸãã¯æãããã¿ã«å¿ããŠTreeStateãæŽæ°ããŸãã
|
class |
BasicTreeUI.TreeHomeAction |
TreeHomeActionã¯ãEnd/Homeã¢ã¯ã·ã§ã³ãåŠçããããã«äœ¿çšãããŸãã
|
class |
BasicTreeUI.TreeIncrementAction |
TreeIncrementActionã¯ãäžäžã¢ã¯ã·ã§ã³ãåŠçããããã«äœ¿çšãããŸãã
|
class |
BasicTreeUI.TreeModelHandler |
ãã¹ãŠã®TreeModelã€ãã³ããTreeStateã«è»¢éããŸãã
|
class |
BasicTreeUI.TreePageAction |
TreePageActionã¯ãããŒãžã»ã¢ãããšããŒãžã»ããŠã³ã®ã€ãã³ããåŠçããŸãã
|
class |
BasicTreeUI.TreeSelectionHandler |
éžæã¢ãã«ã®å€æŽãåŸ
æ©ããããã«å¿ããŠè¡šç€ºãæŽæ°ããŸãã
|
class |
BasicTreeUI.TreeToggleAction |
æåã«éžæãããè¡ã§ãå±éç¶æ
ãåãæ¿ããããŸãã
|
class |
BasicTreeUI.TreeTraverseAction |
TreeTraverseActionã¯ãå·ŠãŸãã¯å³ããŒã®ããã«äœ¿çšãããã¢ã¯ã·ã§ã³ã§ãã |
| 修食åãšå | ãã£ãŒã«ã | 説æ |
|---|---|---|
protected TreeCellEditor |
cellEditor |
ããªãŒã®ãšãã£ã¿ã§ãã
|
protected Icon |
collapsedIcon |
|
protected boolean |
createdCellEditor |
çŸåšããªãŒã«ãããšãã£ã¿ããã®ã€ã³ã¹ã¿ã³ã¹ã«ãã£ãŠäœæãããå Žåã«trueã«èšå®ãããŸãã
|
protected boolean |
createdRenderer |
çŸåšããªãŒã«ããã¬ã³ãã©ããã®ã€ã³ã¹ã¿ã³ã¹ã«ãã£ãŠäœæãããå Žåã«trueã«èšå®ãããŸãã
|
protected TreeCellRenderer |
currentCellRenderer |
å®éã®ã»ã«ã®æç»ãè¡ãããã«äœ¿ãããŠããã¬ã³ãã©ã§ãã
|
protected int |
depthOffset |
xäœçœ®ãæ£ç¢ºã«èšç®ããããã®æ·±ãã®ãªãã»ããã®éã§ãã
|
protected Hashtable<TreePath,Boolean> |
drawingCache |
åçŽç·ã®æç»ãæå°åããããã«äœ¿ãããŸãã
|
protected Component |
editingComponent |
ããã¯ç·šéæã«ãå®éã®ç·šéãè¡ãComponentã«ãªããŸãã
|
protected TreePath |
editingPath |
ç·šéäžã®ãã¹ã§ãã
|
protected int |
editingRow |
ç·šéäžã®è¡ã§ãã
|
protected boolean |
editorHasDifferentSize |
ãšãã£ã¿ã®ãµã€ãºãã¬ã³ãã©ãšç°ãªãå Žåã«trueã«èšå®ãããŸãã
|
protected Icon |
expandedIcon |
|
protected boolean |
largeModel |
largeModelã®æé©åãè¡ãªã£ãŠããå Žåã¯trueã§ãã
|
protected int |
lastSelectedRow |
æåŸã«éžæãããè¡ã®ã€ã³ããã¯ã¹ã§ãã
|
protected int |
leftChildIndent |
å·ŠããŒãžã³ãšåçŽã®ç Žç·ãæç»ãããäœçœ®ã®éã®è·é¢ã§ãã
|
protected AbstractLayoutCache.NodeDimensions |
nodeDimensions |
TreeStateã«å¯ŸãããŒãã«å¿
èŠãªãµã€ãºãéç¥ããŸãã
|
protected Dimension |
preferredMinSize |
æšå¥šãããæå°ãµã€ãºã§ãã
|
protected Dimension |
preferredSize |
ãã¹ãŠã®ããŒããå®å
šã«è¡šç€ºããããã«å¿
èŠãªãµã€ãºã§ãã
|
protected CellRendererPane |
rendererPane |
TreeCellRendererããã€ã³ãããããã«äœ¿ãããŸãã
|
protected int |
rightChildIndent |
ã»ã«ã®å
容ãæç»ãããäœçœ®ã決å®ããããã«leftChildIndentã«å ç®ãããè·é¢ã§ãã
|
protected boolean |
stopEditingInCompleteEditing |
ç·šéæã«ãshouldSelectCell()ãtrueãè¿ããå Žåã«falseã«èšå®ãããŸããããã¯ãcompleteEditingã§äœ¿çšãããããŒããç·šéåã«éžæãããªããã°ãªããªãããšãæå³ããŠããŸãã
|
protected int |
totalChildIndent |
ã€ã³ãã³ããããç·è·é¢ã§ãã
|
protected JTree |
tree |
æç»å
ã®ã³ã³ããŒãã³ãã§ãã
|
protected TreeModel |
treeModel |
äœã衚瀺ããããæ±ºå®ããããã«äœ¿ãããŸãã
|
protected TreeSelectionModel |
treeSelectionModel |
éžæãç¶æããã¢ãã«ã§ãã
|
protected AbstractLayoutCache |
treeState |
ãµã€ãºå€æŽãå±éãããŠãããã©ãããåŠçãããªããžã§ã¯ãã§ãã
|
protected boolean |
validCachedPreferredSize |
preferredSizeãæå¹ãã©ããã瀺ããŸãã
|
| ã³ã³ã¹ãã©ã¯ã¿ | 説æ |
|---|---|
BasicTreeUI() |
| 修食åãšå | ã¡ãœãã | 説æ |
|---|---|---|
void |
cancelEditing(JTree tree) |
çŸåšã®ç·šéã»ãã·ã§ã³ãåãæ¶ããŸãã
|
protected void |
checkForClickInExpandControl(TreePath path, int mouseX, int mouseY) |
mouseXããã³mouseYãrowã®å±éãŸãã¯æãããã¿ã®é åã«ããå Žåããã®ã¡ãœããã¯è¡ã®å±éç¶æ
ãåãæ¿ããŸãã |
protected void |
completeEditing() |
ç·šéäžã»ãã·ã§ã³ãäžæ¢ããã¡ãã»ãŒãžãéããŸãã
|
protected void |
completeEditing(boolean messageStop, boolean messageCancel, boolean messageTree) |
ç·šéäžã»ãã·ã§ã³ãäžæ¢ããŸãã
|
protected void |
completeUIInstall() |
ãã¹ãŠã®ããã©ã«ãããã³ãªã¹ããŒãã€ã³ã¹ããŒã«ãããããšã«installUIããåŒã³åºãããŸãã
|
protected void |
completeUIUninstall() |
|
protected void |
configureLayoutCache() |
Look & FeelãæäŸããŠããããªãŒã«åºã¥ããŠTreeStateã®ã€ã³ã¹ã¿ã³ã¹ããªã»ããããŸãã
|
protected CellEditorListener |
createCellEditorListener() |
çŸåšã®ãšãã£ã¿ããã®ã€ãã³ããåŠçãããªã¹ããŒãäœæããŸãã
|
protected CellRendererPane |
createCellRendererPane() |
ã¬ã³ãã©ã»ã³ã³ããŒãã³ããé
眮ãããŠããã¬ã³ãã©ã»ãã€ã³ãè¿ããŸãã
|
protected ComponentListener |
createComponentListener() |
æ°ããComponentHandlerãäœæãããããè¿ããŸãã
|
protected TreeCellEditor |
createDefaultCellEditor() |
ããã©ã«ãã®ã»ã«ã»ãšãã£ã¿ãäœæããŸãã
|
protected TreeCellRenderer |
createDefaultCellRenderer() |
åããŒããã¹ã¿ã³ãããããã«äœ¿ãããããã©ã«ãã®ã»ã«ã»ã¬ã³ãã©ãè¿ããŸãã
|
protected FocusListener |
createFocusListener() |
ãã©ãŒã«ã¹ãåªå€±ãŸãã¯ååŸãããšãã«è¡šç€ºãæŽæ°ãããªã¹ããŒãäœæããŸãã
|
protected KeyListener |
createKeyListener() |
ããªãŒããããŒã»ã€ãã³ããååŸãããªã¹ããŒãäœæããŸãã
|
protected AbstractLayoutCache |
createLayoutCache() |
äœãå±éãããŠãããããã³ããŒãã®ãµã€ãºã管çãããªããžã§ã¯ããäœæããŸãã
|
protected MouseListener |
createMouseListener() |
ããŠã¹ã»ã€ãã³ãã«åºã¥ããŠéžæãæŽæ°ãããªã¹ããŒãäœæããŸãã
|
protected AbstractLayoutCache.NodeDimensions |
createNodeDimensions() |
ããªãŒã®æå®ãããããŒãã®ãµã€ãºã決å®ã§ãããNodeDimensionsã®ã€ã³ã¹ã¿ã³ã¹ãäœæããŸãã
|
protected PropertyChangeListener |
createPropertyChangeListener() |
ããªãŒã®å€æŽã«åºã¥ããŠUIãæŽæ°ãããªã¹ããŒãäœæããŸãã
|
protected PropertyChangeListener |
createSelectionModelPropertyChangeListener() |
éžæã¢ãã«ããããããã£å€æŽã€ãã³ããååŸãããªã¹ããŒãäœæããŸãã
|
protected TreeExpansionListener |
createTreeExpansionListener() |
ããŒãã®å±éç¶æ
ã倿Žããããšãã«ããªãŒã®ç¶æ
ãæŽæ°ãããªããžã§ã¯ããäœæãããããè¿ããŸãã
|
protected TreeModelListener |
createTreeModelListener() |
ã¢ãã«ã倿Žããããšãã«ããªãŒãæŽæ°ã§ãããªã¹ããŒãè¿ããŸãã
|
protected TreeSelectionListener |
createTreeSelectionListener() |
éžæå€æŽã¡ãœããã«åºã¥ããŠè¡šç€ºãæŽæ°ãããªã¹ããŒãäœæããŸãã
|
static ComponentUI |
createUI(JComponent x) |
|
protected void |
drawCentered(Component c, Graphics graphics, Icon icon, int x, int y) |
|
protected void |
drawDashedHorizontalLine(Graphics g, int y, int x1, int x2) |
|
protected void |
drawDashedVerticalLine(Graphics g, int x, int y1, int y2) |
|
protected void |
ensureRowsAreVisible(int beginRow, int endRow) |
beginRowãšendRowã«ãã£ãŠèå¥ããããã¹ãŠã®è¡ãå¯èŠã«ãªããŸãã
|
int |
getBaseline(JComponent c, int width, int height) |
ããŒã¹ã©ã€ã³ãè¿ããŸãã
|
Component.BaselineResizeBehavior |
getBaselineResizeBehavior(JComponent c) |
ãµã€ãºã®å€åã«åãããŠã³ã³ããŒãã³ãã®ããŒã¹ã©ã€ã³ãã©ã®ããã«å€åãããã瀺ãåæãè¿ããŸãã
|
protected TreeCellEditor |
getCellEditor() |
|
protected TreeCellRenderer |
getCellRenderer() |
ããªãŒã»ã¬ã³ãã©ãŸãã¯defaultCellRenderer (nullã§ãªãæ¹)ã«ãªããcurrentCellRendererãè¿ããŸãã
|
TreePath |
getClosestPathForLocation(JTree tree, int x, int y) |
xãyã«ãã£ãšãè¿ãããŒããžã®ãã¹ãè¿ããŸãã
|
Icon |
getCollapsedIcon() |
|
protected Rectangle |
getDropLineRect(JTree.DropLocation loc) |
ããããã»ã©ã€ã³ã®ã¢ã³ããŠã³ãã£ã³ã°ã»ããã¯ã¹ãè¿ããŸãã
|
TreePath |
getEditingPath(JTree tree) |
ç·šéäžã®èŠçŽ ãžã®ãã¹ãè¿ããŸãã
|
Icon |
getExpandedIcon() |
|
protected Color |
getHashColor() |
|
protected int |
getHorizontalLegBuffer() |
ããŒãéã®èã®æ°Žå¹³èŠçŽ ã¯ãããã©ã«ãã§ã¯åããŒãã®å·ŠåŽã®å³ã§å§ãŸããŸãã
|
protected TreePath |
getLastChildPath(TreePath parent) |
parentã®æåŸã®åã®ãã¹ãè¿ããŸãã |
protected int |
getLeadSelectionRow() |
éžæã®ãªãŒãè¡ãè¿ããŸãã
|
int |
getLeftChildIndent() |
|
Dimension |
getMaximumSize(JComponent c) |
ãã®ã³ã³ããŒãã³ãã®æå€§ãµã€ãºãè¿ããŸããã€ã³ã¹ã¿ã³ã¹ãçŸåšJTreeã«ããå Žåã¯æšå¥šãµã€ãºãããã§ãªãå Žåã¯0, 0ã§ãã
|
Dimension |
getMinimumSize(JComponent c) |
ãã®ã³ã³ããŒãã³ãã®æå°ãµã€ãºãè¿ããŸãã
|
protected TreeModel |
getModel() |
|
Rectangle |
getPathBounds(JTree tree, TreePath path) |
ãã¹ã®æåŸã®é
ç®ãæç»ãããã©ãã«éšåãå²ãRectangleãè¿ããŸãã
|
TreePath |
getPathForRow(JTree tree, int row) |
æž¡ãããrowã®ãã¹ãè¿ããŸãã
|
Dimension |
getPreferredMinSize() |
æšå¥šãããæå°ãµã€ãºãè¿ããŸãã
|
Dimension |
getPreferredSize(JComponent c) |
ããªãŒãæ£ãã衚瀺ããããã®æšå¥šãµã€ãºãè¿ããŸããããã¯ãgetPreferredSize(c, true)ã®ã«ããŒã»ã¡ãœããã§ãã
|
Dimension |
getPreferredSize(JComponent c, boolean checkConsistency) |
cã§ããªãŒã衚ãããã®æšå¥šãµã€ãºãè¿ããŸãã
|
int |
getRightChildIndent() |
|
int |
getRowCount(JTree tree) |
衚瀺ãããŠããè¡æ°ãè¿ããŸãã
|
int |
getRowForPath(JTree tree, TreePath path) |
pathã§èå¥ãããæåŸã®é
ç®ãå¯èŠã§ããè¡ãè¿ããŸãã
|
protected int |
getRowHeight() |
|
protected int |
getRowX(int row, int depth) |
xè»žã«æ²¿ã£ãŠç¹å®ã®è¡ãã¬ã³ããªã³ã°ããäœçœ®ãè¿ããŸãã
|
protected TreeSelectionModel |
getSelectionModel() |
|
protected boolean |
getShowsRootHandles() |
|
protected int |
getVerticalLegBuffer() |
ããŒãéã®èã®åçŽèŠçŽ ã¯ãããã©ã«ãã§ã¯èŠªããŒãã®äžç«¯ããå§ãŸããŸãã
|
protected void |
handleExpandControlClick(TreePath path, int mouseX, int mouseY) |
ãŠãŒã¶ãŒãç¹å®ã®è¡ãã¯ãªãã¯ãããšãã«ã¡ãã»ãŒãžãšããŠéãããtoggleExpandStateãåŒã³åºããŸãã
|
protected void |
installComponents() |
ã¬ã³ãã©ã»ãã€ã³ã§ãããããªãŒã®ãµãã³ã³ããŒãã³ããã€ã³ã¹ããŒã«ããŸãã
|
protected void |
installDefaults() |
|
protected void |
installKeyboardActions() |
|
protected void |
installListeners() |
|
void |
installUI(JComponent c) |
æå®ãããã³ã³ããŒãã³ããLook & Feelã«å¿ããŠé©åã«æ§æããŸãã
|
protected boolean |
isDropLine(JTree.DropLocation loc) |
DropLocationãããŒãéã®ã©ã€ã³ã«ãã£ãŠç€ºããã©ãããéç¥ããŸãã |
protected boolean |
isEditable() |
|
boolean |
isEditing(JTree tree) |
ããªãŒãç·šéäžã®å Žåã«trueãè¿ããŸãã
|
protected boolean |
isLargeModel() |
|
protected boolean |
isLeaf(int row) |
|
protected boolean |
isLocationInExpandControl(TreePath path, int mouseX, int mouseY) |
mouseXããã³mouseYãããŒãã®å±éãŸãã¯æãããã¿ã«äœ¿çšãããè¡ã®é åã«ãããrowã«ããããŒããèã衚ããªãå Žåã«trueãè¿ããŸãã |
protected boolean |
isMultiSelectEvent(MouseEvent event) |
trueãè¿ãããšã¯ãããŒãäžã®ããŠã¹ã»ã€ãã³ããã¢ã³ã«ãŒã»ãã€ã³ãããéžæããŠããããšãæå³ããŸãã
|
protected boolean |
isRootVisible() |
|
protected boolean |
isToggleEvent(MouseEvent event) |
trueãè¿ãããšã¯ãããŠã¹ã®äžã®è¡ãã€ãã³ãã«åºã¥ããŠåãæ¿ããããããšã瀺ããŸãã
|
protected boolean |
isToggleSelectionEvent(MouseEvent event) |
trueãè¿ãããšã¯ãããŒãäžã®ããŠã¹ã»ã€ãã³ããããŠã¹ã®äžã®è¡ã ãã®éžæãåãæ¿ããããšãæå³ããŸãã
|
void |
paint(Graphics g, JComponent c) |
æå®ãããã³ã³ããŒãã³ããLook & Feelã«åãããŠãã€ã³ãããŸãã
|
protected void |
paintDropLine(Graphics g) |
ããããã»ã©ã€ã³ããã€ã³ãããŸãã
|
protected void |
paintExpandControl(Graphics g, Rectangle clipBounds, Insets insets, Rectangle bounds, TreePath path, int row, boolean isExpanded, boolean hasBeenExpanded, boolean isLeaf) |
è¡ã®å±é(åãæ¿ã)éšåããã€ã³ãããŸãã
|
protected void |
paintHorizontalLine(Graphics g, JComponent c, int y, int left, int right) |
æ°Žå¹³ç·ããã€ã³ãããŸãã
|
protected void |
paintHorizontalPartOfLeg(Graphics g, Rectangle clipBounds, Insets insets, Rectangle bounds, TreePath path, int row, boolean isExpanded, boolean hasBeenExpanded, boolean isLeaf) |
èã®æ°Žå¹³éšåããã€ã³ãããŸãã
|
protected void |
paintRow(Graphics g, Rectangle clipBounds, Insets insets, Rectangle bounds, TreePath path, int row, boolean isExpanded, boolean hasBeenExpanded, boolean isLeaf) |
è¡ã®ã¬ã³ãã©éšåããã€ã³ãããŸãã
|
protected void |
paintVerticalLine(Graphics g, JComponent c, int x, int top, int bottom) |
åçŽç·ããã€ã³ãããŸãã
|
protected void |
paintVerticalPartOfLeg(Graphics g, Rectangle clipBounds, Insets insets, TreePath path) |
èã®åçŽéšåããã€ã³ãããŸãã
|
protected void |
pathWasCollapsed(TreePath path) |
VisibleTreeNodeãæããããŸããããšã«ãVisibleTreeNodeããã¡ãã»ãŒãžãšããŠéãããŸãã
|
protected void |
pathWasExpanded(TreePath path) |
VisibleTreeNodeãå±éãããããšã«ãVisibleTreeNodeããã¡ãã»ãŒãžãšããŠéãããŸãã
|
protected void |
prepareForUIInstall() |
treeã€ã³ã¹ã¿ã³ã¹å€æ°ã®èšå®åŸãããã©ã«ãããã³ãªã¹ããŒãã€ã³ã¹ããŒã«ãããåã«åŒã³åºãããŸãã |
protected void |
prepareForUIUninstall() |
|
protected void |
selectPathForEvent(TreePath path, MouseEvent event) |
ç¹å®ã®è¡ã§ã®MouseEventã«åºã¥ããŠéžæãæŽæ°ããããã«ã¡ãã»ãŒãžãšããŠéãããŸãã
|
protected void |
setCellEditor(TreeCellEditor editor) |
ã»ã«ã»ãšãã£ã¿ãèšå®ããŸãã
|
protected void |
setCellRenderer(TreeCellRenderer tcr) |
TreeCellRendererã
tcrã«èšå®ããŸãã |
void |
setCollapsedIcon(Icon newG) |
|
protected void |
setEditable(boolean newValue) |
ã¬ã·ãŒããç·šéãèš±å¯ãããã©ãããèšå®ããŸãã
|
void |
setExpandedIcon(Icon newG) |
|
protected void |
setHashColor(Color color) |
|
protected void |
setLargeModel(boolean largeModel) |
å¿
èŠãªå Žåã«ãcomponentListenerãæŽæ°ããŸãã
|
void |
setLeftChildIndent(int newAmount) |
|
protected void |
setModel(TreeModel model) |
TreeModelãèšå®ããŸãã
|
void |
setPreferredMinSize(Dimension newSize) |
æšå¥šãããæå°ãµã€ãºãèšå®ããŸãã
|
void |
setRightChildIndent(int newAmount) |
|
protected void |
setRootVisible(boolean newValue) |
ã«ãŒããå¯èŠã«èšå®ããŸãã
|
protected void |
setRowHeight(int rowHeight) |
treeStateã«è»¢éããããè¡ã®é«ããèšå®ããŸãã
|
protected void |
setSelectionModel(TreeSelectionModel newLSM) |
éžæã¢ãã«ããªã»ããããŸãã
|
protected void |
setShowsRootHandles(boolean newValue) |
ããŒãã®ãã³ãã«ã衚瀺ããããã©ãããæ±ºããŸãã
|
protected boolean |
shouldPaintExpandControl(TreePath path, int row, boolean isExpanded, boolean hasBeenExpanded, boolean isLeaf) |
æå®ãããè¡ã§å±é(åãæ¿ã)ã³ã³ãããŒã«ãæç»ãããªããã°ãªããªãå Žåã«trueãè¿ããŸãã
|
protected boolean |
startEditing(TreePath path, MouseEvent event) |
cellEditorããããshouldSelectCellãtrueãè¿ããå Žåã«ãããŒãã®ç·šéãéå§ããŸãã
|
void |
startEditingAtPath(JTree tree, TreePath path) |
pathã®æåŸã®é
ç®ãéžæãããã®é
ç®ã®ç·šéã詊ã¿ãŸãã
|
boolean |
stopEditing(JTree tree) |
çŸåšã®ç·šéã»ãã·ã§ã³ãäžæ¢ããŸãã
|
protected void |
toggleExpandState(TreePath path) |
ãã¹ãå±éãããŠãªãå Žåã¯å±éããè¡ãå±éãããŠããå Žåã¯æãããã¿ãŸãã
|
protected void |
uninstallComponents() |
ã¬ã³ãã©ã»ãã€ã³ãã¢ã³ã€ã³ã¹ããŒã«ããŸãã
|
protected void |
uninstallDefaults() |
|
protected void |
uninstallKeyboardActions() |
|
protected void |
uninstallListeners() |
|
void |
uninstallUI(JComponent c) |
installUIæã«ãæå®ãããã³ã³ããŒãã³ãã«å¯ŸããŠè¡ãããæ§æãåãæ¶ããŸãã |
protected void |
updateCachedPreferredSize() |
getPreferredSize()ããè¿ãããpreferredSizeã€ã³ã¹ã¿ã³ã¹å€æ°ãæŽæ°ããŸãã |
protected void |
updateCellEditor() |
çŸåšå«ãŸããŠããJTreeãç·šéã§ãããã©ããã«å¿ããŠcellEditorãæŽæ°ããŸãã
|
protected void |
updateDepthOffset() |
åæ·±ããã©ã®ããããªãã»ããããã¹ãããæŽæ°ããŸãã
|
protected void |
updateExpandedDescendants(TreePath path) |
ããªãŒããå±éãããŠããåå«ãååŸããããªãŒç¶æ
ã«è»¢éããããšã§ã
pathã®ãã¹ãŠã®åå«ã®å±éç¶æ
ãæŽæ°ããŸãã |
protected void |
updateLayoutCacheExpandedNodes() |
JTreeã§å±éãããŠãããã¹ãŠã®ããŒããLayoutCacheã§å±éããŸãã
|
protected void |
updateLeadSelectionRow() |
éžæã®ãªãŒãè¡ãæŽæ°ããŸãã
|
protected void |
updateRenderer() |
ã¬ã³ãã©ã倿Žããããšãã«ããªãŒããã¡ãã»ãŒãžãšããŠéãããŸãã
|
protected void |
updateSize() |
ãã£ãã·ã¥ãããŠãããµã€ãºãç¡å¹ãšããŒã¯ãã
treeDidChangeã§ã¡ãã»ãŒãžãããªãŒã«éããŸãã |
contains, getAccessibleChild, getAccessibleChildrenCount, updateprotected transient Icon collapsedIcon
protected transient Icon expandedIcon
protected int leftChildIndent
protected int rightChildIndent
protected int totalChildIndent
protected Dimension preferredMinSize
protected int lastSelectedRow
protected JTree tree
protected transient TreeCellRenderer currentCellRenderer
protected boolean createdRenderer
protected transient TreeCellEditor cellEditor
protected boolean createdCellEditor
protected boolean stopEditingInCompleteEditing
protected CellRendererPane rendererPane
protected Dimension preferredSize
protected boolean validCachedPreferredSize
protected AbstractLayoutCache treeState
protected Hashtable<TreePath,Boolean> drawingCache
protected boolean largeModel
protected AbstractLayoutCache.NodeDimensions nodeDimensions
protected TreeModel treeModel
protected TreeSelectionModel treeSelectionModel
protected int depthOffset
protected Component editingComponent
protected TreePath editingPath
protected int editingRow
protected boolean editorHasDifferentSize
public static ComponentUI createUI(JComponent x)
protected Color getHashColor()
protected void setHashColor(Color color)
public void setLeftChildIndent(int newAmount)
public int getLeftChildIndent()
public void setRightChildIndent(int newAmount)
public int getRightChildIndent()
public void setExpandedIcon(Icon newG)
public Icon getExpandedIcon()
public void setCollapsedIcon(Icon newG)
public Icon getCollapsedIcon()
protected void setLargeModel(boolean largeModel)
protected boolean isLargeModel()
protected void setRowHeight(int rowHeight)
protected int getRowHeight()
protected void setCellRenderer(TreeCellRenderer tcr)
tcrã«èšå®ããŸãã ããã«ãããupdateRendererãåŒã³åºãããŸãã protected TreeCellRenderer getCellRenderer()
protected void setModel(TreeModel model)
protected TreeModel getModel()
protected void setRootVisible(boolean newValue)
protected boolean isRootVisible()
protected void setShowsRootHandles(boolean newValue)
protected boolean getShowsRootHandles()
protected void setCellEditor(TreeCellEditor editor)
protected TreeCellEditor getCellEditor()
protected void setEditable(boolean newValue)
protected boolean isEditable()
protected void setSelectionModel(TreeSelectionModel newLSM)
protected TreeSelectionModel getSelectionModel()
public Rectangle getPathBounds(JTree tree, TreePath path)
getPathBoundsãã¯ã©ã¹TreeUIpublic TreePath getPathForRow(JTree tree, int row)
getPathForRowãã¯ã©ã¹TreeUIpublic int getRowForPath(JTree tree, TreePath path)
getRowForPathãã¯ã©ã¹TreeUIpublic int getRowCount(JTree tree)
getRowCountãã¯ã©ã¹TreeUIpublic TreePath getClosestPathForLocation(JTree tree, int x, int y)
getClosestPathForLocationãã¯ã©ã¹TreeUIpublic boolean isEditing(JTree tree)
public boolean stopEditing(JTree tree)
stopEditingãã¯ã©ã¹TreeUIpublic void cancelEditing(JTree tree)
cancelEditingãã¯ã©ã¹TreeUIpublic void startEditingAtPath(JTree tree, TreePath path)
startEditingAtPathãã¯ã©ã¹TreeUIpublic TreePath getEditingPath(JTree tree)
getEditingPathãã¯ã©ã¹TreeUIpublic void installUI(JComponent c)
ComponentUIComponentUIã€ã³ã¹ã¿ã³ã¹ããæå®ãããã³ã³ããŒãã³ãã®UIå§è²ãšããŠã€ã³ã¹ããŒã«ãããŠãããšãã«åŒã³åºãããŸãã ãã®ã¡ãœããã¯ã次ãå«ãLook & Feelçšã®ã³ã³ããŒãã³ããå®å
šã«æ§æããã¹ãã§ãã
LayoutManagerãã€ã³ã¹ããŒã«ããã
PropertyChangeListenerãäœæããŠã³ã³ããŒãã³ãã«ã€ã³ã¹ããŒã«ããã
installUIãã¯ã©ã¹ComponentUIc - UIå§è²ãã€ã³ã¹ããŒã«ãããã³ã³ããŒãã³ãComponentUI.uninstallUI(javax.swing.JComponent), JComponent.setUI(javax.swing.plaf.ComponentUI), JComponent.updateUI()protected void prepareForUIInstall()
treeã€ã³ã¹ã¿ã³ã¹å€æ°ã®èšå®åŸãããã©ã«ãããã³ãªã¹ããŒãã€ã³ã¹ããŒã«ãããåã«åŒã³åºãããŸããprotected void completeUIInstall()
protected void installDefaults()
protected void installListeners()
protected void installKeyboardActions()
protected void installComponents()
protected AbstractLayoutCache.NodeDimensions createNodeDimensions()
protected PropertyChangeListener createPropertyChangeListener()
protected MouseListener createMouseListener()
protected FocusListener createFocusListener()
protected KeyListener createKeyListener()
protected PropertyChangeListener createSelectionModelPropertyChangeListener()
protected TreeSelectionListener createTreeSelectionListener()
protected CellEditorListener createCellEditorListener()
protected ComponentListener createComponentListener()
protected TreeExpansionListener createTreeExpansionListener()
protected AbstractLayoutCache createLayoutCache()
protected CellRendererPane createCellRendererPane()
protected TreeCellEditor createDefaultCellEditor()
protected TreeCellRenderer createDefaultCellRenderer()
protected TreeModelListener createTreeModelListener()
public void uninstallUI(JComponent c)
ComponentUIinstallUIæã«ãæå®ãããã³ã³ããŒãã³ãã«å¯ŸããŠè¡ãããæ§æãåãæ¶ããŸãã ãã®ã¡ãœããã¯ããã®UIComponentã€ã³ã¹ã¿ã³ã¹ããæå®ãããã³ã³ããŒãã³ãã®UIå§è²ãšããŠåé€ãããŠãããšãã«åŒã³åºãããŸãã ãã®ã¡ãœããã¯ãinstallUIã«ãã£ãŠå®è¡ãããæ§æãå
ã«æ»ãã¹ãã§ãããã®å ŽåãJComponentã€ã³ã¹ã¿ã³ã¹ãã¯ãªãŒã³ãªç¶æ
(äœåãªãªã¹ããŒããLook & Feelåºæã®ããããã£ã»ãªããžã§ã¯ããæ®ããªãããã«)ã«ããããååæ³šæããŠãã ããã æé ã«ã¯æ¬¡ã®ãã®ãå«ãŸããã¹ãã§ãã
uninstallUIãã¯ã©ã¹ComponentUIc - ãã®UIå§è²ãåé€ãããã³ã³ããŒãã³ãããã®åŒæ°ã¯éåžžç¡èŠãããããUIãªããžã§ã¯ããã¹ããŒãã¬ã¹ã§ãè€æ°ã®ã³ã³ããŒãã³ãã§å
±æãããŠããå Žåã¯äœ¿çšãããããšãããComponentUI.installUI(javax.swing.JComponent), JComponent.updateUI()protected void prepareForUIUninstall()
protected void completeUIUninstall()
protected void uninstallDefaults()
protected void uninstallListeners()
protected void uninstallKeyboardActions()
protected void uninstallComponents()
public int getBaseline(JComponent c, int width, int height)
getBaselineãã¯ã©ã¹ComponentUIc - ããŒã¹ã©ã€ã³ãèŠæ±ãããJComponentwidth - ããŒã¹ã©ã€ã³ãååŸããå¹
height - ããŒã¹ã©ã€ã³ãååŸããé«ãNullPointerException - cãnullã§ããå ŽåIllegalArgumentException - å¹
ãŸãã¯é«ãã0ããå°ããå ŽåJComponent.getBaseline(int, int)public Component.BaselineResizeBehavior getBaselineResizeBehavior(JComponent c)
getBaselineResizeBehaviorãã¯ã©ã¹ComponentUIc - ããŒã¹ã©ã€ã³ã®ãµã€ãºå€æŽã®åäœãè¿ãJComponentNullPointerException - cãnullã§ããå ŽåJComponent.getBaseline(int, int)public void paint(Graphics g, JComponent c)
ComponentUIComponentUI.updateã¡ãœããããåŒã³åºãããŸãã ãµãã¯ã©ã¹ã¯ããã®ã¡ãœããããªãŒããŒã©ã€ãããŠãæå®ãããGraphicsãªããžã§ã¯ãã䜿ã£ãŠã³ã³ããŒãã³ãã®å
容ãæç»ããã¹ãã§ãã paintãã¯ã©ã¹ComponentUIg - ãã€ã³ã察象ã®Graphicsã³ã³ããã¹ãc - ãã€ã³ããããã³ã³ããŒãã³ãããã®åŒæ°ã¯éåžžç¡èŠãããããUIãªããžã§ã¯ããã¹ããŒãã¬ã¹ã§ãè€æ°ã®ã³ã³ããŒãã³ãã§å
±æãããŠããå Žåã¯äœ¿çšãããããšãããComponentUI.update(java.awt.Graphics, javax.swing.JComponent)protected boolean isDropLine(JTree.DropLocation loc)
DropLocationãããŒãéã®ã©ã€ã³ã«ãã£ãŠç€ºããã©ãããéç¥ããŸãã ããã¯javax.swing.DropMode.INSERTããã³javax.swing.DropMode.ON_OR_INSERTããããã»ã¢ãŒãã§äœ¿çšãããŸãã loc - DropLocationtrueprotected void paintDropLine(Graphics g)
g - æç»ããGraphicsãªããžã§ã¯ãprotected Rectangle getDropLineRect(JTree.DropLocation loc)
loc - DropLocationprotected void paintHorizontalPartOfLeg(Graphics g, Rectangle clipBounds, Insets insets, Rectangle bounds, TreePath path, int row, boolean isExpanded, boolean hasBeenExpanded, boolean isLeaf)
clipBoundsãinsetsã倿Žããªãã§ãã ããã
ããŒã: ã«ãŒããå¯èŠã§ãªãå ŽåãparentRow㯠-1ã«ãªãããšããããŸãã
protected void paintVerticalPartOfLeg(Graphics g, Rectangle clipBounds, Insets insets, TreePath path)
clipBoundsãinsetsã倿Žããªãã§ãã ããã protected void paintExpandControl(Graphics g, Rectangle clipBounds, Insets insets, Rectangle bounds, TreePath path, int row, boolean isExpanded, boolean hasBeenExpanded, boolean isLeaf)
clipBoundsãinsetsã倿Žããªãã§ãã ããã protected void paintRow(Graphics g, Rectangle clipBounds, Insets insets, Rectangle bounds, TreePath path, int row, boolean isExpanded, boolean hasBeenExpanded, boolean isLeaf)
clipBoundsãinsetsã倿Žããªãã§ãã ããã protected boolean shouldPaintExpandControl(TreePath path, int row, boolean isExpanded, boolean hasBeenExpanded, boolean isLeaf)
protected void paintVerticalLine(Graphics g, JComponent c, int x, int top, int bottom)
protected void paintHorizontalLine(Graphics g, JComponent c, int y, int left, int right)
protected int getVerticalLegBuffer()
protected int getHorizontalLegBuffer()
protected void drawDashedHorizontalLine(Graphics g, int y, int x1, int x2)
protected void drawDashedVerticalLine(Graphics g, int x, int y1, int y2)
protected int getRowX(int row,
int depth)
row - xäœçœ®ãè¿ãè¡depth - è¡ã®æ·±ãprotected void updateLayoutCacheExpandedNodes()
protected void updateExpandedDescendants(TreePath path)
pathã®ãã¹ãŠã®åå«ã®å±éç¶æ
ãæŽæ°ããŸããprotected TreePath getLastChildPath(TreePath parent)
parentã®æåŸã®åã®ãã¹ãè¿ããŸããprotected void updateDepthOffset()
protected void updateCellEditor()
protected void updateRenderer()
protected void configureLayoutCache()
protected void updateSize()
treeDidChangeã§ã¡ãã»ãŒãžãããªãŒã«éããŸããprotected void updateCachedPreferredSize()
getPreferredSize()ããè¿ãããpreferredSizeã€ã³ã¹ã¿ã³ã¹å€æ°ãæŽæ°ããŸããå·Šãã峿¹åã®å Žåããµã€ãºã¯çŸåšã®AbstractLayoutCacheããæ±ºå®ãããŸãã å³ããå·Šæ¹åã®å Žåãæšå¥šãµã€ãºã¯å¹ ããæå°ã®xäœçœ®ãåŒããå€ã«ãªããŸãã
protected void pathWasExpanded(TreePath path)
protected void pathWasCollapsed(TreePath path)
protected void ensureRowsAreVisible(int beginRow,
int endRow)
public void setPreferredMinSize(Dimension newSize)
public Dimension getPreferredMinSize()
public Dimension getPreferredSize(JComponent c)
getPreferredSizeãã¯ã©ã¹ComponentUIc - æšå¥šãµã€ãºãç
§äŒãããã³ã³ããŒãã³ãããã®åŒæ°ã¯éåžžç¡èŠãããããUIãªããžã§ã¯ããã¹ããŒãã¬ã¹ã§ãè€æ°ã®ã³ã³ããŒãã³ãã§å
±æãããŠããå Žåã¯äœ¿çšãããããšãããJComponent.getPreferredSize(), LayoutManager.preferredLayoutSize(java.awt.Container)public Dimension getPreferredSize(JComponent c, boolean checkConsistency)
public Dimension getMinimumSize(JComponent c)
getMinimumSizeãã¯ã©ã¹ComponentUIc - æå°ãµã€ãºãç
§äŒãããã³ã³ããŒãã³ãããã®åŒæ°ã¯éåžžç¡èŠãããããUIãªããžã§ã¯ããã¹ããŒãã¬ã¹ã§ãè€æ°ã®ã³ã³ããŒãã³ãã§å
±æãããŠããå Žåã¯äœ¿çšãããããšãããDimensionãªããžã§ã¯ããŸãã¯nullJComponent.getMinimumSize(), LayoutManager.minimumLayoutSize(java.awt.Container), ComponentUI.getPreferredSize(javax.swing.JComponent)public Dimension getMaximumSize(JComponent c)
getMaximumSizeãã¯ã©ã¹ComponentUIc - æå€§ãµã€ãºãç
§äŒãããã³ã³ããŒãã³ãããã®åŒæ°ã¯éåžžç¡èŠãããããUIãªããžã§ã¯ããã¹ããŒãã¬ã¹ã§ãè€æ°ã®ã³ã³ããŒãã³ãã§å
±æãããŠããå Žåã¯äœ¿çšãããããšãããDimensionãªããžã§ã¯ããŸãã¯nullJComponent.getMaximumSize(), LayoutManager2.maximumLayoutSize(java.awt.Container)protected void completeEditing()
getInvokesStopCellEditingããtrueãè¿ãå ŽåãstopCellEditingãçŸåšã®ãšãã£ã¿ã§åŒã³åºãããŸãã æ¬¡ã«completeEditingãfalseãŸãã¯trueã§ã¡ãã»ãŒãžãšããŠéãããŸããfalseã¯ãäžéã®ç·šéãåãæ¶ããŸãã protected void completeEditing(boolean messageStop,
boolean messageCancel,
boolean messageTree)
protected boolean startEditing(TreePath path, MouseEvent event)
ãã®ã¡ãœããã¯ããã¹ãæå¹ã§ãããå¯èŠã§ãããšèŠãªããŸãã
protected void checkForClickInExpandControl(TreePath path, int mouseX, int mouseY)
mouseXããã³mouseYãrowã®å±éãŸãã¯æãããã¿ã®é åã«ããå Žåããã®ã¡ãœããã¯è¡ã®å±éç¶æ
ãåãæ¿ããŸããprotected boolean isLocationInExpandControl(TreePath path, int mouseX, int mouseY)
mouseXããã³mouseYãããŒãã®å±éãŸãã¯æãããã¿ã«äœ¿çšãããè¡ã®é åã«ãããrowã«ããããŒããèã衚ããªãå Žåã«trueãè¿ããŸããprotected void handleExpandControlClick(TreePath path, int mouseX, int mouseY)
protected void toggleExpandState(TreePath path)
protected boolean isToggleSelectionEvent(MouseEvent event)
protected boolean isMultiSelectEvent(MouseEvent event)
protected boolean isToggleEvent(MouseEvent event)
protected void selectPathForEvent(TreePath path, MouseEvent event)
protected boolean isLeaf(int row)
rowã®ããŒããèã®å Žåã¯trueãprotected void updateLeadSelectionRow()
protected int getLeadSelectionRow()
ãã°ãŸãã¯æ©èœãéä¿¡
詳现ãªAPIãªãã¡ã¬ã³ã¹ããã³éçºè
ããã¥ã¡ã³ãã«ã€ããŠã¯ãJava SEã®ããã¥ã¡ã³ããåç
§ããŠãã ããã ãã®ããã¥ã¡ã³ãã«ã¯ãæŠå¿µçãªæŠèŠãçšèªã®å®çŸ©ãåé¿æ¹æ³ãæå¹ãªã³ãŒãäŸãªã©ã®ãéçºè
ã察象ã«ãããã詳现ãªèª¬æãå«ãŸããŠããŸãã
Copyright © 1993, 2025, Oracle and/or its affiliates. All rights reserved. Use is subject to license terms. Documentation Redistribution Policyãåç
§ããŠãã ããã