public class WMSParamsPanel extends WizardPanel
| Modifier and Type | Class and Description |
|---|---|
class |
WMSParamsPanel.SRSList |
javax.swing.JPanel.AccessibleJPaneljavax.swing.JComponent.AccessibleJComponent| Modifier and Type | Field and Description |
|---|---|
protected WMSServerExplorer |
explorer |
static java.util.prefs.Preferences |
fPrefs |
argumentslistenerList, TOOL_TIP_TEXT_KEY, ui, UNDEFINED_CONDITION, WHEN_ANCESTOR_OF_FOCUSED_COMPONENT, WHEN_FOCUSED, WHEN_IN_FOCUSED_WINDOW| Constructor and Description |
|---|
WMSParamsPanel() |
WMSParamsPanel(WMSServerExplorer data) |
| Modifier and Type | Method and Description |
|---|---|
void |
addLayer()
Method called when pressing the Add layer button or when double-clicking
on a layer from the server's layer tree.
|
void |
avanzaTab()
Sets the focus to the tab next to the current one.
|
void |
close() |
int |
currentPage()
Returns the index of the current tab.
|
void |
disableDisagregatedLayers() |
void |
execute() |
FLayer |
getAllLayers() |
protected FLayer |
getAllSubTree(WMSLayerNode node) |
java.util.Vector<java.lang.String> |
getDimensions() |
boolean |
getDisagregatedLayers() |
WMSServerExplorer |
getExplorer() |
java.awt.Dimension |
getFixedSize() |
java.lang.String |
getFormat() |
int |
getFormatIndex(java.lang.String format)
Returns the index of the format within the formats list.
|
java.lang.String |
getInfoFormat() |
int |
getInfoFormatIndex(java.lang.String infoformat)
Returns the index of the format within the formats list.
|
javax.swing.JTabbedPane |
getJTabbedPane()
This method initializes jTabbedPane
|
LayerTree |
getJustTreeLayer() |
FLayer |
getLayer() |
FLayer |
getLayer(boolean cached) |
java.lang.String |
getLayerName()
Returns the name of the layer that the user has typed-in
|
protected FLayer |
getLayerPlain(boolean cached)
If user selects the chekbox Disagregate layers, will get the selected
layers rendered in one the tree structure in WMS will be lost.
|
java.lang.String |
getLayersQuery() |
LayerTree |
getLayerStructure()
Gets the available layers in WMS maintaining the tree structure
|
java.util.Vector<RemoteWMSStyle> |
getLayerStyle(java.lang.String layerName) |
protected FLayer |
getLayerTree()
If user does not select the chekbox Disagregate layers, will get the
layer tree in WMS
|
javax.swing.JList |
getLstFormats()
This method initializes lstFormats
|
javax.swing.JList |
getLstInfoFormats()
This method initializes lstSRSs
|
LayerList |
getLstSelectedLayers()
This method initializes lstSelectedLayers
|
javax.swing.JList |
getLstSRSs()
This method initializes lstSRSs
|
int |
getNumTabs()
Returns the tab amount that the WMSParamsPanel currently have
Devuelve el numero de solapas que tiene actualmente el WMSParamsPanel
|
java.util.Hashtable |
getOnlineResources() |
DataStoreParameters[] |
getParameters() |
java.lang.String |
getQueryableLayerQuery()
The piece of the GetMap request that has the layer names.
|
javax.swing.tree.TreePath[] |
getSelectedLayers() |
java.util.ArrayList<javax.swing.tree.TreePath> |
getSelectedPaths() |
java.lang.String |
getSRS()
Returns the current selected SRS.
|
int |
getSRSIndex(java.lang.String crs)
Returns the index of the CRS within the CRS list.
|
java.util.Vector<RemoteWMSStyle> |
getStyles()
Returns a vector of strings containing the styles selected for the
layers.
|
protected FLayer |
getSubTree(WMSLayerNode node,
javax.swing.tree.TreePath[] selection) |
boolean |
getTransparency() |
void |
initWizard() |
boolean |
isCorrectlyConfigured()
This method checks for the options selected within the configuration
dialog are correct and enough to perform a GetMap request.
|
boolean |
isUpdatingCache() |
int |
nextEnabledPage()
Returns the previous of the previous enabled tab.
|
protected boolean |
nodeSelected(javax.swing.tree.TreePath[] selection,
WMSLayerNode node) |
int |
previousEnabledPage()
Returns the index of the previous enabled tab.
|
void |
refreshData()
Refreshes the content shown by this.
|
void |
refreshInfo()
Refreshes the info tab
|
void |
retrocedeTab()
Sets the focus to the tab previous to the current one.
|
WMSLayerNode[] |
selectedLayersToArray() |
void |
setDimensions(java.util.Vector dimensions) |
void |
setFixedSize(java.awt.Dimension sz) |
void |
setLayerName(java.lang.String name) |
void |
setListenerSupport(WizardListenerSupport support) |
void |
setStyleSelections(java.util.List<RemoteWMSStyle> styles)
Takes the array of selected layers and a vector containing the style
names and set them as selected in the styles panel
|
void |
setTransparent(boolean b)
Selects/deselects the transparency checkbox.
|
void |
setUpdatingCache(boolean updating) |
void |
setWizardData(WMSServerExplorer data) |
addArguments, addTask, addWizardListener, areSettingsValid, callError, callStateChanged, clearTasks, doAddLayer, doAddLayer, executeWizard, fixCRS, getMapContext, getMapCtrl, getTabName, isMapControlAvailable, removeWizardListener, setMapContext, setMapCtrl, setTabName, startTask, waitTasksgetAccessibleContext, getUI, getUIClassID, paramString, setUI, updateUIaddAncestorListener, addNotify, addVetoableChangeListener, computeVisibleRect, contains, createToolTip, disable, enable, firePropertyChange, firePropertyChange, firePropertyChange, fireVetoableChange, getActionForKeyStroke, getActionMap, getAlignmentX, getAlignmentY, getAncestorListeners, getAutoscrolls, getBaseline, getBaselineResizeBehavior, getBorder, getBounds, getClientProperty, getComponentGraphics, getComponentPopupMenu, getConditionForKeyStroke, getDebugGraphicsOptions, getDefaultLocale, getFontMetrics, getGraphics, getHeight, getInheritsPopupMenu, getInputMap, getInputMap, getInputVerifier, getInsets, getInsets, getListeners, getLocation, getMaximumSize, getMinimumSize, getNextFocusableComponent, getPopupLocation, getPreferredSize, getRegisteredKeyStrokes, getRootPane, getSize, getToolTipLocation, getToolTipText, getToolTipText, getTopLevelAncestor, getTransferHandler, getVerifyInputWhenFocusTarget, getVetoableChangeListeners, getVisibleRect, getWidth, getX, getY, grabFocus, hide, isDoubleBuffered, isLightweightComponent, isManagingFocus, isOpaque, isOptimizedDrawingEnabled, isPaintingForPrint, isPaintingOrigin, isPaintingTile, isRequestFocusEnabled, isValidateRoot, paint, paintBorder, paintChildren, paintComponent, paintImmediately, paintImmediately, print, printAll, printBorder, printChildren, printComponent, processComponentKeyEvent, processKeyBinding, processKeyEvent, processMouseEvent, processMouseMotionEvent, putClientProperty, registerKeyboardAction, registerKeyboardAction, removeAncestorListener, removeNotify, removeVetoableChangeListener, repaint, repaint, requestDefaultFocus, requestFocus, requestFocus, requestFocusInWindow, requestFocusInWindow, resetKeyboardActions, reshape, revalidate, scrollRectToVisible, setActionMap, setAlignmentX, setAlignmentY, setAutoscrolls, setBackground, setBorder, setComponentPopupMenu, setDebugGraphicsOptions, setDefaultLocale, setDoubleBuffered, setEnabled, setFocusTraversalKeys, setFont, setForeground, setInheritsPopupMenu, setInputMap, setInputVerifier, setMaximumSize, setMinimumSize, setNextFocusableComponent, setOpaque, setPreferredSize, setRequestFocusEnabled, setToolTipText, setTransferHandler, setUI, setVerifyInputWhenFocusTarget, setVisible, unregisterKeyboardAction, updateadd, add, add, add, add, addContainerListener, addImpl, addPropertyChangeListener, addPropertyChangeListener, applyComponentOrientation, areFocusTraversalKeysSet, countComponents, deliverEvent, doLayout, findComponentAt, findComponentAt, getComponent, getComponentAt, getComponentAt, getComponentCount, getComponents, getComponentZOrder, getContainerListeners, getFocusTraversalKeys, getFocusTraversalPolicy, getLayout, getMousePosition, insets, invalidate, isAncestorOf, isFocusCycleRoot, isFocusCycleRoot, isFocusTraversalPolicyProvider, isFocusTraversalPolicySet, layout, list, list, locate, minimumSize, paintComponents, preferredSize, printComponents, processContainerEvent, processEvent, remove, remove, removeAll, removeContainerListener, setComponentZOrder, setFocusCycleRoot, setFocusTraversalPolicy, setFocusTraversalPolicyProvider, setLayout, transferFocusDownCycle, validate, validateTreeaction, add, addComponentListener, addFocusListener, addHierarchyBoundsListener, addHierarchyListener, addInputMethodListener, addKeyListener, addMouseListener, addMouseMotionListener, addMouseWheelListener, bounds, checkImage, checkImage, coalesceEvents, contains, createImage, createImage, createVolatileImage, createVolatileImage, disableEvents, dispatchEvent, enable, enableEvents, enableInputMethods, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, getBackground, getBounds, getColorModel, getComponentListeners, getComponentOrientation, getCursor, getDropTarget, getFocusCycleRootAncestor, getFocusListeners, getFocusTraversalKeysEnabled, getFont, getForeground, getGraphicsConfiguration, getHierarchyBoundsListeners, getHierarchyListeners, getIgnoreRepaint, getInputContext, getInputMethodListeners, getInputMethodRequests, getKeyListeners, getLocale, getLocation, getLocationOnScreen, getMouseListeners, getMouseMotionListeners, getMousePosition, getMouseWheelListeners, getName, getParent, getPeer, getPropertyChangeListeners, getPropertyChangeListeners, getSize, getToolkit, getTreeLock, gotFocus, handleEvent, hasFocus, imageUpdate, inside, isBackgroundSet, isCursorSet, isDisplayable, isEnabled, isFocusable, isFocusOwner, isFocusTraversable, isFontSet, isForegroundSet, isLightweight, isMaximumSizeSet, isMinimumSizeSet, isPreferredSizeSet, isShowing, isValid, isVisible, keyDown, keyUp, list, list, list, location, lostFocus, mouseDown, mouseDrag, mouseEnter, mouseExit, mouseMove, mouseUp, move, nextFocus, paintAll, postEvent, prepareImage, prepareImage, processComponentEvent, processFocusEvent, processHierarchyBoundsEvent, processHierarchyEvent, processInputMethodEvent, processMouseWheelEvent, remove, removeComponentListener, removeFocusListener, removeHierarchyBoundsListener, removeHierarchyListener, removeInputMethodListener, removeKeyListener, removeMouseListener, removeMouseMotionListener, removeMouseWheelListener, removePropertyChangeListener, removePropertyChangeListener, repaint, repaint, repaint, resize, resize, setBounds, setBounds, setComponentOrientation, setCursor, setDropTarget, setFocusable, setFocusTraversalKeysEnabled, setIgnoreRepaint, setLocale, setLocation, setLocation, setName, setSize, setSize, show, show, size, toString, transferFocus, transferFocusBackward, transferFocusUpCycleprotected WMSServerExplorer explorer
public static java.util.prefs.Preferences fPrefs
public WMSParamsPanel()
public WMSParamsPanel(WMSServerExplorer data)
public boolean isUpdatingCache()
public void setUpdatingCache(boolean updating)
public LayerTree getLayerStructure()
public boolean isCorrectlyConfigured()
public WMSLayerNode[] selectedLayersToArray()
public void refreshData()
public void refreshInfo()
public void setStyleSelections(java.util.List<RemoteWMSStyle> styles)
selectedLayers - styles - public void addLayer()
public LayerList getLstSelectedLayers()
public javax.swing.JList getLstSRSs()
public javax.swing.JList getLstInfoFormats()
public javax.swing.JList getLstFormats()
public void setListenerSupport(WizardListenerSupport support)
public void setWizardData(WMSServerExplorer data)
public java.lang.String getFormat()
public java.lang.String getInfoFormat()
public java.lang.String getLayersQuery()
public java.lang.String getSRS()
public java.lang.String getLayerName()
public void setLayerName(java.lang.String name)
public javax.swing.tree.TreePath[] getSelectedLayers()
public java.util.Hashtable getOnlineResources()
public java.lang.String getQueryableLayerQuery()
public int getSRSIndex(java.lang.String crs)
crs - public int getFormatIndex(java.lang.String format)
format - public int getInfoFormatIndex(java.lang.String infoformat)
format - public javax.swing.JTabbedPane getJTabbedPane()
public void avanzaTab()
public void retrocedeTab()
public int currentPage()
public int getNumTabs()
public int previousEnabledPage()
Returns the index of the previous enabled tab.
Devuelve el �ndice de la anterior p�gina habilitada del wizard o -1 si no hay ninguna.
public int nextEnabledPage()
Returns the previous of the previous enabled tab.
Devuelve el �ndice de la siguiente p�gina habilitada del wizard o -1 si no hay ninguna.
public void setTransparent(boolean b)
b - public java.util.Vector<RemoteWMSStyle> getStyles()
public java.util.Vector<RemoteWMSStyle> getLayerStyle(java.lang.String layerName)
public void setDimensions(java.util.Vector dimensions)
public boolean getTransparency()
public java.util.Vector<java.lang.String> getDimensions()
public void initWizard()
initWizard in class WizardPanelpublic void execute()
execute in class WizardPanelprotected FLayer getAllSubTree(WMSLayerNode node) throws LoadLayerException
LoadLayerExceptionpublic FLayer getAllLayers() throws LoadLayerException
LoadLayerExceptionpublic FLayer getLayer(boolean cached) throws InitializeException
InitializeExceptionpublic FLayer getLayer() throws InitializeException
InitializeExceptionprotected FLayer getLayerTree() throws InitializeException
LoadLayerExceptionInitializeExceptionprotected boolean nodeSelected(javax.swing.tree.TreePath[] selection,
WMSLayerNode node)
protected FLayer getSubTree(WMSLayerNode node, javax.swing.tree.TreePath[] selection) throws InitializeException
InitializeExceptionprotected FLayer getLayerPlain(boolean cached) throws InitializeException
InitializeExceptionpublic java.awt.Dimension getFixedSize()
public void setFixedSize(java.awt.Dimension sz)
public java.util.ArrayList<javax.swing.tree.TreePath> getSelectedPaths()
public LayerTree getJustTreeLayer()
public boolean getDisagregatedLayers()
public void disableDisagregatedLayers()
public DataStoreParameters[] getParameters()
getParameters in class WizardPanelpublic void close()
close in class WizardPanelpublic WMSServerExplorer getExplorer()