Uses of Class
javax.swing.tree.TreePath
-
Packages that use TreePath 软件包 描述 javax.swing 提供一套“轻量级”(全Java语言)组件,尽可能地在所有平台上工作。javax.swing.event 提供Swing组件触发的事件。javax.swing.plaf 提供一个接口和许多抽象类,Swing用来提供其可插拔的外观和感觉功能。javax.swing.plaf.basic 提供根据“基本”外观构建的用户界面对象。javax.swing.plaf.metal 提供根据Java外观构建的用户界面对象(一旦代号为 Metal ),这是默认的外观和感觉。javax.swing.plaf.multi 提供组合两种或多种外观和感觉的用户界面对象。javax.swing.plaf.synth 合成是一种可以让所有绘画委托的外观和感觉。javax.swing.tree 提供处理javax.swing.JTree类和接口。 -
-
Uses of TreePath in javax.swing
Methods in javax.swing that return TreePath Modifier and Type 方法 描述 TreePathJTree. getAnchorSelectionPath()返回标识为锚点的路径。TreePathJTree. getClosestPathForLocation(int x, int y)返回最接近x,y的节点的路径。TreePathJTree. getEditingPath()返回当前正在编辑的元素的路径。TreePathJTree. getLeadSelectionPath()返回标识为铅的路径。TreePathJTree. getNextMatch(String prefix, int startingRow, Position.Bias bias)将TreePath返回到以前缀开头的下一个树元素。TreePathJTree.DropLocation. getPath()返回放置在树中的数据的路径。protected TreePath[]JTree. getPathBetweenRows(int index0, int index1)返回指定行之间的路径(包括)。TreePathJTree. getPathForLocation(int x, int y)返回指定位置节点的路径。TreePathJTree. getPathForRow(int row)返回指定行的路径。TreePathJTree. getSelectionPath()返回到第一个选定节点的路径。TreePath[]JTree. getSelectionPaths()返回所有选定值的路径。Methods in javax.swing that return types with arguments of type TreePath Modifier and Type 方法 描述 protected Enumeration<TreePath>JTree. getDescendantToggledPaths(TreePath parent)返回一个Enumeration的TreePaths已展开是后裔parent。Enumeration<TreePath>JTree. getExpandedDescendants(TreePath parent)返回一个Enumeration路径的后裔parent当前展开。Methods in javax.swing with parameters of type TreePath Modifier and Type 方法 描述 voidJTree. addSelectionPath(TreePath path)将由指定的TreePath标识的节点添加到当前选择。voidJTree. addSelectionPaths(TreePath[] paths)将路径数组中的每个路径添加到当前选择。voidJTree.EmptySelectionModel. addSelectionPaths(TreePath[] paths)这样做是无效的EmptySelectionModel不允许选择。voidJTree. collapsePath(TreePath path)确保由指定路径标识的节点被折叠和可视。voidJTree. expandPath(TreePath path)确保由指定路径标识的节点被扩展和可视。voidJTree. fireTreeCollapsed(TreePath path)通知所有在此事件类型上通知有兴趣的听众。voidJTree. fireTreeExpanded(TreePath path)通知所有在此事件类型上通知有兴趣的听众。voidJTree. fireTreeWillCollapse(TreePath path)通知所有在此事件类型上通知有兴趣的听众。voidJTree. fireTreeWillExpand(TreePath path)通知所有在此事件类型上通知有兴趣的听众。protected Enumeration<TreePath>JTree. getDescendantToggledPaths(TreePath parent)返回一个Enumeration的TreePaths已展开是后裔parent。Enumeration<TreePath>JTree. getExpandedDescendants(TreePath parent)返回一个Enumeration路径的后裔parent当前展开。RectangleJTree. getPathBounds(TreePath path)返回指定节点将被绘制的Rectangle。intJTree. getRowForPath(TreePath path)返回显示由指定路径标识的节点的行。booleanJTree. hasBeenExpanded(TreePath path)如果已经扩展了路径标识的节点,则返回true。booleanJTree. isCollapsed(TreePath path)如果path标识的值当前已折叠,则返回true,如果当前没有显示路径中的任何值,则返回false。booleanJTree. isExpanded(TreePath path)如果路径标识的节点当前被展开,则返回true,booleanJTree. isPathEditable(TreePath path)退货isEditable。booleanJTree. isPathSelected(TreePath path)如果路径标识的项目当前被选中,则返回true。booleanJTree. isVisible(TreePath path)如果由path标识的值当前是可视的,则返回true,这意味着它是根或全部的父对象被展开。voidJTree. makeVisible(TreePath path)确保通过路径识别的节点当前是可见的。protected booleanJTree. removeDescendantSelectedPaths(TreePath path, boolean includePath)删除选择中任何作为后代的路径为path。voidJTree. removeSelectionPath(TreePath path)从当前选择中删除由指定路径标识的节点。voidJTree.EmptySelectionModel. removeSelectionPaths(TreePath[] paths)这样做是无效的EmptySelectionModel不允许进行选择。voidJTree. removeSelectionPaths(TreePath[] paths)从当前选择中删除由指定路径标识的节点。voidJTree. scrollPathToVisible(TreePath path)确保路径中的所有路径组件都已扩展(除了最后一个路径组件)并滚动,以便显示由路径标识的节点。voidJTree. setAnchorSelectionPath(TreePath newPath)设置标识为锚点的路径。protected voidJTree. setExpandedState(TreePath path, boolean state)设置这个JTree的扩展状态。voidJTree. setLeadSelectionPath(TreePath newPath)将路径标识为引导。voidJTree. setSelectionPath(TreePath path)选择由指定路径标识的节点。voidJTree.EmptySelectionModel. setSelectionPaths(TreePath[] paths)这样做是无效的EmptySelectionModel不允许进行选择。voidJTree. setSelectionPaths(TreePath[] paths)选择由指定的路径数组标识的节点。voidJTree. startEditingAtPath(TreePath path)选择由指定路径标识的节点,并启动编辑。Method parameters in javax.swing with type arguments of type TreePath Modifier and Type 方法 描述 protected voidJTree. removeDescendantToggledPaths(Enumeration<TreePath> toRemove)删除的任何后代TreePaths在toRemove已展开。Constructors in javax.swing with parameters of type TreePath Constructor 描述 AccessibleJTreeNode(JTree t, TreePath p, Accessible ap)构造一个AccessibleJTreeNode -
Uses of TreePath in javax.swing.event
Fields in javax.swing.event declared as TreePath Modifier and Type Field 描述 protected TreePathTreeSelectionEvent. newLeadSelectionPathleadSelectionPath在路径更改后可能为null。protected TreePathTreeSelectionEvent. oldLeadSelectionPathleadSelectionPath在路径更改之前,可能为null。protected TreePathTreeExpansionEvent. path此事件代表的值的路径。protected TreePathTreeModelEvent. path到已更改节点的父节点的路径。protected TreePath[]TreeSelectionEvent. paths此事件代表的路径。Methods in javax.swing.event that return TreePath Modifier and Type 方法 描述 TreePathTreeSelectionEvent. getNewLeadSelectionPath()返回当前引导路径。TreePathTreeSelectionEvent. getOldLeadSelectionPath()返回先前是引导路径的路径。TreePathTreeExpansionEvent. getPath()返回已经展开/折叠的值的路径。TreePathTreeSelectionEvent. getPath()返回第一个路径元素。TreePath[]TreeSelectionEvent. getPaths()返回从选择中添加或删除的路径。TreePathTreeModelEvent. getTreePath()对于所有事件,除了treeStructureChanged,返回已更改节点的父节点。Methods in javax.swing.event with parameters of type TreePath Modifier and Type 方法 描述 booleanTreeSelectionEvent. isAddedPath(TreePath path)返回指定的路径是否添加到选择。Constructors in javax.swing.event with parameters of type TreePath Constructor 描述 TreeExpansionEvent(Object source, TreePath path)构造一个TreeExpansionEvent对象。TreeModelEvent(Object source, TreePath path)用于在节点结构以某种方式更改时创建事件,将修改后的子树的根路径标识为TreePath对象。TreeModelEvent(Object source, TreePath path, int[] childIndices, Object[] children)用于在更改,插入或删除节点时创建事件,将修改后的项目的父项路径标识为TreePath对象。TreeSelectionEvent(Object source, TreePath[] paths, boolean[] areNew, TreePath oldLeadSelectionPath, TreePath newLeadSelectionPath)代表一个TreeSelectionModel的选择的TreeSelectionModel。TreeSelectionEvent(Object source, TreePath path, boolean isNew, TreePath oldLeadSelectionPath, TreePath newLeadSelectionPath)代表一个TreeSelectionModel的选择的TreeSelectionModel。 -
Uses of TreePath in javax.swing.plaf
Methods in javax.swing.plaf that return TreePath Modifier and Type 方法 描述 abstract TreePathTreeUI. getClosestPathForLocation(JTree tree, int x, int y)返回最接近x,y的节点的路径。abstract TreePathTreeUI. getEditingPath(JTree tree)返回正在编辑的元素的路径。abstract TreePathTreeUI. getPathForRow(JTree tree, int row)返回在行中传递的路径。Methods in javax.swing.plaf with parameters of type TreePath Modifier and Type 方法 描述 abstract RectangleTreeUI. getPathBounds(JTree tree, TreePath path)返回包围路径中最后一个项目将被绘制的标签部分的Rectangle。abstract intTreeUI. getRowForPath(JTree tree, TreePath path)返回在路径中识别的最后一个项目可见的行。abstract voidTreeUI. startEditingAtPath(JTree tree, TreePath path)选择路径中的最后一个项目并尝试编辑它。 -
Uses of TreePath in javax.swing.plaf.basic
Fields in javax.swing.plaf.basic declared as TreePath Modifier and Type Field 描述 protected TreePathBasicTreeUI. editingPath正在编辑的路径Fields in javax.swing.plaf.basic with type parameters of type TreePath Modifier and Type Field 描述 protected Hashtable<TreePath,Boolean>BasicTreeUI. drawingCache用于最小化垂直线的绘图。Methods in javax.swing.plaf.basic that return TreePath Modifier and Type 方法 描述 TreePathBasicTreeUI. getClosestPathForLocation(JTree tree, int x, int y)返回最接近x,y的节点的路径。TreePathBasicTreeUI. getEditingPath(JTree tree)返回正在编辑的元素的路径。protected TreePathBasicTreeUI. getLastChildPath(TreePath parent)返回最后一个小孩的路径为parent。TreePathBasicTreeUI. getPathForRow(JTree tree, int row)返回在行中传递的路径。Methods in javax.swing.plaf.basic with parameters of type TreePath Modifier and Type 方法 描述 protected voidBasicTreeUI. checkForClickInExpandControl(TreePath path, int mouseX, int mouseY)如果mouseX和mouseY都在的展开/折叠区域row,这将切换行。protected TreePathBasicTreeUI. getLastChildPath(TreePath parent)返回到最后一个小孩的路径为parent。RectangleBasicTreeUI. getPathBounds(JTree tree, TreePath path)返回包围路径中最后一个项目将被绘制的标签部分的Rectangle。intBasicTreeUI. getRowForPath(JTree tree, TreePath path)返回在路径中识别的最后一个项目可见的行。protected voidBasicTreeUI. handleExpandControlClick(TreePath path, int mouseX, int mouseY)当用户点击特定行时发生消息,这将调用toggleExpandState。protected booleanBasicTreeUI. isLocationInExpandControl(TreePath path, int mouseX, int mouseY)如果mouseX和mouseY落在用于展开/折叠节点的行的区域中,则返回true,而位于row的节点不表示叶。protected voidBasicTreeUI. paintExpandControl(Graphics g, Rectangle clipBounds, Insets insets, Rectangle bounds, TreePath path, int row, boolean isExpanded, boolean hasBeenExpanded, boolean isLeaf)绘制一行的展开(切换)部分。protected voidBasicTreeUI. paintHorizontalPartOfLeg(Graphics g, Rectangle clipBounds, Insets insets, Rectangle bounds, TreePath path, int row, boolean isExpanded, boolean hasBeenExpanded, boolean isLeaf)涂抹腿部的水平部分。protected voidBasicTreeUI. paintRow(Graphics g, Rectangle clipBounds, Insets insets, Rectangle bounds, TreePath path, int row, boolean isExpanded, boolean hasBeenExpanded, boolean isLeaf)绘制一行的渲染器部分。protected voidBasicTreeUI. paintVerticalPartOfLeg(Graphics g, Rectangle clipBounds, Insets insets, TreePath path)涂上腿部的垂直部分。protected voidBasicTreeUI. pathWasCollapsed(TreePath path)从VisibleTreeNode后已经崩溃了。protected voidBasicTreeUI. pathWasExpanded(TreePath path)在VisibleTreeNode之后发布消息,已经扩大。protected voidBasicTreeUI. selectPathForEvent(TreePath path, MouseEvent event)通过特定行更新基于MouseEvent的选择。protected booleanBasicTreeUI. shouldPaintExpandControl(TreePath path, int row, boolean isExpanded, boolean hasBeenExpanded, boolean isLeaf)如果要为指定的行绘制展开(toggle)控件,则返回true。protected booleanBasicTreeUI. startEditing(TreePath path, MouseEvent event)如果有cellEditor和shouldSelectCell返回true将开始编辑节点。voidBasicTreeUI. startEditingAtPath(JTree tree, TreePath path)选择路径中的最后一个项目并尝试编辑它。protected voidBasicTreeUI. toggleExpandState(TreePath path)如果路径未展开,则展开路径,如果扩展则折叠行。protected voidBasicTreeUI. updateExpandedDescendants(TreePath path)通过从树中获取扩展的后代并转发到树状态来更新path的所有后代的扩展状态。 -
Uses of TreePath in javax.swing.plaf.metal
Methods in javax.swing.plaf.metal with parameters of type TreePath Modifier and Type 方法 描述 protected voidMetalTreeUI. paintHorizontalPartOfLeg(Graphics g, Rectangle clipBounds, Insets insets, Rectangle bounds, TreePath path, int row, boolean isExpanded, boolean hasBeenExpanded, boolean isLeaf)protected voidMetalTreeUI. paintVerticalPartOfLeg(Graphics g, Rectangle clipBounds, Insets insets, TreePath path) -
Uses of TreePath in javax.swing.plaf.multi
Methods in javax.swing.plaf.multi that return TreePath Modifier and Type 方法 描述 TreePathMultiTreeUI. getClosestPathForLocation(JTree a, int b, int c)在此对象处理的每个UI上调用getClosestPathForLocation方法。TreePathMultiTreeUI. getEditingPath(JTree a)在此对象处理的每个UI上调用getEditingPath方法。TreePathMultiTreeUI. getPathForRow(JTree a, int b)在此对象处理的每个UI上调用getPathForRow方法。Methods in javax.swing.plaf.multi with parameters of type TreePath Modifier and Type 方法 描述 RectangleMultiTreeUI. getPathBounds(JTree a, TreePath b)在此对象处理的每个UI上调用getPathBounds方法。intMultiTreeUI. getRowForPath(JTree a, TreePath b)在此对象处理的每个UI上调用getRowForPath方法。voidMultiTreeUI. startEditingAtPath(JTree a, TreePath b)在此对象处理的每个UI上调用startEditingAtPath方法。 -
Uses of TreePath in javax.swing.plaf.synth
Methods in javax.swing.plaf.synth with parameters of type TreePath Modifier and Type 方法 描述 protected voidSynthTreeUI. paintExpandControl(Graphics g, Rectangle clipBounds, Insets insets, Rectangle bounds, TreePath path, int row, boolean isExpanded, boolean hasBeenExpanded, boolean isLeaf)绘制一行的展开(切换)部分。protected voidSynthTreeUI. paintHorizontalPartOfLeg(Graphics g, Rectangle clipBounds, Insets insets, Rectangle bounds, TreePath path, int row, boolean isExpanded, boolean hasBeenExpanded, boolean isLeaf)涂抹腿部的水平部分。protected voidSynthTreeUI. paintVerticalPartOfLeg(Graphics g, Rectangle clipBounds, Insets insets, TreePath path)涂上腿部的垂直部分。 -
Uses of TreePath in javax.swing.tree
Fields in javax.swing.tree declared as TreePath Modifier and Type Field 描述 protected TreePathDefaultTreeCellEditor. lastPath所选的最后路径。protected TreePathDefaultTreeSelectionModel. leadPath添加的最后路径protected TreePath[]DefaultTreeSelectionModel. selection当前选择的路径。Methods in javax.swing.tree that return TreePath Modifier and Type 方法 描述 TreePathDefaultTreeSelectionModel. getLeadSelectionPath()返回添加的最后一个路径。TreePathTreeSelectionModel. getLeadSelectionPath()返回添加的最后一个路径。TreePathTreePath. getParentPath()返回父母的TreePath。abstract TreePathAbstractLayoutCache. getPathClosestTo(int x, int y)返回最接近x,y的节点的路径。TreePathFixedHeightLayoutCache. getPathClosestTo(int x, int y)返回最接近x,y的节点的路径。TreePathVariableHeightLayoutCache. getPathClosestTo(int x, int y)返回最接近x,y的节点的路径。abstract TreePathAbstractLayoutCache. getPathForRow(int row)返回在行中传递的路径。TreePathFixedHeightLayoutCache. getPathForRow(int row)返回在行中传递的路径。TreePathVariableHeightLayoutCache. getPathForRow(int row)返回row的路径。TreePathDefaultTreeSelectionModel. getSelectionPath()返回选择中的第一个路径。TreePathTreeSelectionModel. getSelectionPath()返回选择中的第一个路径。TreePath[]DefaultTreeSelectionModel. getSelectionPaths()返回选择。TreePath[]TreeSelectionModel. getSelectionPaths()返回选择中的路径。TreePathTreePath. pathByAddingChild(Object child)返回包含此路径的所有元素的新路径加上child。Methods in javax.swing.tree that return types with arguments of type TreePath Modifier and Type 方法 描述 abstract Enumeration<TreePath>AbstractLayoutCache. getVisiblePathsFrom(TreePath path)返回一个Enumerator,从传入的位置开始可见的路径递增。Enumeration<TreePath>FixedHeightLayoutCache. getVisiblePathsFrom(TreePath path)返回一个枚举器,它从传入的位置开始,以可见路径递增。Enumeration<TreePath>VariableHeightLayoutCache. getVisiblePathsFrom(TreePath path)返回一个Enumerator,从传入的位置开始可见的路径递增。Methods in javax.swing.tree with parameters of type TreePath Modifier and Type 方法 描述 voidDefaultTreeSelectionModel. addSelectionPath(TreePath path)添加当前选择的路径。voidTreeSelectionModel. addSelectionPath(TreePath path)添加当前选择的路径。voidDefaultTreeSelectionModel. addSelectionPaths(TreePath[] paths)将路径添加到当前选择。voidTreeSelectionModel. addSelectionPaths(TreePath[] paths)将路径添加到当前选择。protected booleanDefaultTreeSelectionModel. arePathsContiguous(TreePath[] paths)如果路径是连续的,或者该对象没有RowMapper,则返回true。protected booleanDefaultTreeSelectionModel. canPathsBeAdded(TreePath[] paths)用于测试是否可以添加特定的一组TreePath。protected booleanDefaultTreeSelectionModel. canPathsBeRemoved(TreePath[] paths)如果可以删除路径而不会破坏模型的连续性,则返回true。abstract RectangleAbstractLayoutCache. getBounds(TreePath path, Rectangle placeIn)返回一个给出绘制路径所需边界的矩形。RectangleFixedHeightLayoutCache. getBounds(TreePath path, Rectangle placeIn)返回一个给出绘制路径所需边界的矩形。RectangleVariableHeightLayoutCache. getBounds(TreePath path, Rectangle placeIn)返回包含Rectangle标识的项目的标签部分的path。abstract booleanAbstractLayoutCache. getExpandedState(TreePath path)如果路径被展开且可见,则返回true。booleanFixedHeightLayoutCache. getExpandedState(TreePath path)如果路径被展开且可见,则返回true。booleanVariableHeightLayoutCache. getExpandedState(TreePath path)如果路径被展开且可见,则返回true。abstract intAbstractLayoutCache. getRowForPath(TreePath path)返回在路径中识别的最后一个项目可见的行。intFixedHeightLayoutCache. getRowForPath(TreePath path)返回在路径中识别的最后一个项目可见的行。intVariableHeightLayoutCache. getRowForPath(TreePath path)返回路径中识别的最后一个项目可见的行。int[]AbstractLayoutCache. getRowsForPaths(TreePath[] paths)返回在path中显示的TreePath实例的行。int[]RowMapper. getRowsForPaths(TreePath[] path)返回在path中显示的TreePath实例的行。abstract intAbstractLayoutCache. getVisibleChildCount(TreePath path)返回行的可见子项数。intFixedHeightLayoutCache. getVisibleChildCount(TreePath path)返回行的可见子项数。intVariableHeightLayoutCache. getVisibleChildCount(TreePath path)返回path的可见子path。abstract Enumeration<TreePath>AbstractLayoutCache. getVisiblePathsFrom(TreePath path)返回一个Enumerator,从传入的位置开始可见的路径递增。Enumeration<TreePath>FixedHeightLayoutCache. getVisiblePathsFrom(TreePath path)返回一个枚举器,它从传入的位置开始,以可见路径递增。Enumeration<TreePath>VariableHeightLayoutCache. getVisiblePathsFrom(TreePath path)返回一个Enumerator,从传入的位置开始可见的路径递增。abstract voidAbstractLayoutCache. invalidatePathBounds(TreePath path)指示LayoutCache,对于边界path是无效的,并需要进行更新。voidFixedHeightLayoutCache. invalidatePathBounds(TreePath path)没有什么,FixedHeightLayoutCache不缓存宽度,这是可以改变的。voidVariableHeightLayoutCache. invalidatePathBounds(TreePath path)指示LayoutCache,对于边界path是无效的,并需要进行更新。booleanTreePath. isDescendant(TreePath aTreePath)如果aTreePath是这个TreePath的后代,则返回true。abstract booleanAbstractLayoutCache. isExpanded(TreePath path)如果当前标识的值目前已被扩展,则返回true。booleanFixedHeightLayoutCache. isExpanded(TreePath path)如果当前标识的值目前已被扩展,则返回true。booleanVariableHeightLayoutCache. isExpanded(TreePath path)如果path标识的值目前已被扩展,则返回true。booleanDefaultTreeSelectionModel. isPathSelected(TreePath path)如果路径path在当前选择中,则返回true。booleanTreeSelectionModel. isPathSelected(TreePath path)如果路径path在当前选择中,则返回true。protected voidDefaultTreeSelectionModel. notifyPathChange(Vector<?> changedPaths, TreePath oldLeadSelection)已过时。从JDK版本1.7开始voidDefaultTreeSelectionModel. removeSelectionPath(TreePath path)从选择中删除路径。voidTreeSelectionModel. removeSelectionPath(TreePath path)从选择中删除路径。voidDefaultTreeSelectionModel. removeSelectionPaths(TreePath[] paths)从选择中删除路径。voidTreeSelectionModel. removeSelectionPaths(TreePath[] paths)从选择中删除路径。abstract voidAbstractLayoutCache. setExpandedState(TreePath path, boolean isExpanded)标记路径path展开状态为isExpanded。voidFixedHeightLayoutCache. setExpandedState(TreePath path, boolean isExpanded)标记路径path展开状态为isExpanded。voidVariableHeightLayoutCache. setExpandedState(TreePath path, boolean isExpanded)标记路径path展开状态为isExpanded。voidDefaultTreeSelectionModel. setSelectionPath(TreePath path)将选择设置为路径。voidTreeSelectionModel. setSelectionPath(TreePath path)将选择设置为路径。voidDefaultTreeSelectionModel. setSelectionPaths(TreePath[] pPaths)设置选择。voidTreeSelectionModel. setSelectionPaths(TreePath[] paths)将选择设置为路径。voidDefaultTreeModel. valueForPathChanged(TreePath path, Object newValue)这设置由路径标识的TreeNode的用户对象,并发布一个节点更改。voidTreeModel. valueForPathChanged(TreePath path, Object newValue)当用户将由path识别的项目的值更改为path发生newValue。Constructors in javax.swing.tree with parameters of type TreePath Constructor 描述 TreePath(TreePath parent, Object lastPathComponent)使用指定的父元素和元素创建一个TreePath。
-