public interface TOC extends Service
DefaultToc
Modifier and Type | Method and Description |
---|---|
void |
addActiveLayerChangeListener(ActiveLayerChangeEventListener alcel)
Adds a active layer change listener.
|
void |
addLayerActionListener(LayerActionEventListener lel)
Adds a layer action listener.
|
void |
addLegendActionListener(LegendActionEventListener lel)
Adds a legend action listener.
|
void |
clearSelection()
Clears current layer selection
|
FLayer |
getActiveLayer() |
javax.swing.JComponent |
getComponent() |
TOCFactory |
getFactory() |
MapContext |
getMapContext() |
DynObject |
getParameters()
Gets the parameters that were used to instantiate this TOC.
|
FLayer[] |
getSelectedLayers() |
void |
hideAll()
Hides as much as possible the graphic representation of the TOC (for
example, collapses all
the nodes to hide all layer details except the list of layers itself)
|
void |
hideAllLegends()
Collapses all graphic representation of layer legends
|
void |
hideLegend(FLayer lyr)
Makes layer legend details not visible
|
void |
invokeAction(FLayer lyr,
java.lang.String action)
Invokes a certain action on a certain layer
|
void |
removeActiveLayerChangeListener(ActiveLayerChangeEventListener alcel)
Removes a active layer change listener
|
void |
removeLayerActionListener(LayerActionEventListener lel)
Removes a layer action listener
|
void |
removeLegendActionListener(LegendActionEventListener lel)
Removes a legend action listener
|
void |
selectLayer(FLayer lyr)
Add a layer to the set of selected layers
|
void |
setActiveLayer(FLayer lyr)
Sets a layer as active (exclusively: the number of active layers must be
0 or 1)
|
void |
show(FLayer lyr,
boolean detailed)
Makes the name and representation of a certain layer visible in the TOC.
|
void |
showAll()
Expands fully the graphic representation of the TOC (for example, expands
all
the nodes to show all layer details)
|
void |
showAllLegends()
Expands all graphic representation of layer legends
|
void |
showLegend(FLayer lyr)
Makes layer legend details visible
|
void |
unselectLayer(FLayer lyr)
Removes a layer from the set of selected layers
|
getManager
DynObject getParameters()
TOCFactory getFactory()
javax.swing.JComponent getComponent()
MapContext getMapContext()
void showAll()
void hideAll()
void showAllLegends()
void hideAllLegends()
void show(FLayer lyr, boolean detailed)
lyr
- the layer whose name and details must be made visibledetailed
- whether the layer details must be shown or notvoid showLegend(FLayer lyr)
lyr
- layer whose legend details must be shownvoid hideLegend(FLayer lyr)
lyr
- layer whose legend details must be hiddenvoid selectLayer(FLayer lyr)
lyr
- layer which must be selected (not exclusively)void unselectLayer(FLayer lyr)
lyr
- layer which must be unselectedvoid clearSelection()
FLayer[] getSelectedLayers()
void setActiveLayer(FLayer lyr)
lyr
- layer to be set as active or null to have 0 layers activeFLayer getActiveLayer()
void invokeAction(FLayer lyr, java.lang.String action)
lyr
- the layer on which the action will be performedaction
- the action to be performedvoid addLegendActionListener(LegendActionEventListener lel)
lel
- new legend action listenervoid removeLegendActionListener(LegendActionEventListener lel)
lel
- legend action listener to be removedvoid addLayerActionListener(LayerActionEventListener lel)
lel
- new layer action listenervoid removeLayerActionListener(LayerActionEventListener lel)
lel
- layer action listener to be removedvoid addActiveLayerChangeListener(ActiveLayerChangeEventListener alcel)
alcel
- new active layer change listenervoid removeActiveLayerChangeListener(ActiveLayerChangeEventListener alcel)
alcel
- active layer change listener to be removed