public class WMSPanel extends AbstractFeaturePanel implements TreeModelListener, NetworkActivitySignal.NetworkUser
Modifier and Type | Field and Description |
---|---|
protected static String |
FEATURE_TITLE |
protected static String |
ICON_PATH |
protected JButton |
infoButton |
protected LayerTree |
layerTree |
protected Thread |
loadingThread |
protected JTextField |
nameField |
protected URI |
serverURI |
protected JTextField |
urlField |
panel
controller, featureID
changeSupport, enabled
ACCELERATOR_KEY, ACTION_COMMAND_KEY, DEFAULT, DISPLAYED_MNEMONIC_INDEX_KEY, LARGE_ICON_KEY, LONG_DESCRIPTION, MNEMONIC_KEY, NAME, SELECTED_KEY, SHORT_DESCRIPTION, SMALL_ICON
Modifier and Type | Method and Description |
---|---|
void |
addItemToComboBox(JComboBox cmb,
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(String URLString)
Contact the specified WMS server to get its capabilities document.
|
protected void |
createComponents(JPanel panel) |
protected void |
createLayer(LayerNode layerNode) |
protected void |
createLayerList(WMSCapabilities caps) |
protected LayerNode |
getLayerManagerGroupNode() |
protected String |
getServerDisplayString(WMSCapabilities caps) |
protected String |
getTabTitle() |
protected LayerTreeGroupNode |
getTopGroup() |
String |
getURLString() |
protected void |
handleGroupSelection(LayerTreeGroupNode groupNode) |
protected void |
handleLayerSelection(LayerNode layerNode) |
boolean |
hasNetworkActivity() |
void |
initialize(Controller controller) |
protected JPanel |
makeTopPanel() |
protected JPanel |
makeTreePanel() |
protected void |
setTabTitle(String title) |
void |
treeNodesChanged(TreeModelEvent event)
Called when the tree cell check box changes.
|
void |
treeNodesInserted(TreeModelEvent treeModelEvent) |
void |
treeNodesRemoved(TreeModelEvent treeModelEvent) |
void |
treeStructureChanged(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
addPropertyChangeListener, getValue, isEnabled, putValue, removePropertyChangeListener, setEnabled
actionPerformed
propertyChange
protected static final String FEATURE_TITLE
protected static final String ICON_PATH
protected JButton infoButton
protected LayerTree layerTree
protected Thread loadingThread
protected JTextField nameField
protected URI serverURI
protected JTextField urlField
public WMSPanel(Registry registry)
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(String URLString) throws URISyntaxException
URLString
- a text string containing the server's URL.URISyntaxException
- if the URL is invalid.protected void createComponents(JPanel panel)
protected void createLayer(LayerNode layerNode)
protected void createLayerList(WMSCapabilities caps)
protected LayerNode getLayerManagerGroupNode()
protected String getServerDisplayString(WMSCapabilities caps)
protected String getTabTitle()
protected LayerTreeGroupNode getTopGroup()
public 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 JPanel makeTopPanel()
protected JPanel makeTreePanel()
protected void setTabTitle(String title)
public void treeNodesChanged(TreeModelEvent event)
treeNodesChanged
in interface TreeModelListener
event
- the description of the change.public void treeNodesInserted(TreeModelEvent treeModelEvent)
treeNodesInserted
in interface TreeModelListener
public void treeNodesRemoved(TreeModelEvent treeModelEvent)
treeNodesRemoved
in interface TreeModelListener
public void treeStructureChanged(TreeModelEvent treeModelEvent)
treeStructureChanged
in interface TreeModelListener