public class WMTSParamsPanel extends WmtsGUI implements ActionListener, ItemListener, KeyListener, ListSelectionListener, MouseListener, TreeSelectionListener
JPanel.AccessibleJPanel
JComponent.AccessibleJComponent
Container.AccessibleAWTContainer
Component.AccessibleAWTComponent, Component.BaselineResizeBehavior, Component.BltBufferStrategy, Component.FlipBufferStrategy
Modifier and Type | Field and Description |
---|---|
protected WMTSServerExplorer |
explorer |
static Preferences |
fPrefs |
listenerList, TOOL_TIP_TEXT_KEY, ui, UNDEFINED_CONDITION, WHEN_ANCESTOR_OF_FOCUSED_COMPONENT, WHEN_FOCUSED, WHEN_IN_FOCUSED_WINDOW
accessibleContext, BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENT
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH
Constructor and Description |
---|
WMTSParamsPanel() |
WMTSParamsPanel(WMTSServerExplorer data) |
Modifier and Type | Method and Description |
---|---|
void |
actionPerformed(ActionEvent e) |
void |
addChangeTabListener(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() |
JComponent |
getComponent() |
RasterDataParameters[] |
getDataParameters()
Gets the list of
RasterDataParameters once the
dialog has been loaded |
boolean |
getDeleteCache() |
WMTSServerExplorer |
getExplorer() |
int |
getImageFormatIndex(String format)
Returns the index of the format within the formats list.
|
JList |
getImageFormats()
Gets the image format list
|
int |
getInfoFormatIndex(String format)
Returns the index of the format within the formats list.
|
JList |
getInfoFormats()
Gets the info format list
|
JTabbedPane |
getJTabbedPane()
This method initializes the main panel with tabs
|
LayerTree |
getJustTreeLayer() |
String |
getLayersQuery() |
LayerTree |
getLayerStructure()
Gets the available layers in WMTS maintaining the tree structure
|
JList |
getLstSRSs()
Gets the SRS list
|
int |
getNumTabs()
Returns the tab amount that the WMTSParamsPanel currently have
|
DataStoreParameters[] |
getParameters() |
Vector |
getSelectedLayersVector()
Gets the list of the selected layers
|
List<TreePath> |
getSelectedPaths() |
String |
getSelectedSRS()
Returns the current selected SRS.
|
int |
getSRSIndex(String crs)
Returns the index of the CRS within the CRS list.
|
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(ItemEvent e) |
void |
keyPressed(KeyEvent e) |
void |
keyReleased(KeyEvent e) |
void |
keyTyped(KeyEvent e) |
void |
mouseClicked(MouseEvent e) |
void |
mouseEntered(MouseEvent e) |
void |
mouseExited(MouseEvent e) |
void |
mousePressed(MouseEvent e) |
void |
mouseReleased(MouseEvent e) |
int |
nextEnabledPage()
Returns the previous of the previous enabled tab.
|
protected boolean |
nodeSelected(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(HashMap<String,Object> info) |
void |
valueChanged(ListSelectionEvent e) |
void |
valueChanged(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 Preferences fPrefs
public WMTSParamsPanel()
public WMTSParamsPanel(WMTSServerExplorer data)
public JComponent getComponent()
public JTabbedPane getJTabbedPane()
public void setListenerSupport(WMTSWizardListener support)
public int getSRSIndex(String crs)
crs
- public int getImageFormatIndex(String format)
format
- public int getInfoFormatIndex(String format)
format
- public void updateSelectedInfo(HashMap<String,Object> info)
updateSelectedInfo
in class WmtsGUI
public LayerTree getLayerStructure()
public Vector getStyleTitles()
public Vector getSelectedLayersVector()
public StyleTree getStyleTree()
public org.gvsig.raster.wmts.swing.impl.wizard.WMTSParamsPanel.LayerUI[] selectedLayersToArray()
public JList getLstSRSs()
public JList getImageFormats()
public 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 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 String getSelectedSRS()
public void initWizard()
public void execute()
public LayerTree getJustTreeLayer()
public DataStoreParameters[] getParameters()
public void close()
public WMTSServerExplorer getExplorer()
public void actionPerformed(ActionEvent e)
actionPerformed
in interface ActionListener
public void itemStateChanged(ItemEvent e)
itemStateChanged
in interface ItemListener
public void keyTyped(KeyEvent e)
keyTyped
in interface KeyListener
public void keyPressed(KeyEvent e)
keyPressed
in interface KeyListener
public void keyReleased(KeyEvent e)
keyReleased
in interface KeyListener
public void valueChanged(ListSelectionEvent e)
valueChanged
in interface ListSelectionListener
public void mouseClicked(MouseEvent e)
mouseClicked
in interface MouseListener
public void mouseEntered(MouseEvent e)
mouseEntered
in interface MouseListener
public void mouseExited(MouseEvent e)
mouseExited
in interface MouseListener
public void mousePressed(MouseEvent e)
mousePressed
in interface MouseListener
public void mouseReleased(MouseEvent e)
mouseReleased
in interface MouseListener
public void valueChanged(TreeSelectionEvent e)
valueChanged
in interface TreeSelectionListener
public void setDeleteCache(boolean deleteCache)
setDeleteCache
in class WmtsGUI
public boolean getDeleteCache()
getDeleteCache
in class WmtsGUI
public void addChangeTabListener(MouseAdapter eventMouse)
addChangeTabListener
in class WmtsGUI