public class WorkspaceTree
extends javax.swing.JTree
implements com.supermap.data.IDisposable
限定符和类型 | 字段和说明 |
---|---|
static boolean |
isWorkspaceTreePaint |
构造器和说明 |
---|
WorkspaceTree()
默认构造函数
|
WorkspaceTree(com.supermap.data.Workspace workspace)
构造函数,根据工作空间构建工作空间树控件
|
限定符和类型 | 方法和说明 |
---|---|
void |
dispose() |
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 |
getWorkflowsNode()
获取模型集合节点
|
com.supermap.data.Workspace |
getWorkspace()
获得树控件当中的工作空间
|
javax.swing.tree.DefaultMutableTreeNode |
getWorkspaceNode()
获取工作空间树节点
|
boolean |
isDashboardsNodeVisible()
返回大屏集合节点是否可见
|
boolean |
isDatasourcesNodeVisible()
返回数据源集合节点是否可见
|
boolean |
isLayoutsNodeVisible()
返回布局集合节点是否可见
|
boolean |
isMapsNodeVisible()
返回地图集合节点是否可见
|
boolean |
isPathEditable(javax.swing.tree.TreePath path) |
boolean |
isResourcesNodeVisible()
返回资源集合节点是否可见
|
boolean |
isScenesNodeVisible()
返回三维场景集合节点是否可见
|
boolean |
isStatisticsChartsNodeVisible()
返回统计图表集合节点是否可见
|
boolean |
isVideosNodeVisible()
返回视频集合节点是否可见
|
boolean |
isWorkFlowNodeVisible()
返回可视化建模节点是否可见
|
void |
refreshNode(javax.swing.tree.DefaultMutableTreeNode node)
刷新指定节点
|
void |
reload()
当工作空间改变时,重新构建节点并刷新工作空间控件
|
void |
selectedNodeDashboards()
选中大屏节点
|
void |
selectedNodeLayouts()
选中布局集合节点
|
void |
selectedNodeMaps()
选中地图集合节点
|
void |
selectedNodeScenes()
选中场景集合节点
|
void |
selectedNodeStatisticsChart()
选中统计图表节点
|
void |
selectedNodeVideoMap()
选中统计图表节点
|
void |
selectedNodeWorkFlow()
选中可视化建模节点
|
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)
设置选中的数据集
|
void |
setSelectedDatasource(com.supermap.data.Datasource datasource)
设置选中的数据源
|
void |
setStatisticsChartsNodeVisible(boolean bool)
设置统计图表集合节点是否可见
|
void |
setWorkflowVisible(boolean bool)
设置可视化建模节点是否可见
|
void |
setWorkspace(com.supermap.data.Workspace workspace)
设置树对象中的工作空间
|
void |
sortNodes(javax.swing.tree.DefaultMutableTreeNode parentNode, java.util.Comparator<javax.swing.tree.DefaultMutableTreeNode> comparator)
节点排序
|
public WorkspaceTree()
public WorkspaceTree(com.supermap.data.Workspace workspace)
workspace
- 要构建树控件的工作空间public com.supermap.data.Workspace getWorkspace()
public void setWorkspace(com.supermap.data.Workspace workspace)
workspace
- 要设置的工作空间public boolean isDatasourcesNodeVisible()
public void setDatasourcesNodeVisible(boolean bool)
bool
- 是否可见public boolean isMapsNodeVisible()
public void setMapsNodeVisible(boolean bool)
bool
- 是否可见public boolean isStatisticsChartsNodeVisible()
public void setStatisticsChartsNodeVisible(boolean bool)
bool
- 是否可见public boolean isLayoutsNodeVisible()
public void setLayoutsNodeVisible(boolean bool)
bool
- 是否可见public boolean isScenesNodeVisible()
public void setScenesNodeVisible(boolean bool)
bool
- 是否可见public boolean isWorkFlowNodeVisible()
public void setWorkflowVisible(boolean bool)
bool
- 是否可见public boolean isVideosNodeVisible()
public boolean isDashboardsNodeVisible()
public boolean isResourcesNodeVisible()
public void setResourcesNodeVisible(boolean bool)
bool
- 是否可见public javax.swing.tree.DefaultMutableTreeNode getWorkspaceNode()
public javax.swing.tree.DefaultMutableTreeNode getDatasourcesNode()
public javax.swing.tree.DefaultMutableTreeNode getMapsNode()
public javax.swing.tree.DefaultMutableTreeNode getLayoutsNode()
public javax.swing.tree.DefaultMutableTreeNode getScenesNode()
public javax.swing.tree.DefaultMutableTreeNode getWorkflowsNode()
public javax.swing.tree.DefaultMutableTreeNode getStatisticsChartsNode()
public javax.swing.tree.DefaultMutableTreeNode getTreeNodeDashboards()
public javax.swing.tree.DefaultMutableTreeNode getResourcesNode()
public void reload()
public void refreshNode(javax.swing.tree.DefaultMutableTreeNode node)
node
- 要刷新的指定节点public boolean isPathEditable(javax.swing.tree.TreePath path)
isPathEditable
在类中 javax.swing.JTree
public javax.swing.tree.TreePath getPathForLocation(int x, int y)
getPathForLocation
在类中 javax.swing.JTree
public void sortNodes(javax.swing.tree.DefaultMutableTreeNode parentNode, java.util.Comparator<javax.swing.tree.DefaultMutableTreeNode> comparator)
parentNode
- 指定要排序的节点comparator
- 排序规则public void dispose()
public void setSelectedDatasource(com.supermap.data.Datasource datasource)
datasource
- 要选中的数据源public boolean setSelectedDataset(com.supermap.data.Dataset dataset)
dataset
- 要选中的数据集public void selectedNodeMaps()
public void selectedNodeLayouts()
public void selectedNodeWorkFlow()
public void selectedNodeStatisticsChart()
public void selectedNodeVideoMap()
public void selectedNodeDashboards()
public void selectedNodeScenes()
@Deprecated public java.awt.Rectangle getPathBounds(javax.swing.tree.TreePath path)
getPathBounds
在类中 javax.swing.JTree