com.ontimize.util.gis.client.viewer
Class ParallelThreadSelectorGisViewer

java.lang.Object
  extended by java.awt.Component
      extended by java.awt.Container
          extended by javax.swing.JComponent
              extended by javax.swing.JPanel
                  extended by com.ontimize.util.gis.client.viewer.ParallelThreadGisViewer
                      extended by com.ontimize.util.gis.client.viewer.ParallelThreadEditionGisViewer
                          extended by com.ontimize.util.gis.client.viewer.ParallelThreadSelectorGisViewer
All Implemented Interfaces:
com.ontimize.gui.i18n.Internationalization, AreaChangeListener, IGisDataRequester, IGisEditionViewer, IGisLayerUtilities, IGisSelectionViewer, IGisViewer, java.awt.event.ComponentListener, java.awt.event.KeyListener, java.awt.event.MouseListener, java.awt.event.MouseMotionListener, java.awt.event.MouseWheelListener, java.awt.image.ImageObserver, java.awt.MenuContainer, java.io.Serializable, java.util.EventListener, javax.accessibility.Accessible, javax.swing.event.MouseInputListener
Direct Known Subclasses:
GSelectorGisViewer

public class ParallelThreadSelectorGisViewer
extends ParallelThreadEditionGisViewer
implements IGisEditionViewer, java.awt.event.KeyListener, IGisDataRequester, IGisLayerUtilities, java.awt.event.MouseWheelListener, java.awt.event.MouseListener, java.awt.event.MouseMotionListener, javax.swing.event.MouseInputListener, AreaChangeListener, com.ontimize.gui.i18n.Internationalization, java.awt.event.ComponentListener

See Also:
Serialized Form

Nested Class Summary
(package private)  class ParallelThreadSelectorGisViewer.InternalSelectorRenderer
           
 
Nested classes/interfaces inherited from class com.ontimize.util.gis.client.viewer.ParallelThreadEditionGisViewer
ParallelThreadEditionGisViewer.InternalEditionRenderer
 
Nested classes/interfaces inherited from class com.ontimize.util.gis.client.viewer.ParallelThreadGisViewer
ParallelThreadGisViewer.InternalRenderer, ParallelThreadGisViewer.RepaintThread
 
Nested classes/interfaces inherited from class javax.swing.JPanel
javax.swing.JPanel.AccessibleJPanel
 
Nested classes/interfaces inherited from class javax.swing.JComponent
javax.swing.JComponent.AccessibleJComponent
 
Nested classes/interfaces inherited from class java.awt.Container
java.awt.Container.AccessibleAWTContainer
 
Nested classes/interfaces inherited from class java.awt.Component
java.awt.Component.AccessibleAWTComponent, java.awt.Component.BaselineResizeBehavior, java.awt.Component.BltBufferStrategy, java.awt.Component.FlipBufferStrategy
 
Field Summary
(package private)  IGisLayer actualLayer
           
(package private)  int actualObject
           
(package private)  int firstPosX
           
(package private)  int firstPosY
           
protected  java.util.List<java.util.Hashtable> gSelectedData
           
protected static boolean hideSelectorAfterClick
           
protected static java.awt.Color highLightBorderColor
          Border color for highlighted elements on selector
protected static java.awt.Color highLightColor
          Fill color for highlighted elements on selector
protected  int highlightId
           
protected  java.lang.String highlightLayerName
           
protected  java.util.List<int[]> locsList
           
protected static int maxElementRadius
          Maximum radius in pixels for the selector
protected static double maxSelRadius
          Maximum radius in pixels for the selector
protected static float maxTransparencyLevel
          Maximum transparency level for the selector background
protected static int minElementRadius
          Maximum radius in pixels for the selector
(package private)  java.util.Iterator<java.lang.String> mulIt
           
(package private)  java.util.Hashtable<java.lang.String,java.util.List> multiSelectedData
          This element stores the group of elements to show in the advance selector
protected  boolean openData
           
protected static boolean openElementAfterDoubleClick
           
protected  boolean paintSelectedDataOver
          Value used to indicate if the map panel has to paint selected data from a hidden element
protected static java.lang.String PREFERENCE_SELECTOR_LAYERS
           
protected static java.lang.String PREFERENCE_SELECTOR_TIPS
           
protected  int prevSelectorState
           
protected  double prevSelRadius
           
protected static java.awt.Color selectedBorderColor
          Border color for selected elements on selector
protected static java.awt.Color selectedColor
          Fill color for selected elements on selector
protected  int selectedId
           
(package private)  com.vividsolutions.jts.geom.Point selectorCenterPoint
          Center point of the multiple elements selector
protected  java.util.Vector<java.lang.String> selectorLayersList
           
protected  java.util.Vector<java.lang.String> selectorLayersTipField
           
protected  org.jdesktop.animation.timing.Animator selectortAnim
          Selector expansion animator
(package private)  org.jdesktop.animation.timing.TimingTarget selectorTarget
           
protected static int selectorTime
          Selector animation time
protected  java.util.Hashtable<java.lang.String,java.lang.String> selectorTips
           
protected  boolean separate
           
(package private)  java.util.List<java.util.Hashtable> tempList
           
(package private)  int totalObjects
           
protected  boolean transition
           
protected  org.jdesktop.animation.timing.Animator translucentAnim
          Transparency animator
protected  float translucentState
          Transparency level used in animations
protected static java.awt.Color transparencyColor
          Set the selector background transparency color
protected  boolean transparent
           
(package private)  org.jdesktop.animation.timing.TimingTarget transTarget
           
protected static int transTime
          Transparency animation time
 
Fields inherited from class com.ontimize.util.gis.client.viewer.ParallelThreadEditionGisViewer
editedData, editionLayer, editionManager, editionManagerClassName
 
Fields inherited from class com.ontimize.util.gis.client.viewer.ParallelThreadGisViewer
actualZoomArea, alternativeRenderers, animatedViewer, animRes, animTime, areaChangeListeners, backgroundColor, bboxGraphics, bboxImage, blur, blurKernel, boundingBox, centerWeight, changed, configurationParameters, controlPressed, crs, crsCode, currentData, DEBUG, dr, enabled, filters, firstTime, gf, gisClientManager, gisComponent, highlightChangeListeners, highlightData, internalRender, lastInsertedIndex, lastX, lastY, layers, layersChangeListeners, layersConfigurationId, layersNotVisible, layersOrder, layersVisible, maximumZoomLevel, maximumZoomLevelEnabled, menuPanel, minimumZoomLevel, minimumZoomLevelEnabled, mouseDragging, mouseIn, mouseListenerDisabled, mouseListeners, mouseMotionListeners, mouseWheelListeners, neighbourWeight, newZoomArea, newZoomBounds, numLayers, oldRect, paintZoomBox, panelImage, pendingMouseWheelClicks, pixelSize, prevBoundingBox, prevHighlightData, rasterVisibilityExclusion, renderer, rendererClassName, renderFinished, rendering, repaintMessages, repaintThread, res, selectedData, selectionChangeListeners, selectionLayer, selectionPrecision, selectionStyle, shiftPressed, startX, startY, state, stateChangeListeners, strBuilder, tempImage, tpesRender, transientPaint, visible, waitMillisBetweenThreads, zoomAnim, zoomInFactor, zoomOnClick, zoomOutFactor, zoomPos, zoomState
 
Fields inherited from class javax.swing.JComponent
accessibleContext, listenerList, TOOL_TIP_TEXT_KEY, ui, UNDEFINED_CONDITION, WHEN_ANCESTOR_OF_FOCUSED_COMPONENT, WHEN_FOCUSED, WHEN_IN_FOCUSED_WINDOW
 
Fields inherited from class java.awt.Component
BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENT
 
Fields inherited from interface com.ontimize.util.gis.client.interfaces.IGisViewer
APPLIED_FILTERS, FILTER_CONDITION_AND, FILTER_CONDITION_NOT, FILTER_CONDITION_OR, FILTER_PROPERTY_BETWEEN, FILTER_PROPERTY_EQUAL, FILTER_PROPERTY_GREATER_OR_EQUAL, FILTER_PROPERTY_GREATER_THAN, FILTER_PROPERTY_LESS_OR_EQUAL, FILTER_PROPERTY_LESS_THAN, FILTER_PROPERTY_NOT_EQUAL, FILTER_PROPERTY_NULL, GEO_OBJECT_ID, GEOMETRY, STATE_EDITION, STATE_GOOGLE_SELECTOR, STATE_PAN_SELECTION, STATE_VIEWER_DISABLED, STATE_ZOOM_IN, STATE_ZOOM_OUT, ZOOM_STATE_DISABLED, ZOOM_STATE_ZOOMING_IN, ZOOM_STATE_ZOOMING_OUT
 
Fields inherited from interface com.ontimize.gui.i18n.Internationalization
DEBUG_LANGUAGE
 
Fields inherited from interface java.awt.image.ImageObserver
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH
 
Constructor Summary
ParallelThreadSelectorGisViewer()
           
ParallelThreadSelectorGisViewer(java.util.Hashtable parameters)
           
 
Method Summary
protected  void buildSelectorAnim()
          Build the selector expansion/collapse animator
protected  void buildTransAnim()
          Build the selector transparency animator
 void componentResized(java.awt.event.ComponentEvent ev)
           
protected  java.util.Hashtable<java.lang.String,java.util.List> deleteDuplicateValues(java.util.Hashtable<java.lang.String,java.util.List> selectedData)
           
protected  void disableInnerMouseListeners()
           
protected  void enableInnerMouseListeners()
           
protected  void fireHighLight()
           
protected  void fireSelectionListeners()
          Fire the selection change listeners added to the gis viewer
 void hideSelector()
           
 void init(java.lang.Object initParameters)
          Init the gis viewer with the given parameters
 void keyReleased(java.awt.event.KeyEvent ev)
           
 void mouseClicked(java.awt.event.MouseEvent e)
           
 void mouseMoved(java.awt.event.MouseEvent e)
           
 void mouseWheelMoved(java.awt.event.MouseWheelEvent e)
           
protected  void paintBasicGis(java.awt.Graphics g)
          Paint the basic gis elements, method used for painting on states different from the selector state (This is a copy of the paintComponent(Graphics g) from the EditionGisViewer class
 void paintComponent(java.awt.Graphics g)
           
protected  void paintGSelector(java.awt.Graphics2D g, double radius)
          Method to paint the multiple elements selector in the given graphics component
protected  java.util.Hashtable<java.lang.String,java.util.List> processMultipleSelectionData(java.util.Hashtable<java.lang.String,java.util.List> selectedData, com.vividsolutions.jts.geom.Geometry interestPoint)
           
 void reloadViewer()
          Reloads the map viewer, clearing all the data caches, and going to the initial state
protected  void setGSelection()
           
 void setViewerPreferences(java.util.Hashtable<java.lang.String,java.lang.Object> preferences)
          Set the viewer preferences
protected  void updateHighlightedDataOnPoint(com.vividsolutions.jts.geom.Geometry interestPoint, double pixelSize)
          Update the actually highlighted elements for the given location
protected  java.util.List<int[]> updateLocsList()
          Updates the elements location list on selector using the maximum radius value
protected  void updateSelectedDataOnPoint(com.vividsolutions.jts.geom.Geometry interestPoint, double pixelSize)
          Update the actually selected elements for the given location
protected  void waitWhileRendering()
           
 
Methods inherited from class com.ontimize.util.gis.client.viewer.ParallelThreadEditionGisViewer
addEditionChangeListener, checkIfRecordIsInCurrentDataByID, removeEditionChangeListener, requestCurrentData, requestCurrentData, setCursor, setEditionData, setEditionLayer, setInvalidEditionButtons, setLayerDefinition, setLayersConfigurationId, setLayerVisible, setResourceBundle, setState, updateEditionLayer, updateValidLayersInRange
 
Methods inherited from class com.ontimize.util.gis.client.viewer.ParallelThreadGisViewer
addAreaChangeListener, addHighlightChangeListener, addLayerChangeListener, addNewLayer, addSelectionChangeListener, addStateChangeListener, adjustBoundingBoxToLayer, applyFilters, areaChanged, autoUpdateCRS, autoZoomOnPoint, centerOnPoint, centerView, centerViewOnEnvelope, changeCRS, checkIfRecordIsInCurrentData, checkIfRecordIsInCurrentDataByID, checkValidityForSelection, cleanSelectedData, componentHidden, componentMoved, componentShown, createAreaChangeEvent, deleteDataInsideBBox, deleteFilteredData, deleteLayerData, deleteOuterData, deleteOutFilteredData, deleteTransparentRecords, disableMouseListeners, drawRectangle, enableMouseListeners, expandSelectionByDistance, fireAreaChangeEvent, fireLayerChangeEvent, forceExternalRepaint, forceRepaint, getActualZoomArea, getCRS, getCursorLocation, getDefaultRenderer, getGisClientUtilities, getLayer, getLayerData, getLayerRenderer, getLayersConfigurationId, getLayersList, getLayerStyle, getMapArea, getMapAreaLayerData, getOGisComponent, getPixelSize, getResourceBundle, getSelectedData, getSelectionLayer, getState, getTextsToTranslate, getViewerPreferences, getZoomState, insertDataIntoCurrent, insertLayerData, inTransientPaint, isDragging, isEnabled, isRendering, isVisible, keyPressed, keyTyped, log, mouseDragged, mouseEntered, mouseExited, mousePressed, mouseReleased, moveLayerDown, moveLayerUp, processDrag, removeAreaChangeListener, removeHighlightChangeListener, removeLayerChangeListener, removeSelectionChangeListener, removeStateChangeListener, requestCurrentDataForLayer, setBBoxImageFromZoomAction, setComponentLocale, setData, setEnabled, setLayerData, setLayerFilters, setLayerPosition, setLayerStyle, setMapArea, setOGisComponent, setRasterLayersVisibilityExclusion, setRenderers, setSelectionByID, setSelectionLayer, setSelectionValues, setVisible, updateLayerData, updateSelectedData, updateSelectionLayer, zoomToMaxLevel, zoomToMinLevel
 
Methods inherited from class javax.swing.JPanel
getAccessibleContext, getUI, getUIClassID, paramString, setUI, updateUI
 
Methods inherited from class javax.swing.JComponent
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, isDoubleBuffered, isLightweightComponent, isManagingFocus, isOpaque, isOptimizedDrawingEnabled, isPaintingForPrint, isPaintingTile, isRequestFocusEnabled, isValidateRoot, paint, paintBorder, paintChildren, 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, setFocusTraversalKeys, setFont, setForeground, setInheritsPopupMenu, setInputMap, setInputVerifier, setMaximumSize, setMinimumSize, setNextFocusableComponent, setOpaque, setPreferredSize, setRequestFocusEnabled, setToolTipText, setTransferHandler, setUI, setVerifyInputWhenFocusTarget, unregisterKeyboardAction, update
 
Methods inherited from class java.awt.Container
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, transferFocusBackward, transferFocusDownCycle, validate, validateTree
 
Methods inherited from class java.awt.Component
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, hide, imageUpdate, inside, isBackgroundSet, isCursorSet, isDisplayable, isFocusable, isFocusOwner, isFocusTraversable, isFontSet, isForegroundSet, isLightweight, isMaximumSizeSet, isMinimumSizeSet, isPreferredSizeSet, isShowing, isValid, 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, setDropTarget, setFocusable, setFocusTraversalKeysEnabled, setIgnoreRepaint, setLocale, setLocation, setLocation, setName, setSize, setSize, show, show, size, toString, transferFocus, transferFocusUpCycle
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface com.ontimize.util.gis.client.interfaces.IGisEditionViewer
addEditionChangeListener, removeEditionChangeListener, setEditionData, setEditionLayer, setInvalidEditionButtons
 
Methods inherited from interface com.ontimize.util.gis.client.interfaces.IGisSelectionViewer
addHighlightChangeListener, addSelectionChangeListener, expandSelectionByDistance, getSelectedData, getSelectionLayer, removeHighlightChangeListener, removeSelectionChangeListener, setSelectionByID, setSelectionLayer, setSelectionValues
 
Methods inherited from interface com.ontimize.util.gis.client.interfaces.IGisViewer
addAreaChangeListener, addLayerChangeListener, addStateChangeListener, applyFilters, centerOnPoint, centerView, centerViewOnEnvelope, changeCRS, cleanSelectedData, deleteLayerData, disableMouseListeners, enableMouseListeners, forceExternalRepaint, getActualZoomArea, getBackground, getCRS, getCursorLocation, getDefaultRenderer, getGisClientUtilities, getLayer, getLayerRenderer, getLayersConfigurationId, getLayersList, getMapArea, getOGisComponent, getPixelSize, getResourceBundle, getState, getViewerPreferences, getZoomState, insertLayerData, inTransientPaint, isDragging, isEnabled, isRendering, isVisible, removeAreaChangeListener, removeLayerChangeListener, removeStateChangeListener, requestCurrentData, requestCurrentData, requestCurrentDataForLayer, setEnabled, setLayerFilters, setLayersConfigurationId, setMapArea, setOGisComponent, setState, setVisible, updateLayerData, zoomToMaxLevel, zoomToMinLevel
 
Methods inherited from interface com.ontimize.util.gis.client.interfaces.IGisDataRequester
setData
 
Methods inherited from interface java.awt.event.KeyListener
keyPressed, keyTyped
 
Methods inherited from interface com.ontimize.util.gis.client.interfaces.IGisLayerUtilities
addNewLayer, getLayerData, getLayerStyle, getMapAreaLayerData, moveLayerDown, moveLayerUp, setLayerData, setLayerDefinition, setLayerPosition, setLayerStyle, setLayerVisible
 
Methods inherited from interface java.awt.event.MouseListener
mouseEntered, mouseExited, mousePressed, mouseReleased
 
Methods inherited from interface java.awt.event.MouseMotionListener
mouseDragged
 
Methods inherited from interface com.ontimize.util.gis.client.events.AreaChangeListener
areaChanged
 
Methods inherited from interface com.ontimize.gui.i18n.Internationalization
getTextsToTranslate, setComponentLocale, setResourceBundle
 
Methods inherited from interface java.awt.event.ComponentListener
componentHidden, componentMoved, componentShown
 

Field Detail

PREFERENCE_SELECTOR_LAYERS

protected static final java.lang.String PREFERENCE_SELECTOR_LAYERS
See Also:
Constant Field Values

PREFERENCE_SELECTOR_TIPS

protected static final java.lang.String PREFERENCE_SELECTOR_TIPS
See Also:
Constant Field Values

openElementAfterDoubleClick

protected static boolean openElementAfterDoubleClick

hideSelectorAfterClick

protected static boolean hideSelectorAfterClick

openData

protected boolean openData

multiSelectedData

java.util.Hashtable<java.lang.String,java.util.List> multiSelectedData
This element stores the group of elements to show in the advance selector


prevSelectorState

protected int prevSelectorState

translucentState

protected float translucentState
Transparency level used in animations


transparent

protected boolean transparent

translucentAnim

protected org.jdesktop.animation.timing.Animator translucentAnim
Transparency animator


transTarget

org.jdesktop.animation.timing.TimingTarget transTarget

selectortAnim

protected org.jdesktop.animation.timing.Animator selectortAnim
Selector expansion animator


selectorTarget

org.jdesktop.animation.timing.TimingTarget selectorTarget

selectorCenterPoint

com.vividsolutions.jts.geom.Point selectorCenterPoint
Center point of the multiple elements selector


separate

protected boolean separate

transition

protected boolean transition

locsList

protected java.util.List<int[]> locsList

highlightId

protected int highlightId

selectedId

protected int selectedId

gSelectedData

protected java.util.List<java.util.Hashtable> gSelectedData

highlightLayerName

protected java.lang.String highlightLayerName

highLightColor

protected static java.awt.Color highLightColor
Fill color for highlighted elements on selector


highLightBorderColor

protected static java.awt.Color highLightBorderColor
Border color for highlighted elements on selector


selectedColor

protected static java.awt.Color selectedColor
Fill color for selected elements on selector


selectedBorderColor

protected static java.awt.Color selectedBorderColor
Border color for selected elements on selector


transparencyColor

protected static java.awt.Color transparencyColor
Set the selector background transparency color


maxTransparencyLevel

protected static float maxTransparencyLevel
Maximum transparency level for the selector background


maxSelRadius

protected static double maxSelRadius
Maximum radius in pixels for the selector


maxElementRadius

protected static int maxElementRadius
Maximum radius in pixels for the selector


minElementRadius

protected static int minElementRadius
Maximum radius in pixels for the selector


transTime

protected static int transTime
Transparency animation time


selectorTime

protected static int selectorTime
Selector animation time


paintSelectedDataOver

protected boolean paintSelectedDataOver
Value used to indicate if the map panel has to paint selected data from a hidden element


prevSelRadius

protected double prevSelRadius

firstPosX

int firstPosX

firstPosY

int firstPosY

mulIt

java.util.Iterator<java.lang.String> mulIt

actualLayer

IGisLayer actualLayer

totalObjects

int totalObjects

actualObject

int actualObject

tempList

java.util.List<java.util.Hashtable> tempList

selectorLayersList

protected java.util.Vector<java.lang.String> selectorLayersList

selectorLayersTipField

protected java.util.Vector<java.lang.String> selectorLayersTipField

selectorTips

protected java.util.Hashtable<java.lang.String,java.lang.String> selectorTips
Constructor Detail

ParallelThreadSelectorGisViewer

public ParallelThreadSelectorGisViewer()

ParallelThreadSelectorGisViewer

public ParallelThreadSelectorGisViewer(java.util.Hashtable parameters)
Method Detail

init

public void init(java.lang.Object initParameters)
Description copied from interface: IGisViewer
Init the gis viewer with the given parameters

Specified by:
init in interface IGisViewer
Overrides:
init in class ParallelThreadGisViewer
Parameters:
initParameters - Parameters for the gisViewer initialization

setViewerPreferences

public void setViewerPreferences(java.util.Hashtable<java.lang.String,java.lang.Object> preferences)
Description copied from interface: IGisViewer
Set the viewer preferences

Specified by:
setViewerPreferences in interface IGisViewer
Overrides:
setViewerPreferences in class ParallelThreadEditionGisViewer
Parameters:
preferences - Preferences parameters: bounding box, coordinate reference system (crs), background color...

mouseMoved

public void mouseMoved(java.awt.event.MouseEvent e)
Specified by:
mouseMoved in interface java.awt.event.MouseMotionListener
Overrides:
mouseMoved in class ParallelThreadGisViewer

buildSelectorAnim

protected void buildSelectorAnim()
Build the selector expansion/collapse animator


updateLocsList

protected java.util.List<int[]> updateLocsList()
Updates the elements location list on selector using the maximum radius value

Returns:
Locations list

buildTransAnim

protected void buildTransAnim()
Build the selector transparency animator


setGSelection

protected void setGSelection()

fireSelectionListeners

protected void fireSelectionListeners()
Description copied from class: ParallelThreadGisViewer
Fire the selection change listeners added to the gis viewer

Overrides:
fireSelectionListeners in class ParallelThreadGisViewer

updateSelectedDataOnPoint

protected void updateSelectedDataOnPoint(com.vividsolutions.jts.geom.Geometry interestPoint,
                                         double pixelSize)
Description copied from class: ParallelThreadGisViewer
Update the actually selected elements for the given location

Overrides:
updateSelectedDataOnPoint in class ParallelThreadGisViewer
Parameters:
interestPoint - Interest location
pixelSize - Gis viewer pixel resolution in units-per-pixel

mouseWheelMoved

public void mouseWheelMoved(java.awt.event.MouseWheelEvent e)
Specified by:
mouseWheelMoved in interface java.awt.event.MouseWheelListener
Overrides:
mouseWheelMoved in class ParallelThreadGisViewer

mouseClicked

public void mouseClicked(java.awt.event.MouseEvent e)
Specified by:
mouseClicked in interface java.awt.event.MouseListener
Overrides:
mouseClicked in class ParallelThreadGisViewer

keyReleased

public void keyReleased(java.awt.event.KeyEvent ev)
Specified by:
keyReleased in interface java.awt.event.KeyListener
Overrides:
keyReleased in class ParallelThreadGisViewer

hideSelector

public void hideSelector()

paintComponent

public void paintComponent(java.awt.Graphics g)
Overrides:
paintComponent in class ParallelThreadEditionGisViewer

paintBasicGis

protected void paintBasicGis(java.awt.Graphics g)
Paint the basic gis elements, method used for painting on states different from the selector state (This is a copy of the paintComponent(Graphics g) from the EditionGisViewer class


paintGSelector

protected void paintGSelector(java.awt.Graphics2D g,
                              double radius)
Method to paint the multiple elements selector in the given graphics component

Parameters:
g - Graphics to paint the selector on
radius - Selector radius in pixels

updateHighlightedDataOnPoint

protected void updateHighlightedDataOnPoint(com.vividsolutions.jts.geom.Geometry interestPoint,
                                            double pixelSize)
Description copied from class: ParallelThreadGisViewer
Update the actually highlighted elements for the given location

Overrides:
updateHighlightedDataOnPoint in class ParallelThreadGisViewer
Parameters:
interestPoint - Interest location
pixelSize - Gis viewer pixel resolution in units-per-pixel

componentResized

public void componentResized(java.awt.event.ComponentEvent ev)
Specified by:
componentResized in interface java.awt.event.ComponentListener
Overrides:
componentResized in class ParallelThreadGisViewer

enableInnerMouseListeners

protected void enableInnerMouseListeners()

disableInnerMouseListeners

protected void disableInnerMouseListeners()

fireHighLight

protected void fireHighLight()
Overrides:
fireHighLight in class ParallelThreadGisViewer

reloadViewer

public void reloadViewer()
Description copied from interface: IGisViewer
Reloads the map viewer, clearing all the data caches, and going to the initial state

Specified by:
reloadViewer in interface IGisViewer
Overrides:
reloadViewer in class ParallelThreadEditionGisViewer

waitWhileRendering

protected void waitWhileRendering()

processMultipleSelectionData

protected java.util.Hashtable<java.lang.String,java.util.List> processMultipleSelectionData(java.util.Hashtable<java.lang.String,java.util.List> selectedData,
                                                                                            com.vividsolutions.jts.geom.Geometry interestPoint)

deleteDuplicateValues

protected java.util.Hashtable<java.lang.String,java.util.List> deleteDuplicateValues(java.util.Hashtable<java.lang.String,java.util.List> selectedData)