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.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()
获得图层树对应地图
|
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 |
setSelectedPathByNames(java.util.List<java.lang.String> currentLayerNames) |
void |
setSelectedPaths(com.supermap.mapping.Layer... currentLayers) |
void |
setSelectedPaths(java.util.List<com.supermap.mapping.Layer> currentLayers) |
void |
showSelectedStyleSetDialog()
弹出符号选择窗口,修改选中对象风格
|
com.supermap.data.GeoStyle |
showStyleSetDialog()
展示图层风格设置窗口
|
void |
startEditing(com.supermap.mapping.Layer layer) |
void |
unRegisterListeners()
移除所有监听事件
|
public static final java.lang.String LAYER_REMOVED_EVENT
public static final java.lang.String LAYER_CHANGE_EVENT
public LayersTree()
public LayersTree(com.supermap.mapping.Map map)
map
- 指定地图public com.supermap.desktop.controls.ui.trees.LayersTreeCellRenderer getLayersTreeCellRenderer()
public com.supermap.desktop.controls.ui.trees.LayersTreeCellEditor getLayersTreeCellEditor()
public void removeDrag()
public java.awt.dnd.DropTarget getDropTarget()
getDropTarget
在类中 java.awt.Component
public com.supermap.mapping.Map getMap()
public void setMap(com.supermap.mapping.Map map)
map
- 地图public void reload()
public void reload(com.supermap.mapping.LayerGroup... expandLayerGroup)
expandLayerGroup
- 要展开的图层分组public void paint(java.awt.Graphics g)
paint
在类中 javax.swing.JComponent
public boolean isPathEditable(javax.swing.tree.TreePath path)
isPathEditable
在类中 javax.swing.JTree
public void refreshNode(com.supermap.mapping.Layer layer)
layer
- 要刷新的图层public void reloadBandNode()
public void addLayerDatasetResetListener(com.supermap.desktop.core.event.LayerDatasetResetListener layerDatasetResetListener)
layerDatasetResetListener
- 重新指定数据集监听器public void removeLayerDatasetResetListener(com.supermap.desktop.core.event.LayerDatasetResetListener layerDatasetResetListener)
layerDatasetResetListener
- 重新指定数据集监听器public void fireLayerDatasetReset(com.supermap.data.Dataset oldValue, com.supermap.data.Dataset newValue)
oldValue
- 旧数据集newValue
- 新数据集public void clean()
public void unRegisterListeners()
public void showSelectedStyleSetDialog()
public void firePropertyChangeWithLayerSelect()
public void removeMouseListener()
public com.supermap.data.GeoStyle showStyleSetDialog()
public void addDropTargetListener(java.awt.dnd.DropTargetListener dropTargetListener)
public void removeDropTargetListener(java.awt.dnd.DropTargetListener dropTargetListener)
public void setSelectedPaths(com.supermap.mapping.Layer... currentLayers)
public void startEditing(com.supermap.mapping.Layer layer)
public void setSelectedPaths(java.util.List<com.supermap.mapping.Layer> currentLayers)
public void setSelectedPathByNames(java.util.List<java.lang.String> currentLayerNames)
public void removeKeyListener()