|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjava.awt.Component
java.awt.Container
javax.swing.JComponent
javax.swing.JPanel
com.ontimize.util.gis.client.viewer.ParallelThreadGisViewer
com.ontimize.util.gis.client.viewer.ParallelThreadEditionGisViewer
com.ontimize.util.gis.client.viewer.ParallelThreadSelectorGisViewer
public class ParallelThreadSelectorGisViewer
| 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 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.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 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.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 |
|---|
protected static final java.lang.String PREFERENCE_SELECTOR_LAYERS
protected static final java.lang.String PREFERENCE_SELECTOR_TIPS
protected static boolean openElementAfterDoubleClick
protected static boolean hideSelectorAfterClick
protected boolean openData
java.util.Hashtable<java.lang.String,java.util.List> multiSelectedData
protected int prevSelectorState
protected float translucentState
protected boolean transparent
protected org.jdesktop.animation.timing.Animator translucentAnim
org.jdesktop.animation.timing.TimingTarget transTarget
protected org.jdesktop.animation.timing.Animator selectortAnim
org.jdesktop.animation.timing.TimingTarget selectorTarget
com.vividsolutions.jts.geom.Point selectorCenterPoint
protected boolean separate
protected boolean transition
protected java.util.List<int[]> locsList
protected int highlightId
protected int selectedId
protected java.util.List<java.util.Hashtable> gSelectedData
protected java.lang.String highlightLayerName
protected static java.awt.Color highLightColor
protected static java.awt.Color highLightBorderColor
protected static java.awt.Color selectedColor
protected static java.awt.Color selectedBorderColor
protected static java.awt.Color transparencyColor
protected static float maxTransparencyLevel
protected static double maxSelRadius
protected static int maxElementRadius
protected static int minElementRadius
protected static int transTime
protected static int selectorTime
protected boolean paintSelectedDataOver
protected double prevSelRadius
int firstPosX
int firstPosY
java.util.Iterator<java.lang.String> mulIt
IGisLayer actualLayer
int totalObjects
int actualObject
java.util.List<java.util.Hashtable> tempList
protected java.util.Vector<java.lang.String> selectorLayersList
protected java.util.Vector<java.lang.String> selectorLayersTipField
protected java.util.Hashtable<java.lang.String,java.lang.String> selectorTips
| Constructor Detail |
|---|
public ParallelThreadSelectorGisViewer()
public ParallelThreadSelectorGisViewer(java.util.Hashtable parameters)
| Method Detail |
|---|
public void init(java.lang.Object initParameters)
IGisViewer
init in interface IGisViewerinit in class ParallelThreadGisViewerinitParameters - Parameters for the gisViewer initializationpublic void setViewerPreferences(java.util.Hashtable<java.lang.String,java.lang.Object> preferences)
IGisViewer
setViewerPreferences in interface IGisViewersetViewerPreferences in class ParallelThreadEditionGisViewerpreferences - Preferences parameters: bounding box, coordinate reference
system (crs), background color...public void mouseMoved(java.awt.event.MouseEvent e)
mouseMoved in interface java.awt.event.MouseMotionListenermouseMoved in class ParallelThreadGisViewerprotected void buildSelectorAnim()
protected java.util.List<int[]> updateLocsList()
protected void buildTransAnim()
protected void setGSelection()
protected void fireSelectionListeners()
ParallelThreadGisViewer
fireSelectionListeners in class ParallelThreadGisViewer
protected void updateSelectedDataOnPoint(com.vividsolutions.jts.geom.Geometry interestPoint,
double pixelSize)
ParallelThreadGisViewer
updateSelectedDataOnPoint in class ParallelThreadGisViewerinterestPoint - Interest locationpixelSize - Gis viewer pixel resolution in units-per-pixelpublic void mouseWheelMoved(java.awt.event.MouseWheelEvent e)
mouseWheelMoved in interface java.awt.event.MouseWheelListenermouseWheelMoved in class ParallelThreadGisViewerpublic void mouseClicked(java.awt.event.MouseEvent e)
mouseClicked in interface java.awt.event.MouseListenermouseClicked in class ParallelThreadGisViewerpublic void keyReleased(java.awt.event.KeyEvent ev)
keyReleased in interface java.awt.event.KeyListenerkeyReleased in class ParallelThreadGisViewerpublic void hideSelector()
public void paintComponent(java.awt.Graphics g)
paintComponent in class ParallelThreadEditionGisViewerprotected void paintBasicGis(java.awt.Graphics g)
protected void paintGSelector(java.awt.Graphics2D g,
double radius)
g - Graphics to paint the selector onradius - Selector radius in pixels
protected void updateHighlightedDataOnPoint(com.vividsolutions.jts.geom.Geometry interestPoint,
double pixelSize)
ParallelThreadGisViewer
updateHighlightedDataOnPoint in class ParallelThreadGisViewerinterestPoint - Interest locationpixelSize - Gis viewer pixel resolution in units-per-pixelpublic void componentResized(java.awt.event.ComponentEvent ev)
componentResized in interface java.awt.event.ComponentListenercomponentResized in class ParallelThreadGisViewerprotected void enableInnerMouseListeners()
protected void disableInnerMouseListeners()
protected void fireHighLight()
fireHighLight in class ParallelThreadGisViewerpublic void reloadViewer()
IGisViewer
reloadViewer in interface IGisViewerreloadViewer in class ParallelThreadEditionGisViewerprotected void waitWhileRendering()
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)
protected java.util.Hashtable<java.lang.String,java.util.List> deleteDuplicateValues(java.util.Hashtable<java.lang.String,java.util.List> selectedData)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||