com.supermap.desktop.controls.ui.trees
类 WorkspaceTree
- java.lang.Object
-
- java.awt.Component
-
- java.awt.Container
-
- javax.swing.JComponent
-
- javax.swing.JTree
-
- com.supermap.desktop.controls.ui.trees.WorkspaceTree
-
- 所有已实现的接口:
- com.supermap.data.IDisposable, com.supermap.desktop.controls.ui.trees.IWorkspaceTree, java.awt.image.ImageObserver, java.awt.MenuContainer, java.io.Serializable, javax.accessibility.Accessible, javax.swing.Scrollable, org.pushingpixels.substance.internal.ui.IJTreeUIEventAdaptor
public class WorkspaceTree extends javax.swing.JTree implements com.supermap.data.IDisposable, org.pushingpixels.substance.internal.ui.IJTreeUIEventAdaptor, com.supermap.desktop.controls.ui.trees.IWorkspaceTree
工作空间树- 另请参阅:
- 序列化表格
-
-
字段概要
字段 限定符和类型 字段和说明 static boolean
isWorkspaceTreePaint
-
构造器概要
构造器 构造器和说明 WorkspaceTree()
默认构造函数WorkspaceTree(com.supermap.data.Workspace workspace)
构造函数,根据工作空间构建工作空间树控件WorkspaceTree(com.supermap.data.Workspace workspace, boolean buildDatasetNodes)
构造一个WorkspaceTree对象。WorkspaceTree(com.supermap.data.Workspace workspace, boolean buildDatasetNodes, boolean isImageBandNodeVisible)
构造一个WorkspaceTree对象。
-
方法概要
所有方法 实例方法 具体方法 已过时的方法 限定符和类型 方法和说明 void
dispose()
void
filterDatasetNode(com.supermap.data.DatasetType... datasetTypes)
根据指定的数据集类型过滤显示数据集javax.swing.tree.DefaultMutableTreeNode
getDatasourcesNode()
获取数据源集合节点javax.swing.tree.DefaultMutableTreeNode
getLayoutsNode()
获取布局集合节点javax.swing.tree.DefaultMutableTreeNode
getMapsNode()
获取地图集合节点java.awt.Rectangle
getPathBounds(javax.swing.tree.TreePath path)
已过时。javax.swing.tree.TreePath
getPathForLocation(int x, int y)
javax.swing.tree.DefaultMutableTreeNode
getResourcesNode()
获取资源集合节点javax.swing.tree.DefaultMutableTreeNode
getScenesNode()
获取场景集合节点javax.swing.tree.DefaultMutableTreeNode
getStatisticsChartsNode()
获取统计图表节点javax.swing.tree.DefaultMutableTreeNode
getTreeNodeDashboards()
获取大屏集合节点javax.swing.tree.DefaultMutableTreeNode
getTreeNodeExcelEditors()
获取表格集合节点javax.swing.tree.DefaultMutableTreeNode
getTreeNodeGraphMaps()
获取图谱集合节点javax.swing.tree.DefaultMutableTreeNode
getWorkflowsNode()
获取模型集合节点com.supermap.data.Workspace
getWorkspace()
获得树控件当中的工作空间javax.swing.tree.DefaultMutableTreeNode
getWorkspaceNode()
获取工作空间树节点com.supermap.desktop.controls.ui.trees.WorkspaceTreeSorter
getWorkspaceTreeSorter()
boolean
isDashboardsNodeVisible()
返回大屏集合节点是否可见boolean
isDatasourcesNodeVisible()
返回数据源集合节点是否可见boolean
isExcelEditorsNodeVisible()
返回表格集合节点是否可见boolean
isGraphMapsNodeVisible()
返回图谱集合节点是否可见boolean
isLayoutsNodeVisible()
返回布局集合节点是否可见boolean
isMapsNodeVisible()
返回地图集合节点是否可见boolean
isPathEditable(javax.swing.tree.TreePath path)
boolean
isResourcesNodeVisible()
返回资源集合节点是否可见boolean
isScenesNodeVisible()
返回三维场景集合节点是否可见boolean
isStatisticsChartsNodeVisible()
返回统计图表集合节点是否可见boolean
isToggleEvent(java.awt.event.MouseEvent event)
boolean
isVideosNodeVisible()
返回视频集合节点是否可见boolean
isWorkFlowNodeVisible()
返回可视化建模节点是否可见void
refreshNode(javax.swing.tree.DefaultMutableTreeNode node)
刷新指定节点void
reload()
当工作空间改变时,重新构建节点并刷新工作空间控件void
selectedNodeDashboards()
选中大屏节点void
selectedNodeExcelEditors()
选中大屏节点void
selectedNodeGraphInfos()
选中图谱节点void
selectedNodeLayouts()
选中布局集合节点void
selectedNodeMaps()
选中地图集合节点void
selectedNodeScenes()
选中场景集合节点void
selectedNodeStatisticsChart()
选中统计图表节点void
selectedNodeVideoMap()
选中统计图表节点void
selectedNodeWorkFlow()
选中可视化建模节点void
setDatasourceItemNodeVisible(boolean datasourceItemNodeVisible)
void
setDatasourcesNodeVisible(boolean bool)
设置数据源集合节点是否可见void
setLayoutsNodeVisible(boolean bool)
设置布局集合节点是否可见void
setMapsNodeVisible(boolean bool)
设置地图集合节点是否可见void
setResourcesNodeVisible(boolean bool)
设置资源集合节点是否可见void
setScenesNodeVisible(boolean bool)
设置三维场景集合节点是否可见boolean
setSelectedDataset(com.supermap.data.Dataset dataset)
设置选中的数据集boolean
setSelectedDatasetGroup(com.supermap.data.DatasetGroup datasetGroup)
设置选中的数据集分组void
setSelectedDatasetGroups(java.util.List<com.supermap.data.DatasetGroup> datasetGroups)
设置选中的多个数据集分组void
setSelectedDatasets(java.util.List<com.supermap.data.Dataset> datasets)
设置选中的数据集void
setSelectedDatasource(com.supermap.data.Datasource datasource)
设置选中的数据源void
setStatisticsChartsNodeVisible(boolean bool)
设置统计图表集合节点是否可见void
setWorkflowVisible(boolean bool)
设置可视化建模节点是否可见void
setWorkspace(com.supermap.data.Workspace workspace)
设置树对象中的工作空间boolean
startEditing(javax.swing.tree.TreePath path, java.awt.event.MouseEvent event)
-
-
-
构造器详细资料
-
WorkspaceTree
public WorkspaceTree()
默认构造函数
-
WorkspaceTree
public WorkspaceTree(com.supermap.data.Workspace workspace)
构造函数,根据工作空间构建工作空间树控件- 参数:
workspace
- 要构建树控件的工作空间
-
WorkspaceTree
public WorkspaceTree(com.supermap.data.Workspace workspace, boolean buildDatasetNodes)
构造一个WorkspaceTree对象。- 参数:
workspace
- 工作空间。buildDatasetNodes
- 是否创建数据集节点。
-
WorkspaceTree
public WorkspaceTree(com.supermap.data.Workspace workspace, boolean buildDatasetNodes, boolean isImageBandNodeVisible)
构造一个WorkspaceTree对象。- 参数:
workspace
- 工作空间。buildDatasetNodes
- 是否创建数据集节点。isImageBandNodeVisible
- 是否创建影像的波段节点。
-
-
方法详细资料
-
getWorkspace
public com.supermap.data.Workspace getWorkspace()
获得树控件当中的工作空间
-
setWorkspace
public void setWorkspace(com.supermap.data.Workspace workspace)
设置树对象中的工作空间- 参数:
workspace
- 要设置的工作空间
-
setDatasourceItemNodeVisible
public void setDatasourceItemNodeVisible(boolean datasourceItemNodeVisible)
-
isDatasourcesNodeVisible
public boolean isDatasourcesNodeVisible()
返回数据源集合节点是否可见- 返回:
- 是否可见
-
setDatasourcesNodeVisible
public void setDatasourcesNodeVisible(boolean bool)
设置数据源集合节点是否可见- 参数:
bool
- 是否可见
-
isMapsNodeVisible
public boolean isMapsNodeVisible()
返回地图集合节点是否可见- 返回:
- 是否可见
-
setMapsNodeVisible
public void setMapsNodeVisible(boolean bool)
设置地图集合节点是否可见- 参数:
bool
- 是否可见
-
isStatisticsChartsNodeVisible
public boolean isStatisticsChartsNodeVisible()
返回统计图表集合节点是否可见- 返回:
-
setStatisticsChartsNodeVisible
public void setStatisticsChartsNodeVisible(boolean bool)
设置统计图表集合节点是否可见- 参数:
bool
- 是否可见
-
isLayoutsNodeVisible
public boolean isLayoutsNodeVisible()
返回布局集合节点是否可见- 返回:
- 是否可见
-
setLayoutsNodeVisible
public void setLayoutsNodeVisible(boolean bool)
设置布局集合节点是否可见- 参数:
bool
- 是否可见
-
isScenesNodeVisible
public boolean isScenesNodeVisible()
返回三维场景集合节点是否可见- 返回:
- 是否可见
-
setScenesNodeVisible
public void setScenesNodeVisible(boolean bool)
设置三维场景集合节点是否可见- 参数:
bool
- 是否可见
-
isWorkFlowNodeVisible
public boolean isWorkFlowNodeVisible()
返回可视化建模节点是否可见- 返回:
- 是否可见
-
setWorkflowVisible
public void setWorkflowVisible(boolean bool)
设置可视化建模节点是否可见- 参数:
bool
- 是否可见
-
isVideosNodeVisible
public boolean isVideosNodeVisible()
返回视频集合节点是否可见- 返回:
-
isDashboardsNodeVisible
public boolean isDashboardsNodeVisible()
返回大屏集合节点是否可见- 返回:
-
isGraphMapsNodeVisible
public boolean isGraphMapsNodeVisible()
返回图谱集合节点是否可见- 返回:
-
isExcelEditorsNodeVisible
public boolean isExcelEditorsNodeVisible()
返回表格集合节点是否可见- 返回:
-
isResourcesNodeVisible
public boolean isResourcesNodeVisible()
返回资源集合节点是否可见- 返回:
- 是否可见
-
setResourcesNodeVisible
public void setResourcesNodeVisible(boolean bool)
设置资源集合节点是否可见- 参数:
bool
- 是否可见
-
getWorkspaceNode
public javax.swing.tree.DefaultMutableTreeNode getWorkspaceNode()
获取工作空间树节点- 返回:
- 树节点
-
getDatasourcesNode
public javax.swing.tree.DefaultMutableTreeNode getDatasourcesNode()
获取数据源集合节点- 返回:
- 树节点
-
getMapsNode
public javax.swing.tree.DefaultMutableTreeNode getMapsNode()
获取地图集合节点- 返回:
- 树节点
-
getLayoutsNode
public javax.swing.tree.DefaultMutableTreeNode getLayoutsNode()
获取布局集合节点- 返回:
- 树节点
-
getScenesNode
public javax.swing.tree.DefaultMutableTreeNode getScenesNode()
获取场景集合节点- 返回:
- 树节点
-
getWorkflowsNode
public javax.swing.tree.DefaultMutableTreeNode getWorkflowsNode()
获取模型集合节点- 返回:
- 树节点
-
getStatisticsChartsNode
public javax.swing.tree.DefaultMutableTreeNode getStatisticsChartsNode()
获取统计图表节点- 返回:
-
getTreeNodeGraphMaps
public javax.swing.tree.DefaultMutableTreeNode getTreeNodeGraphMaps()
获取图谱集合节点- 返回:
-
getTreeNodeDashboards
public javax.swing.tree.DefaultMutableTreeNode getTreeNodeDashboards()
获取大屏集合节点- 返回:
-
getTreeNodeExcelEditors
public javax.swing.tree.DefaultMutableTreeNode getTreeNodeExcelEditors()
获取表格集合节点- 返回:
-
getResourcesNode
public javax.swing.tree.DefaultMutableTreeNode getResourcesNode()
获取资源集合节点- 返回:
- 树节点
-
reload
public void reload()
当工作空间改变时,重新构建节点并刷新工作空间控件
-
refreshNode
public void refreshNode(javax.swing.tree.DefaultMutableTreeNode node)
刷新指定节点- 参数:
node
- 要刷新的指定节点
-
isPathEditable
public boolean isPathEditable(javax.swing.tree.TreePath path)
- 覆盖:
isPathEditable
在类中javax.swing.JTree
-
getPathForLocation
public javax.swing.tree.TreePath getPathForLocation(int x, int y)
- 覆盖:
getPathForLocation
在类中javax.swing.JTree
-
getWorkspaceTreeSorter
public com.supermap.desktop.controls.ui.trees.WorkspaceTreeSorter getWorkspaceTreeSorter()
-
isToggleEvent
public boolean isToggleEvent(java.awt.event.MouseEvent event)
-
startEditing
public boolean startEditing(javax.swing.tree.TreePath path, java.awt.event.MouseEvent event)
-
dispose
public void dispose()
-
setSelectedDatasource
public void setSelectedDatasource(com.supermap.data.Datasource datasource)
设置选中的数据源- 参数:
datasource
- 要选中的数据源
-
setSelectedDataset
public boolean setSelectedDataset(com.supermap.data.Dataset dataset)
设置选中的数据集- 参数:
dataset
- 要选中的数据集
-
setSelectedDatasets
public void setSelectedDatasets(java.util.List<com.supermap.data.Dataset> datasets)
设置选中的数据集- 参数:
datasets
- 要选中的数据集
-
setSelectedDatasetGroup
public boolean setSelectedDatasetGroup(com.supermap.data.DatasetGroup datasetGroup)
设置选中的数据集分组- 参数:
datasetGroup
- 要选中的数据集分组
-
setSelectedDatasetGroups
public void setSelectedDatasetGroups(java.util.List<com.supermap.data.DatasetGroup> datasetGroups)
设置选中的多个数据集分组- 参数:
datasetGroups
- 要选中的数据集分组
-
selectedNodeMaps
public void selectedNodeMaps()
选中地图集合节点
-
selectedNodeLayouts
public void selectedNodeLayouts()
选中布局集合节点
-
selectedNodeWorkFlow
public void selectedNodeWorkFlow()
选中可视化建模节点
-
selectedNodeStatisticsChart
public void selectedNodeStatisticsChart()
选中统计图表节点
-
selectedNodeVideoMap
public void selectedNodeVideoMap()
选中统计图表节点
-
selectedNodeDashboards
public void selectedNodeDashboards()
选中大屏节点
-
selectedNodeGraphInfos
public void selectedNodeGraphInfos()
选中图谱节点
-
selectedNodeExcelEditors
public void selectedNodeExcelEditors()
选中大屏节点
-
selectedNodeScenes
public void selectedNodeScenes()
选中场景集合节点
-
filterDatasetNode
public void filterDatasetNode(com.supermap.data.DatasetType... datasetTypes)
根据指定的数据集类型过滤显示数据集- 参数:
datasetTypes
- 数据集类型
-
getPathBounds
@Deprecated public java.awt.Rectangle getPathBounds(javax.swing.tree.TreePath path)
已过时。- 覆盖:
getPathBounds
在类中javax.swing.JTree
-
-