com.supermap.desktop.controls.ui.trees
类 LayersTree
- java.lang.Object
-
- java.awt.Component
-
- java.awt.Container
-
- javax.swing.JComponent
-
- javax.swing.JTree
-
- com.supermap.desktop.controls.ui.trees.LayersTree
-
- 所有已实现的接口:
- java.awt.image.ImageObserver, java.awt.MenuContainer, java.io.Serializable, javax.accessibility.Accessible, javax.swing.Scrollable
public class LayersTree extends javax.swing.JTree
图层管理树控件- 另请参阅:
- 序列化表格
-
-
字段概要
字段 限定符和类型 字段和说明 static java.lang.String
LAYER_CHANGE_EVENT
static java.lang.String
LAYER_REMOVED_EVENT
-
构造器概要
构造器 构造器和说明 LayersTree()
LayersTree(com.supermap.mapping.Map map)
-
方法概要
所有方法 实例方法 具体方法 已过时的方法 限定符和类型 方法和说明 void
addDropTargetListener(java.awt.dnd.DropTargetListener dropTargetListener)
void
addLayerDatasetResetListener(com.supermap.desktop.core.event.LayerDatasetResetListener layerDatasetResetListener)
添加重新指定数据集监听器void
clean()
关闭地图的时候执行清理void
fireLayerDatasetReset(com.supermap.mapping.Layer layer, com.supermap.data.Dataset oldValue, com.supermap.data.Dataset newValue)
发送图层数据集修改事件void
firePropertyChangeWithLayerSelect()
发送修改图层属性事件java.awt.dnd.DropTarget
getDropTarget()
com.supermap.desktop.controls.ui.trees.LayersTreeCellEditor
getLayersTreeCellEditor()
com.supermap.desktop.controls.ui.trees.LayersTreeCellRenderer
getLayersTreeCellRenderer()
com.supermap.mapping.Map
getMap()
获得图层树对应地图java.lang.String
getToolTipText(java.awt.event.MouseEvent e)
可见、可编辑等tip提示boolean
isPathEditable(javax.swing.tree.TreePath path)
void
paint(java.awt.Graphics g)
void
refreshNode(com.supermap.mapping.Layer layer)
针对专题图的刷新,通过传入当前图层来刷新void
reload()
重新构建所有节点创建树控件void
reload(com.supermap.mapping.LayerGroup... expandLayerGroup)
重新构建所有节点创建树控件,并且指定展开分组void
reloadBandNode()
刷新波段节点void
removeDrag()
移除图层拖拽事件void
removeDropTargetListener(java.awt.dnd.DropTargetListener dropTargetListener)
void
removeKeyListener()
移除图层树键盘监听void
removeLayerDatasetResetListener(com.supermap.desktop.core.event.LayerDatasetResetListener layerDatasetResetListener)
移除重新指定数据集监听器void
removeMouseListener()
移除图层树鼠标监听void
setMap(com.supermap.mapping.Map map)
设置图层树对应地图void
setSelectedPathByCaptions(java.util.List<java.lang.String> currentLayerNames)
已过时。void
setSelectedPathByCaptions(java.lang.String... currentLayerNames)
通过图层名称选中图层数据选中void
setSelectedPaths(com.supermap.mapping.Layer... currentLayers)
void
setSelectedPaths(java.util.List<com.supermap.mapping.Layer> currentLayers)
void
setSelectPaths(java.util.List<com.supermap.desktop.controls.ext.layer.ILayerEx> layers)
void
showSelectedStyleSetDialog()
弹出符号选择窗口,修改选中对象风格com.supermap.data.GeoStyle
showStyleSetDialog()
展示图层风格设置窗口void
startEditing(com.supermap.mapping.Layer layer)
void
unRegisterListeners()
移除所有监听事件
-
-
-
字段详细资料
-
LAYER_REMOVED_EVENT
public static final java.lang.String LAYER_REMOVED_EVENT
- 另请参阅:
- 常量字段值
-
LAYER_CHANGE_EVENT
public static final java.lang.String LAYER_CHANGE_EVENT
- 另请参阅:
- 常量字段值
-
-
构造器详细资料
-
LayersTree
public LayersTree()
-
LayersTree
public LayersTree(com.supermap.mapping.Map map)
- 参数:
map
- 指定地图
-
-
方法详细资料
-
getToolTipText
public java.lang.String getToolTipText(java.awt.event.MouseEvent e)
可见、可编辑等tip提示- 覆盖:
getToolTipText
在类中javax.swing.JTree
- 参数:
e
-- 返回:
-
getLayersTreeCellRenderer
public com.supermap.desktop.controls.ui.trees.LayersTreeCellRenderer getLayersTreeCellRenderer()
-
getLayersTreeCellEditor
public com.supermap.desktop.controls.ui.trees.LayersTreeCellEditor getLayersTreeCellEditor()
-
removeDrag
public void removeDrag()
移除图层拖拽事件
-
getDropTarget
public java.awt.dnd.DropTarget getDropTarget()
- 覆盖:
getDropTarget
在类中java.awt.Component
-
getMap
public com.supermap.mapping.Map getMap()
获得图层树对应地图- 返回:
- 地图
-
setMap
public void setMap(com.supermap.mapping.Map map)
设置图层树对应地图- 参数:
map
- 地图
-
reload
public void reload()
重新构建所有节点创建树控件
-
reload
public void reload(com.supermap.mapping.LayerGroup... expandLayerGroup)
重新构建所有节点创建树控件,并且指定展开分组- 参数:
expandLayerGroup
- 要展开的图层分组
-
paint
public void paint(java.awt.Graphics g)
- 覆盖:
paint
在类中javax.swing.JComponent
-
isPathEditable
public boolean isPathEditable(javax.swing.tree.TreePath path)
- 覆盖:
isPathEditable
在类中javax.swing.JTree
-
refreshNode
public void refreshNode(com.supermap.mapping.Layer layer)
针对专题图的刷新,通过传入当前图层来刷新- 参数:
layer
- 要刷新的图层
-
reloadBandNode
public void reloadBandNode()
刷新波段节点
-
addLayerDatasetResetListener
public void addLayerDatasetResetListener(com.supermap.desktop.core.event.LayerDatasetResetListener layerDatasetResetListener)
添加重新指定数据集监听器- 参数:
layerDatasetResetListener
- 重新指定数据集监听器
-
removeLayerDatasetResetListener
public void removeLayerDatasetResetListener(com.supermap.desktop.core.event.LayerDatasetResetListener layerDatasetResetListener)
移除重新指定数据集监听器- 参数:
layerDatasetResetListener
- 重新指定数据集监听器
-
fireLayerDatasetReset
public void fireLayerDatasetReset(com.supermap.mapping.Layer layer, com.supermap.data.Dataset oldValue, com.supermap.data.Dataset newValue)
发送图层数据集修改事件- 参数:
oldValue
- 旧数据集newValue
- 新数据集
-
clean
public void clean()
关闭地图的时候执行清理
-
unRegisterListeners
public void unRegisterListeners()
移除所有监听事件
-
showSelectedStyleSetDialog
public void showSelectedStyleSetDialog()
弹出符号选择窗口,修改选中对象风格
-
firePropertyChangeWithLayerSelect
public void firePropertyChangeWithLayerSelect()
发送修改图层属性事件
-
removeMouseListener
public void removeMouseListener()
移除图层树鼠标监听
-
showStyleSetDialog
public com.supermap.data.GeoStyle showStyleSetDialog()
展示图层风格设置窗口
-
addDropTargetListener
public void addDropTargetListener(java.awt.dnd.DropTargetListener dropTargetListener)
-
removeDropTargetListener
public void removeDropTargetListener(java.awt.dnd.DropTargetListener dropTargetListener)
-
setSelectedPaths
public void setSelectedPaths(com.supermap.mapping.Layer... currentLayers)
-
startEditing
public void startEditing(com.supermap.mapping.Layer layer)
-
setSelectedPaths
public void setSelectedPaths(java.util.List<com.supermap.mapping.Layer> currentLayers)
-
setSelectPaths
public void setSelectPaths(java.util.List<com.supermap.desktop.controls.ext.layer.ILayerEx> layers)
-
setSelectedPathByCaptions
public void setSelectedPathByCaptions(java.util.List<java.lang.String> currentLayerNames)
已过时。通过图层名称选中图层数据选中- 参数:
currentLayerNames
-
-
setSelectedPathByCaptions
public void setSelectedPathByCaptions(java.lang.String... currentLayerNames)
通过图层名称选中图层数据选中- 参数:
currentLayerNames
-
-
removeKeyListener
public void removeKeyListener()
移除图层树键盘监听
-
-