public class WMSParamsPanel extends WizardPanel
JPanel.AccessibleJPanel
JComponent.AccessibleJComponent
Container.AccessibleAWTContainer
Component.AccessibleAWTComponent, Component.BaselineResizeBehavior, Component.BltBufferStrategy, Component.FlipBufferStrategy
Modifier and Type | Field and Description |
---|---|
protected WMSServerExplorer |
explorer |
static Preferences |
fPrefs |
accessibleContext, listenerList, TOOL_TIP_TEXT_KEY, ui, UNDEFINED_CONDITION, WHEN_ANCESTOR_OF_FOCUSED_COMPONENT, WHEN_FOCUSED, WHEN_IN_FOCUSED_WINDOW
BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENT
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH
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) |
Vector<String> |
getDimensions() |
boolean |
getDisagregatedLayers() |
WMSServerExplorer |
getExplorer() |
Dimension |
getFixedSize() |
String |
getFormat() |
int |
getFormatIndex(String format)
Returns the index of the format within the formats list.
|
String |
getInfoFormat() |
int |
getInfoFormatIndex(String infoformat)
Returns the index of the format within the formats list.
|
JTabbedPane |
getJTabbedPane()
This method initializes jTabbedPane
|
LayerTree |
getJustTreeLayer() |
FLayer |
getLayer() |
FLayer |
getLayer(boolean cached) |
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.
|
String |
getLayersQuery() |
LayerTree |
getLayerStructure()
Gets the available layers in WMS maintaining the tree structure
|
Vector<RemoteWMSStyle> |
getLayerStyle(String layerName) |
protected FLayer |
getLayerTree()
If user does not select the chekbox Disagregate layers, will get the
layer tree in WMS
|
JList |
getLstFormats()
This method initializes lstFormats
|
JList |
getLstInfoFormats()
This method initializes lstSRSs
|
LayerList |
getLstSelectedLayers()
This method initializes lstSelectedLayers
|
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
|
Hashtable |
getOnlineResources() |
DataStoreParameters[] |
getParameters() |
String |
getQueryableLayerQuery()
The piece of the GetMap request that has the layer names.
|
TreePath[] |
getSelectedLayers() |
ArrayList<TreePath> |
getSelectedPaths() |
String |
getSRS()
Returns the current selected SRS.
|
int |
getSRSIndex(String crs)
Returns the index of the CRS within the CRS list.
|
Vector<RemoteWMSStyle> |
getStyles()
Returns a vector of strings containing the styles selected for the
layers.
|
protected FLayer |
getSubTree(WMSLayerNode node,
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(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(Vector dimensions) |
void |
setFixedSize(Dimension sz) |
void |
setLayerName(String name) |
void |
setListenerSupport(WizardListenerSupport support) |
void |
setStyleSelections(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) |
addWizardListener, areSettingsValid, callError, callStateChanged, doAddLayer, doAddLayer, executeWizard, getMapContext, getMapCtrl, getTabName, isMapControlAvailable, removeWizardListener, setMapContext, setMapCtrl, setTabName
getAccessibleContext, getUI, getUIClassID, paramString, setUI, updateUI
addAncestorListener, 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, update
add, 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, validateTree
action, 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, transferFocusUpCycle
protected WMSServerExplorer explorer
public static 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(List<RemoteWMSStyle> styles)
selectedLayers
- styles
- public void addLayer()
public LayerList getLstSelectedLayers()
public JList getLstSRSs()
public JList getLstInfoFormats()
public JList getLstFormats()
public void setListenerSupport(WizardListenerSupport support)
public void setWizardData(WMSServerExplorer data)
public String getFormat()
public String getInfoFormat()
public String getLayersQuery()
public String getSRS()
public String getLayerName()
public void setLayerName(String name)
public TreePath[] getSelectedLayers()
public Hashtable getOnlineResources()
public String getQueryableLayerQuery()
public int getSRSIndex(String crs)
crs
- public int getFormatIndex(String format)
format
- public int getInfoFormatIndex(String infoformat)
format
- public 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 Vector<RemoteWMSStyle> getStyles()
public Vector<RemoteWMSStyle> getLayerStyle(String layerName)
public void setDimensions(Vector dimensions)
public boolean getTransparency()
public void initWizard()
initWizard
in class WizardPanel
public void execute()
execute
in class WizardPanel
protected FLayer getAllSubTree(WMSLayerNode node) throws LoadLayerException
LoadLayerException
public FLayer getAllLayers() throws LoadLayerException
LoadLayerException
public FLayer getLayer(boolean cached) throws InitializeException
InitializeException
public FLayer getLayer() throws InitializeException
InitializeException
protected FLayer getLayerTree() throws InitializeException
LoadLayerException
InitializeException
protected boolean nodeSelected(TreePath[] selection, WMSLayerNode node)
protected FLayer getSubTree(WMSLayerNode node, TreePath[] selection) throws InitializeException
InitializeException
protected FLayer getLayerPlain(boolean cached) throws InitializeException
InitializeException
public Dimension getFixedSize()
public void setFixedSize(Dimension sz)
public LayerTree getJustTreeLayer()
public boolean getDisagregatedLayers()
public void disableDisagregatedLayers()
public DataStoreParameters[] getParameters()
getParameters
in class WizardPanel
public void close()
close
in class WizardPanel
public WMSServerExplorer getExplorer()