public class WMSPanel extends AbstractFeaturePanel implements javax.swing.event.TreeModelListener, NetworkActivitySignal.NetworkUser
Modifier and Type | Field and Description |
---|---|
protected static java.lang.String |
FEATURE_TITLE |
protected static java.lang.String |
ICON_PATH |
protected javax.swing.JButton |
infoButton |
protected LayerTree |
layerTree |
protected java.lang.Thread |
loadingThread |
protected javax.swing.JTextField |
nameField |
protected java.net.URI |
serverURI |
protected javax.swing.JTextField |
urlField |
panel
controller, featureID
Modifier and Type | Method and Description |
---|---|
void |
addItemToComboBox(javax.swing.JComboBox cmb,
java.lang.Object item) |
protected void |
addLayer(WMSCapabilities caps,
WMSLayerCapabilities layerCaps,
LayerTreeGroupNode groupNode,
LayerTreeModel model)
Recursively adds layers to the layer tree.
|
void |
cancel() |
void |
clearPanel()
Clears the panel.
|
void |
contactWMSServer(java.lang.String URLString)
Contact the specified WMS server to get its capabilities document.
|
protected void |
createComponents(javax.swing.JPanel panel) |
protected void |
createLayer(LayerNode layerNode) |
protected void |
createLayerList(WMSCapabilities caps) |
protected LayerNode |
getLayerManagerGroupNode() |
protected java.lang.String |
getServerDisplayString(WMSCapabilities caps) |
protected java.lang.String |
getTabTitle() |
protected LayerTreeGroupNode |
getTopGroup() |
java.lang.String |
getURLString() |
protected void |
handleGroupSelection(LayerTreeGroupNode groupNode) |
protected void |
handleLayerSelection(LayerNode layerNode) |
boolean |
hasNetworkActivity() |
void |
initialize(Controller controller) |
protected javax.swing.JPanel |
makeTopPanel() |
protected javax.swing.JPanel |
makeTreePanel() |
protected void |
setTabTitle(java.lang.String title) |
void |
treeNodesChanged(javax.swing.event.TreeModelEvent event)
Called when the tree cell check box changes.
|
void |
treeNodesInserted(javax.swing.event.TreeModelEvent treeModelEvent) |
void |
treeNodesRemoved(javax.swing.event.TreeModelEvent treeModelEvent) |
void |
treeStructureChanged(javax.swing.event.TreeModelEvent treeModelEvent) |
getDialogControls, getJPanel
actionPerformed, addToToolBar, doActionPerformed, doPropertyChange, getController, getFeatureID, getName, getStringValue, isInitialized, isOn, isTwoState, propertyChange, register, setMenuAccellerator, turnOn
addPropertyChangeListener, clone, firePropertyChange, getKeys, getPropertyChangeListeners, getValue, isEnabled, putValue, removePropertyChangeListener, setEnabled
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getFeatureID, getName, isOn, isTwoState, turnOn
isInitialized
protected static final java.lang.String FEATURE_TITLE
protected static final java.lang.String ICON_PATH
protected javax.swing.JButton infoButton
protected LayerTree layerTree
protected java.lang.Thread loadingThread
protected javax.swing.JTextField nameField
protected java.net.URI serverURI
protected javax.swing.JTextField urlField
public WMSPanel(Registry registry)
public void addItemToComboBox(javax.swing.JComboBox cmb, java.lang.Object item)
protected void addLayer(WMSCapabilities caps, WMSLayerCapabilities layerCaps, LayerTreeGroupNode groupNode, LayerTreeModel model)
caps
- the server's capabilities document.layerCaps
- the DOM description of the layer to retrieve.groupNode
- the display groupmodel
- the layer tree modelpublic void cancel()
public void clearPanel()
public void contactWMSServer(java.lang.String URLString) throws java.net.URISyntaxException
URLString
- a text string containing the server's URL.java.net.URISyntaxException
- if the URL is invalid.protected void createComponents(javax.swing.JPanel panel)
protected void createLayer(LayerNode layerNode)
protected void createLayerList(WMSCapabilities caps)
protected LayerNode getLayerManagerGroupNode()
protected java.lang.String getServerDisplayString(WMSCapabilities caps)
protected java.lang.String getTabTitle()
protected LayerTreeGroupNode getTopGroup()
public java.lang.String getURLString()
protected void handleGroupSelection(LayerTreeGroupNode groupNode)
protected void handleLayerSelection(LayerNode layerNode)
public boolean hasNetworkActivity()
hasNetworkActivity
in interface NetworkActivitySignal.NetworkUser
public void initialize(Controller controller)
initialize
in interface Initializable
initialize
in class AbstractFeaturePanel
protected javax.swing.JPanel makeTopPanel()
protected javax.swing.JPanel makeTreePanel()
protected void setTabTitle(java.lang.String title)
public void treeNodesChanged(javax.swing.event.TreeModelEvent event)
treeNodesChanged
in interface javax.swing.event.TreeModelListener
event
- the description of the change.public void treeNodesInserted(javax.swing.event.TreeModelEvent treeModelEvent)
treeNodesInserted
in interface javax.swing.event.TreeModelListener
public void treeNodesRemoved(javax.swing.event.TreeModelEvent treeModelEvent)
treeNodesRemoved
in interface javax.swing.event.TreeModelListener
public void treeStructureChanged(javax.swing.event.TreeModelEvent treeModelEvent)
treeStructureChanged
in interface javax.swing.event.TreeModelListener