public class GISWindow
extends javax.swing.JFrame
implements java.awt.event.WindowListener
CROSSHAIR_CURSOR, DEFAULT_CURSOR, E_RESIZE_CURSOR, HAND_CURSOR, ICONIFIED, MAXIMIZED_BOTH, MAXIMIZED_HORIZ, MAXIMIZED_VERT, MOVE_CURSOR, N_RESIZE_CURSOR, NE_RESIZE_CURSOR, NORMAL, NW_RESIZE_CURSOR, S_RESIZE_CURSOR, SE_RESIZE_CURSOR, SW_RESIZE_CURSOR, TEXT_CURSOR, W_RESIZE_CURSOR, WAIT_CURSORBOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENT| Constructor and Description |
|---|
GISWindow(Config conf)
Constructor of GISWindow.
|
| Modifier and Type | Method and Description |
|---|---|
void |
addWMS(java.lang.String baseWMS,
java.lang.String title,
org.geotools.geometry.jts.ReferencedEnvelope env)
Method to handle WMS adding to the map.
|
java.util.Map<java.lang.Integer,org.geotools.feature.FeatureCollection> |
getFeatureColl()
Method to get feature collection.
|
MapPanel |
getMapPanel()
Method to get map panel.
|
void |
setData(java.util.Map<java.lang.Integer,org.geotools.feature.FeatureCollection> fc,
java.lang.String baseMapWMS,
java.lang.String baseOrthoWMS)
Method to fill GISviewer with layers (tree of selectable layer, base map from WMS).
|
boolean |
testInet(java.lang.String site)
Method to test connection to WMS.
|
void |
windowActivated(java.awt.event.WindowEvent arg0)
Not used (empty).
|
void |
windowClosed(java.awt.event.WindowEvent arg0)
Not used (empty).
|
void |
windowClosing(java.awt.event.WindowEvent arg0)
Method to handle window closing.
|
void |
windowDeactivated(java.awt.event.WindowEvent arg0)
Not used (empty).
|
void |
windowDeiconified(java.awt.event.WindowEvent arg0)
Not used (empty).
|
void |
windowIconified(java.awt.event.WindowEvent arg0)
Not used (empty).
|
void |
windowOpened(java.awt.event.WindowEvent arg0)
Not used (empty).
|
getAccessibleContext, getContentPane, getDefaultCloseOperation, getGlassPane, getGraphics, getJMenuBar, getLayeredPane, getRootPane, getTransferHandler, isDefaultLookAndFeelDecorated, remove, repaint, setContentPane, setDefaultCloseOperation, setDefaultLookAndFeelDecorated, setGlassPane, setIconImage, setJMenuBar, setLayeredPane, setLayout, setTransferHandler, updateaddNotify, getCursorType, getExtendedState, getFrames, getIconImage, getMaximizedBounds, getMenuBar, getState, getTitle, isResizable, isUndecorated, remove, removeNotify, setBackground, setCursor, setExtendedState, setMaximizedBounds, setMenuBar, setOpacity, setResizable, setShape, setState, setTitle, setUndecoratedaddPropertyChangeListener, addPropertyChangeListener, addWindowFocusListener, addWindowListener, addWindowStateListener, applyResourceBundle, applyResourceBundle, createBufferStrategy, createBufferStrategy, dispose, getBackground, getBufferStrategy, getFocusableWindowState, getFocusCycleRootAncestor, getFocusOwner, getFocusTraversalKeys, getIconImages, getInputContext, getListeners, getLocale, getModalExclusionType, getMostRecentFocusOwner, getOpacity, getOwnedWindows, getOwner, getOwnerlessWindows, getShape, getToolkit, getType, getWarningString, getWindowFocusListeners, getWindowListeners, getWindows, getWindowStateListeners, hide, isActive, isAlwaysOnTop, isAlwaysOnTopSupported, isAutoRequestFocus, isFocusableWindow, isFocusCycleRoot, isFocused, isLocationByPlatform, isOpaque, isShowing, isValidateRoot, pack, paint, postEvent, removeWindowFocusListener, removeWindowListener, removeWindowStateListener, reshape, setAlwaysOnTop, setAutoRequestFocus, setBounds, setBounds, setCursor, setFocusableWindowState, setFocusCycleRoot, setIconImages, setLocation, setLocation, setLocationByPlatform, setLocationRelativeTo, setMinimumSize, setModalExclusionType, setSize, setSize, setType, setVisible, show, toBack, toFrontadd, add, add, add, add, addContainerListener, applyComponentOrientation, areFocusTraversalKeysSet, countComponents, deliverEvent, doLayout, findComponentAt, findComponentAt, getAlignmentX, getAlignmentY, getComponent, getComponentAt, getComponentAt, getComponentCount, getComponents, getComponentZOrder, getContainerListeners, getFocusTraversalPolicy, getInsets, getLayout, getMaximumSize, getMinimumSize, getMousePosition, getPreferredSize, insets, invalidate, isAncestorOf, isFocusCycleRoot, isFocusTraversalPolicyProvider, isFocusTraversalPolicySet, layout, list, list, locate, minimumSize, paintComponents, preferredSize, print, printComponents, remove, removeAll, removeContainerListener, setComponentZOrder, setFocusTraversalKeys, setFocusTraversalPolicy, setFocusTraversalPolicyProvider, setFont, transferFocusDownCycle, validateaction, add, addComponentListener, addFocusListener, addHierarchyBoundsListener, addHierarchyListener, addInputMethodListener, addKeyListener, addMouseListener, addMouseMotionListener, addMouseWheelListener, bounds, checkImage, checkImage, contains, contains, createImage, createImage, createVolatileImage, createVolatileImage, disable, dispatchEvent, enable, enable, enableInputMethods, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, getBaseline, getBaselineResizeBehavior, getBounds, getBounds, getColorModel, getComponentListeners, getComponentOrientation, getCursor, getDropTarget, getFocusListeners, getFocusTraversalKeysEnabled, getFont, getFontMetrics, getForeground, getGraphicsConfiguration, getHeight, getHierarchyBoundsListeners, getHierarchyListeners, getIgnoreRepaint, getInputMethodListeners, getInputMethodRequests, getKeyListeners, getLocation, getLocation, getLocationOnScreen, getMouseListeners, getMouseMotionListeners, getMousePosition, getMouseWheelListeners, getName, getParent, getPeer, getPropertyChangeListeners, getPropertyChangeListeners, getSize, getSize, getTreeLock, getWidth, getX, getY, gotFocus, handleEvent, hasFocus, imageUpdate, inside, isBackgroundSet, isCursorSet, isDisplayable, isDoubleBuffered, isEnabled, isFocusable, isFocusOwner, isFocusTraversable, isFontSet, isForegroundSet, isLightweight, isMaximumSizeSet, isMinimumSizeSet, isPreferredSizeSet, isValid, isVisible, keyDown, keyUp, list, list, list, location, lostFocus, mouseDown, mouseDrag, mouseEnter, mouseExit, mouseMove, mouseUp, move, nextFocus, paintAll, prepareImage, prepareImage, printAll, removeComponentListener, removeFocusListener, removeHierarchyBoundsListener, removeHierarchyListener, removeInputMethodListener, removeKeyListener, removeMouseListener, removeMouseMotionListener, removeMouseWheelListener, removePropertyChangeListener, removePropertyChangeListener, repaint, repaint, repaint, requestFocus, requestFocusInWindow, resize, resize, revalidate, setComponentOrientation, setDropTarget, setEnabled, setFocusable, setFocusTraversalKeysEnabled, setForeground, setIgnoreRepaint, setLocale, setMaximumSize, setName, setPreferredSize, show, size, toString, transferFocus, transferFocusBackward, transferFocusUpCyclepublic GISWindow(Config conf) throws java.io.IOException, javax.swing.UnsupportedLookAndFeelException, java.lang.ClassNotFoundException, java.lang.InstantiationException, java.lang.IllegalAccessException
conf - Configurationjava.io.IOExceptionjavax.swing.UnsupportedLookAndFeelExceptionjava.lang.ClassNotFoundExceptionjava.lang.InstantiationExceptionjava.lang.IllegalAccessExceptionpublic void addWMS(java.lang.String baseWMS,
java.lang.String title,
org.geotools.geometry.jts.ReferencedEnvelope env)
throws org.geotools.ows.ServiceException,
java.io.IOException
baseWMS - Base URL of the WMStitle - Title of the WMS layerenv - Envelopeorg.geotools.ows.ServiceExceptionjava.io.IOExceptionpublic void setData(java.util.Map<java.lang.Integer,org.geotools.feature.FeatureCollection> fc,
java.lang.String baseMapWMS,
java.lang.String baseOrthoWMS)
throws org.geotools.ows.ServiceException,
java.io.IOException,
org.opengis.referencing.operation.TransformException
fc - Collection of featuresbaseMapWMS - Base WMSbaseOrthoWMS - Base orthophoto WMSorg.geotools.ows.ServiceExceptionjava.io.IOExceptionorg.opengis.referencing.operation.TransformExceptionpublic boolean testInet(java.lang.String site)
site - public java.util.Map<java.lang.Integer,org.geotools.feature.FeatureCollection> getFeatureColl()
public MapPanel getMapPanel()
public void windowActivated(java.awt.event.WindowEvent arg0)
windowActivated in interface java.awt.event.WindowListenerpublic void windowClosed(java.awt.event.WindowEvent arg0)
windowClosed in interface java.awt.event.WindowListenerpublic void windowClosing(java.awt.event.WindowEvent arg0)
windowClosing in interface java.awt.event.WindowListenerpublic void windowDeactivated(java.awt.event.WindowEvent arg0)
windowDeactivated in interface java.awt.event.WindowListenerpublic void windowDeiconified(java.awt.event.WindowEvent arg0)
windowDeiconified in interface java.awt.event.WindowListenerpublic void windowIconified(java.awt.event.WindowEvent arg0)
windowIconified in interface java.awt.event.WindowListenerpublic void windowOpened(java.awt.event.WindowEvent arg0)
windowOpened in interface java.awt.event.WindowListener