public class WMTSParamsPanel extends WmtsGUI implements java.awt.event.ActionListener, java.awt.event.ItemListener, java.awt.event.KeyListener, javax.swing.event.ListSelectionListener, java.awt.event.MouseListener, javax.swing.event.TreeSelectionListener
javax.swing.JPanel.AccessibleJPanel
javax.swing.JComponent.AccessibleJComponent
Modifier and Type | Field and Description |
---|---|
protected WMTSServerExplorer |
explorer |
static java.util.prefs.Preferences |
fPrefs |
listenerList, TOOL_TIP_TEXT_KEY, ui, UNDEFINED_CONDITION, WHEN_ANCESTOR_OF_FOCUSED_COMPONENT, WHEN_FOCUSED, WHEN_IN_FOCUSED_WINDOW
Constructor and Description |
---|
WMTSParamsPanel() |
WMTSParamsPanel(java.util.function.Supplier<MapContext> mapContext) |
Modifier and Type | Method and Description |
---|---|
void |
actionPerformed(java.awt.event.ActionEvent e) |
void |
addChangeTabListener(java.awt.event.MouseAdapter eventMouse) |
void |
addLayer()
Method called when pressing the Add layer button or when double-clicking
on a layer from the server's layer tree.
|
void |
close() |
int |
currentPage()
Returns the index of the current tab.
|
void |
execute() |
javax.swing.JComponent |
getComponent() |
RasterDataParameters[] |
getDataParameters()
Gets the list of
RasterDataParameters once the
dialog has been loaded |
boolean |
getDeleteCache() |
WMTSServerExplorer |
getExplorer() |
int |
getImageFormatIndex(java.lang.String format)
Returns the index of the format within the formats list.
|
javax.swing.JList |
getImageFormats()
Gets the image format list
|
int |
getInfoFormatIndex(java.lang.String format)
Returns the index of the format within the formats list.
|
javax.swing.JList |
getInfoFormats()
Gets the info format list
|
javax.swing.JTabbedPane |
getJTabbedPane()
This method initializes the main panel with tabs
|
LayerTree |
getJustTreeLayer() |
java.lang.String |
getLayersQuery() |
LayerTree |
getLayerStructure()
Gets the available layers in WMTS maintaining the tree structure
|
javax.swing.JList |
getLstSRSs()
Gets the SRS list
|
int |
getNumTabs()
Returns the tab amount that the WMTSParamsPanel currently have
|
DataStoreParameters[] |
getParameters() |
java.util.Vector |
getSelectedLayersVector()
Gets the list of the selected layers
|
java.util.List<javax.swing.tree.TreePath> |
getSelectedPaths() |
java.lang.String |
getSelectedSRS()
Returns the current selected SRS.
|
int |
getSRSIndex(java.lang.String crs)
Returns the index of the CRS within the CRS list.
|
java.util.Vector |
getStyleTitles()
Gets the list of the styles
|
StyleTree |
getStyleTree()
Gets the currently shown style tree.
|
void |
initWizard() |
boolean |
isCorrectlyConfigured()
This method checks for the options selected within the configuration
dialog are correct and enough to perform a GetMap request.
|
void |
itemStateChanged(java.awt.event.ItemEvent e) |
void |
keyPressed(java.awt.event.KeyEvent e) |
void |
keyReleased(java.awt.event.KeyEvent e) |
void |
keyTyped(java.awt.event.KeyEvent e) |
void |
mouseClicked(java.awt.event.MouseEvent e) |
void |
mouseEntered(java.awt.event.MouseEvent e) |
void |
mouseExited(java.awt.event.MouseEvent e) |
void |
mousePressed(java.awt.event.MouseEvent e) |
void |
mouseReleased(java.awt.event.MouseEvent e) |
int |
nextEnabledPage()
Returns the previous of the previous enabled tab.
|
protected boolean |
nodeSelected(javax.swing.tree.TreePath[] selection,
WMTSTheme node) |
int |
previousEnabledPage()
Returns the index of the previous enabled tab.
|
void |
refreshInfoPanel()
Refreshes the info tab
|
void |
refreshSelectedLayerData()
Refreshes the content shown by this component and dependent of the selected layer.
|
org.gvsig.raster.wmts.swing.impl.wizard.WMTSParamsPanel.LayerUI[] |
selectedLayersToArray()
Gets an array with the list of layers
|
void |
setDeleteCache(boolean deleteCache) |
void |
setListenerSupport(WMTSWizardListener support) |
void |
setNextTab()
Sets the focus to the tab next to the current one.
|
void |
setPreviousTab()
Sets the focus to the tab previous to the current one.
|
void |
setTransparent(boolean b)
Selects/deselects the transparency checkbox.
|
void |
setWizardData(WMTSServerExplorer data)
Sets the explorer
|
void |
updateSelectedInfo(java.util.HashMap<java.lang.String,java.lang.Object> info) |
void |
valueChanged(javax.swing.event.ListSelectionEvent e) |
void |
valueChanged(javax.swing.event.TreeSelectionEvent e) |
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 WMTSServerExplorer explorer
public static java.util.prefs.Preferences fPrefs
public WMTSParamsPanel()
public WMTSParamsPanel(java.util.function.Supplier<MapContext> mapContext)
public javax.swing.JComponent getComponent()
public javax.swing.JTabbedPane getJTabbedPane()
public void setListenerSupport(WMTSWizardListener support)
public int getSRSIndex(java.lang.String crs)
crs
- public int getImageFormatIndex(java.lang.String format)
format
- public int getInfoFormatIndex(java.lang.String format)
format
- public void updateSelectedInfo(java.util.HashMap<java.lang.String,java.lang.Object> info)
updateSelectedInfo
in class WmtsGUI
public LayerTree getLayerStructure()
public java.util.Vector getStyleTitles()
public java.util.Vector getSelectedLayersVector()
public StyleTree getStyleTree()
public org.gvsig.raster.wmts.swing.impl.wizard.WMTSParamsPanel.LayerUI[] selectedLayersToArray()
public javax.swing.JList getLstSRSs()
public javax.swing.JList getImageFormats()
public javax.swing.JList getInfoFormats()
public boolean isCorrectlyConfigured()
isCorrectlyConfigured
in class WmtsGUI
public void addLayer()
public void refreshSelectedLayerData()
public void refreshInfoPanel()
public void setWizardData(WMTSServerExplorer data)
setWizardData
in class WmtsGUI
data
- public java.lang.String getLayersQuery()
public void setNextTab()
setNextTab
in class WmtsGUI
public void setPreviousTab()
setPreviousTab
in class WmtsGUI
public int currentPage()
currentPage
in class WmtsGUI
public int getNumTabs()
getNumTabs
in class WmtsGUI
public int previousEnabledPage()
Returns the index of the previous enabled tab.
public int nextEnabledPage()
Returns the previous of the previous enabled tab.
nextEnabledPage
in class WmtsGUI
public void setTransparent(boolean b)
b
- public RasterDataParameters[] getDataParameters()
WmtsGUI
RasterDataParameters
once the
dialog has been loadedgetDataParameters
in class WmtsGUI
public java.lang.String getSelectedSRS()
public void initWizard()
public void execute()
protected boolean nodeSelected(javax.swing.tree.TreePath[] selection, WMTSTheme node)
public java.util.List<javax.swing.tree.TreePath> getSelectedPaths()
public LayerTree getJustTreeLayer()
public DataStoreParameters[] getParameters()
public void close()
public WMTSServerExplorer getExplorer()
public void actionPerformed(java.awt.event.ActionEvent e)
actionPerformed
in interface java.awt.event.ActionListener
public void itemStateChanged(java.awt.event.ItemEvent e)
itemStateChanged
in interface java.awt.event.ItemListener
public void keyTyped(java.awt.event.KeyEvent e)
keyTyped
in interface java.awt.event.KeyListener
public void keyPressed(java.awt.event.KeyEvent e)
keyPressed
in interface java.awt.event.KeyListener
public void keyReleased(java.awt.event.KeyEvent e)
keyReleased
in interface java.awt.event.KeyListener
public void valueChanged(javax.swing.event.ListSelectionEvent e)
valueChanged
in interface javax.swing.event.ListSelectionListener
public void mouseClicked(java.awt.event.MouseEvent e)
mouseClicked
in interface java.awt.event.MouseListener
public void mouseEntered(java.awt.event.MouseEvent e)
mouseEntered
in interface java.awt.event.MouseListener
public void mouseExited(java.awt.event.MouseEvent e)
mouseExited
in interface java.awt.event.MouseListener
public void mousePressed(java.awt.event.MouseEvent e)
mousePressed
in interface java.awt.event.MouseListener
public void mouseReleased(java.awt.event.MouseEvent e)
mouseReleased
in interface java.awt.event.MouseListener
public void valueChanged(javax.swing.event.TreeSelectionEvent e)
valueChanged
in interface javax.swing.event.TreeSelectionListener
public void setDeleteCache(boolean deleteCache)
setDeleteCache
in class WmtsGUI
public boolean getDeleteCache()
getDeleteCache
in class WmtsGUI
public void addChangeTabListener(java.awt.event.MouseAdapter eventMouse)
addChangeTabListener
in class WmtsGUI