|
||||||||||
| 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
public class ParallelThreadGisViewer
| Nested Class Summary | |
|---|---|
(package private) class |
ParallelThreadGisViewer.InternalRenderer
|
protected class |
ParallelThreadGisViewer.RepaintThread
Thread used to repaint the gis viewer when possible |
| 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 | |
|---|---|
protected com.vividsolutions.jts.geom.Envelope |
actualZoomArea
|
protected java.util.HashMap<java.lang.String,IGisRenderer> |
alternativeRenderers
|
protected boolean |
animatedViewer
|
protected static int |
animRes
|
protected static int |
animTime
|
protected java.util.List<AreaChangeListener> |
areaChangeListeners
|
protected java.awt.Color |
backgroundColor
|
protected java.awt.Graphics2D |
bboxGraphics
|
protected java.awt.image.BufferedImage |
bboxImage
The base image of the map viewer |
protected static java.awt.image.BufferedImageOp |
blur
|
protected static float[] |
blurKernel
|
protected com.vividsolutions.jts.geom.Envelope |
boundingBox
The area of the map to draw |
protected static float |
centerWeight
|
protected boolean |
changed
|
protected IGisConfigurationParameters |
configurationParameters
|
protected boolean |
controlPressed
|
protected org.opengis.referencing.crs.CoordinateReferenceSystem |
crs
|
protected java.lang.String |
crsCode
|
protected java.util.HashMap<java.lang.Object,java.util.List<java.util.Hashtable>> |
currentData
|
protected static boolean |
DEBUG
|
protected java.awt.Rectangle |
dr
|
protected boolean |
enabled
|
protected java.util.Hashtable<java.lang.String,java.lang.Object> |
filters
|
protected boolean |
firstTime
|
protected static com.vividsolutions.jts.geom.GeometryFactory |
gf
|
protected IGisClientManager |
gisClientManager
|
protected IOGisComponent |
gisComponent
|
protected java.util.ArrayList<HighlightChangeListener> |
highlightChangeListeners
|
protected java.util.List<java.util.Hashtable> |
highlightData
|
protected IGisInternalRenderer |
internalRender
|
protected int |
lastInsertedIndex
|
protected int |
lastX
|
protected int |
lastY
|
protected java.util.List<IGisLayer> |
layers
|
protected java.util.List<LayerChangeListener> |
layersChangeListeners
|
protected java.lang.Object |
layersConfigurationId
|
protected java.lang.String[] |
layersNotVisible
|
protected java.lang.String[] |
layersOrder
|
protected java.lang.String[] |
layersVisible
|
protected double |
maximumZoomLevel
|
protected boolean |
maximumZoomLevelEnabled
Enables/disables the maximum zoom level property |
(package private) PopupMenuPanel |
menuPanel
|
protected double |
minimumZoomLevel
|
protected boolean |
minimumZoomLevelEnabled
Enables/disables the minimum zoom level property |
protected boolean |
mouseDragging
|
protected boolean |
mouseIn
|
protected boolean |
mouseListenerDisabled
|
(package private) java.awt.event.MouseListener[] |
mouseListeners
Array to store and disable mouselistener during selector animations |
(package private) java.awt.event.MouseMotionListener[] |
mouseMotionListeners
|
(package private) java.awt.event.MouseWheelListener[] |
mouseWheelListeners
|
protected static float |
neighbourWeight
|
protected com.vividsolutions.jts.geom.Envelope |
newZoomArea
|
protected java.awt.Rectangle |
newZoomBounds
|
protected int |
numLayers
|
protected java.awt.Rectangle |
oldRect
Size of the viewer panel last time we painted |
protected boolean |
paintZoomBox
|
protected java.awt.image.BufferedImage |
panelImage
|
protected int |
pendingMouseWheelClicks
|
protected double |
pixelSize
|
protected com.vividsolutions.jts.geom.Envelope |
prevBoundingBox
The last area of the map |
protected java.util.List<java.util.Hashtable> |
prevHighlightData
|
protected boolean |
rasterVisibilityExclusion
Enables/disables the raster layers exclusive visibility |
protected IGisRenderer |
renderer
|
protected java.lang.String |
rendererClassName
Map painting related parameters |
protected boolean |
renderFinished
|
protected boolean |
rendering
|
protected static boolean |
repaintMessages
|
protected ParallelThreadGisViewer.RepaintThread |
repaintThread
|
protected java.util.ResourceBundle |
res
|
protected java.util.List<java.util.Hashtable> |
selectedData
|
protected java.util.ArrayList<SelectionChangeListener> |
selectionChangeListeners
|
protected IGisLayer |
selectionLayer
|
protected double |
selectionPrecision
|
protected IGisStyleDefinition |
selectionStyle
|
protected boolean |
shiftPressed
|
protected int |
startX
|
protected int |
startY
|
protected int |
state
|
protected java.util.List<StateChangeListener> |
stateChangeListeners
|
protected java.lang.StringBuilder |
strBuilder
|
protected java.awt.image.BufferedImage |
tempImage
|
protected java.util.concurrent.ExecutorService |
tpesRender
|
protected boolean |
transientPaint
|
protected boolean |
visible
|
protected long |
waitMillisBetweenThreads
|
protected org.jdesktop.animation.timing.Animator |
zoomAnim
|
protected double |
zoomInFactor
|
protected boolean |
zoomOnClick
Enables/disables zooming when the user double-clicks on the panel |
protected double |
zoomOutFactor
|
protected int[] |
zoomPos
|
protected int |
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.gui.i18n.Internationalization |
|---|
DEBUG_LANGUAGE |
| Fields inherited from interface java.awt.image.ImageObserver |
|---|
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH |
| Constructor Summary | |
|---|---|
ParallelThreadGisViewer()
|
|
ParallelThreadGisViewer(java.util.Hashtable parameters)
|
|
| Method Summary | |
|---|---|
void |
addAreaChangeListener(AreaChangeListener listener)
Adds a listener for area change events |
void |
addHighlightChangeListener(HighlightChangeListener listener)
Adds a listener for data highlight change events |
void |
addLayerChangeListener(LayerChangeListener listener)
Adds a listener for layers change events |
void |
addNewLayer(IGisLayer layerDefinition)
Adds a new layer to the current viewer using the given layer definition |
void |
addSelectionChangeListener(SelectionChangeListener listener)
Adds a listener for data selection change events |
void |
addStateChangeListener(StateChangeListener listener)
Adds a listener for viewer state change events |
protected void |
adjustBoundingBoxToLayer(int layerIndex)
Adjust the viewer actual bounding box to maximum bounding box of an existing layer or all layers |
void |
applyFilters(java.lang.Object appliedFilters)
Apply the given filters appliedFilters to the gis map
panel |
void |
areaChanged(AreaChangeEvent event)
Invoked when the gis viewer area changes |
protected void |
autoUpdateCRS()
Update the viewer coordinate reference system if it actually has no crs value |
protected void |
autoZoomOnPoint(double[] location,
boolean ZoomIn,
double newZoomLevel)
|
void |
centerOnPoint(double xCoord,
double yCoord)
Centers the view of the gis panel on the given location |
void |
centerView(java.awt.Rectangle panelBounds)
Centers the view of the gis panel on the given bounding box |
void |
centerViewOnEnvelope(com.vividsolutions.jts.geom.Envelope panelBounds)
Centers the view of the gis panel on the given bounding box |
void |
changeCRS(java.lang.Object newCRS)
Change the gis viewer coordinate reference system |
protected boolean |
checkIfRecordIsInCurrentData(java.util.Hashtable recordToInsert,
java.util.List<java.util.Hashtable> actualData)
Check if the given record is in the data contained by the gis viewer. |
protected boolean |
checkIfRecordIsInCurrentDataByID(java.util.Hashtable<java.lang.String,java.lang.Object> recordToInsert,
java.util.List<java.util.Hashtable> actualData,
IGisLayer actualLayer)
Check if the given record is in the data contained by the gis viewer. |
protected boolean |
checkValidityForSelection(java.util.Hashtable recordData,
IGisLayer layer)
|
void |
cleanSelectedData()
Clear the actual selected elements list |
void |
componentHidden(java.awt.event.ComponentEvent ev)
|
void |
componentMoved(java.awt.event.ComponentEvent ev)
|
void |
componentResized(java.awt.event.ComponentEvent ev)
|
void |
componentShown(java.awt.event.ComponentEvent ev)
|
protected AreaChangeEvent |
createAreaChangeEvent()
Create and AreaChangeEvent based on the actual map viewer bounding box |
protected void |
deleteDataInsideBBox(com.vividsolutions.jts.geom.Envelope boundingBox,
java.lang.Object layerAttr)
Delete all the elements for the layer that intersects with the given bounding box |
protected void |
deleteFilteredData()
Delete all the layers data that is filtered by parent keys |
void |
deleteLayerData(java.lang.Object layerKeys,
java.lang.Object deletedKeys)
Delete the data identified by deletedKeys from the layer
layerId |
protected void |
deleteOuterData()
Delete current data placed out of the panel bounding box |
protected void |
deleteOutFilteredData()
Delete all the filtered data on the gis viewer component |
protected void |
deleteTransparentRecords()
Delete all the data elements corresponding to transparent WMS datasources that are actually out of focus (its pixel size is bigger than the map viewer actual pixel size) |
void |
disableMouseListeners()
Disables all the map panel mouse listener, this method is used to avoid mouse events handling during animations |
protected void |
drawRectangle(java.awt.Graphics graphics)
Draw a black retangle on the screen using the initial and final mouse coordinates indicated on the integer values (startX, startY) and (lastX, lastY) |
void |
enableMouseListeners()
Enables all the map panel mouse listeners, this method is used to restore the map panel status once the animations finished |
void |
expandSelectionByDistance(double distance)
Expands the actual selection by the given distance, adding the new selected elements to the actual selection |
protected void |
fireAreaChangeEvent(AreaChangeEvent event)
Fire all the area change listeners |
protected void |
fireHighLight()
|
protected void |
fireLayerChangeEvent(LayerChangeEvent event)
Fire all the layer change listeners |
protected void |
fireSelectionListeners()
Fire the selection change listeners added to the gis viewer |
void |
forceExternalRepaint(java.lang.Object source)
Forces the repaint of the gis map viewer from a external class |
void |
forceRepaint()
Force the repaint of the gis viewer |
com.vividsolutions.jts.geom.Envelope |
getActualZoomArea()
Get the actual map area when the viewer is actually zooming in or out |
java.lang.Object |
getCRS()
Get current map panel Coordinate Reference System |
double[] |
getCursorLocation(java.awt.event.MouseEvent ev)
Gets the actual cursor location in map coordinates |
IGisRenderer |
getDefaultRenderer()
Get the default map panel renderer |
java.lang.Object |
getGisClientUtilities()
Get a reference to the GisClientManager interface |
java.lang.Object |
getLayer(java.lang.Object layerId)
Get the requested layer reference |
java.util.List<java.util.Hashtable> |
getLayerData(java.lang.String layerAttribute)
Gets the actual layer data for the given layer |
IGisRenderer |
getLayerRenderer(java.lang.String layerAttr)
Get the renderer related to the given lauer |
java.lang.Object |
getLayersConfigurationId()
Get the layers configuration identifier |
java.util.List<IGisLayer> |
getLayersList()
Get the list of viewer layers |
java.lang.Object |
getLayerStyle(java.lang.Object layerId)
Get the layer layerId style definition |
com.vividsolutions.jts.geom.Envelope |
getMapArea()
Returns the actual map bounding box |
java.util.List<java.util.Hashtable> |
getMapAreaLayerData(java.lang.String layerAttribute)
Gets the actual painted layer data for the given layer |
IOGisComponent |
getOGisComponent()
Return a reference for the gis viewer ontimize gis component |
double |
getPixelSize()
Gets the actual gis viewer pixel size in map units per pixel |
java.util.ResourceBundle |
getResourceBundle()
|
java.lang.Object |
getSelectedData()
Get actually selected data from gis viewer panel |
IGisLayer |
getSelectionLayer()
Gets the map viewer selection layer |
int |
getState()
Gets the actual state of the gis viewer |
java.util.Vector |
getTextsToTranslate()
|
java.lang.Object |
getViewerPreferences()
Get the gis map viewer preferences |
int |
getZoomState()
Gets the actual map viewer zoom state. |
void |
init(java.lang.Object initParameters)
Init the gis viewer with the given parameters |
protected void |
insertDataIntoCurrent(java.lang.String layerName,
java.lang.Object requestedData,
com.vividsolutions.jts.geom.Envelope dataBBox,
java.lang.Double dataPixelSize)
Insert the given data into the gis viewer actually contained data |
void |
insertLayerData(java.lang.Object layerKeys,
java.lang.Object insertedValues)
Insert the given data insertedValues into the layer
indentified by layerId |
boolean |
inTransientPaint()
Checks if the gis viewer is actually painting data form the second buffer image |
boolean |
isDragging()
Check is the mouse is actual dragging the map viewer |
boolean |
isEnabled()
Get the gis viewer enabled state |
boolean |
isRendering()
Check if the map viewer is actually on a render process |
boolean |
isVisible()
Get the gis viewer visible state |
void |
keyPressed(java.awt.event.KeyEvent ev)
|
void |
keyReleased(java.awt.event.KeyEvent ev)
|
void |
keyTyped(java.awt.event.KeyEvent ev)
|
protected void |
log(java.lang.Object o,
int level)
Add a new message to the gis logger |
void |
mouseClicked(java.awt.event.MouseEvent e)
|
void |
mouseDragged(java.awt.event.MouseEvent e)
|
void |
mouseEntered(java.awt.event.MouseEvent e)
|
void |
mouseExited(java.awt.event.MouseEvent e)
|
void |
mouseMoved(java.awt.event.MouseEvent e)
|
void |
mousePressed(java.awt.event.MouseEvent e)
|
void |
mouseReleased(java.awt.event.MouseEvent e)
|
void |
mouseWheelMoved(java.awt.event.MouseWheelEvent e)
|
void |
moveLayerDown(java.lang.Object layerId)
Move the layer down in list |
void |
moveLayerUp(java.lang.Object layerId)
Move the layer up in list |
void |
paintComponent(java.awt.Graphics g)
|
protected void |
processDrag(int x1,
int y1,
int x2,
int y2)
Process the mouse drag event |
void |
reloadViewer()
Reloads the map viewer, clearing all the data caches, and going to the initial state |
void |
removeAreaChangeListener(AreaChangeListener listener)
Removes a listener for viewer area change events |
void |
removeHighlightChangeListener(HighlightChangeListener listener)
Removes a listener for data highlight change events |
void |
removeLayerChangeListener(LayerChangeListener listener)
Removes a listener for viewer layer change events |
void |
removeSelectionChangeListener(SelectionChangeListener listener)
Removes a listener for data selection change events |
void |
removeStateChangeListener(StateChangeListener listener)
Removes a listener for viewer state change events |
void |
requestCurrentData(boolean forceServerQuery)
Force the map panel to refresh the actual displaying data |
void |
requestCurrentData(com.vividsolutions.jts.geom.Envelope[] requestBBoxes,
boolean forceServerQuery)
Force the map panel to refresh the given bounding boxes related data |
void |
requestCurrentDataForLayer(IGisLayer layer,
com.vividsolutions.jts.geom.Envelope[] requestBBoxes,
boolean forceServerQuery)
Force the map panel to refresh the given bounding boxes and layer related data |
protected void |
setBBoxImageFromZoomAction()
Set the actual zooming state map viewer image |
void |
setComponentLocale(java.util.Locale locale)
|
void |
setData(java.lang.Object layerKeys,
java.lang.Object appliedFilters,
java.lang.Object requestedData)
Sets requested data for the layer given by layerKeys and with the filters
defined in appliedFilters |
void |
setEnabled(boolean enabled)
Set the gis viewer enabled |
void |
setLayerData(java.util.List<java.util.Hashtable> layerData,
java.lang.Object layerId)
Sets the layer data to show in the map panel for the given layer. |
void |
setLayerDefinition(IGisLayer layerDefinition)
Update the given layer definition. |
void |
setLayerFilters(java.lang.Object layerAttribute,
java.lang.Object filters)
Set the defined filters for the indicated layer |
void |
setLayerPosition(java.lang.Object layerId,
int position)
Sets the layer position |
void |
setLayersConfigurationId(java.lang.Object layersConfigurationId)
Set the layers configuration assigned to the actual gis viewer |
void |
setLayerStyle(java.lang.Object layerId,
java.lang.Object styleDefinition)
Set the rendering style for the layer layerId |
void |
setLayerVisible(java.lang.Object layerId,
boolean visible)
Set the layer layerId visible |
void |
setMapArea(com.vividsolutions.jts.geom.Envelope mapArea)
Sets the new envelope of the actual map panel. |
void |
setOGisComponent(IOGisComponent gisComponent)
Sets the Ontimize Gis Component for the gis viewer. |
protected void |
setRasterLayersVisibilityExclusion(IGisLayer priorityLayer)
|
protected void |
setRenderers()
Set each layer renderer based on the defined layer parameter "rendererClass" |
void |
setResourceBundle(java.util.ResourceBundle res)
|
void |
setSelectionByID(java.util.List<java.lang.Object> dataIdList,
java.lang.String keyName)
Sets the actual map selected data by defining a list of values |
void |
setSelectionLayer(java.lang.Object layerId)
Sets the main selection layers |
void |
setSelectionValues(java.util.Hashtable values)
Set the values for the actual selection |
void |
setState(int state)
Sets the actual state of the gis viewer |
void |
setViewerPreferences(java.util.Hashtable<java.lang.String,java.lang.Object> preferences)
Set the viewer preferences |
void |
setVisible(boolean visible)
Set the gis viewer visible |
protected void |
updateHighlightedDataOnPoint(com.vividsolutions.jts.geom.Geometry interestPoint,
double pixelSize)
Update the actually highlighted elements for the given location |
void |
updateLayerData(java.lang.Object layerKeys,
java.lang.Object updatedKeys,
java.lang.Object newValues)
Update the data identified by updatedKeys with the values
newValues for the layer layerId |
void |
updateSelectedData(com.vividsolutions.jts.geom.Envelope selectionBBox)
Update the actually selected elements contained by the given rectangle area |
protected void |
updateSelectedDataOnPoint(com.vividsolutions.jts.geom.Geometry interestPoint,
double pixelSize)
Update the actually selected elements for the given location |
protected void |
updateSelectionLayer()
Update the actual selection layer by choosing the latest selectable and visible layer |
protected void |
updateValidLayersInRange()
Checks if all the panel layers are inside their respective maximum and minimum scale ratios |
void |
zoomToMaxLevel()
Method to run a zoom event setting the map resolution to the maximum zoom level |
void |
zoomToMinLevel()
Method to run a zoom event setting the map resolution to the minimum zoom level |
| 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, setCursor, 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.IGisViewer |
|---|
getBackground |
| Field Detail |
|---|
protected boolean mouseIn
protected long waitMillisBetweenThreads
protected boolean rendering
protected boolean renderFinished
protected java.util.concurrent.ExecutorService tpesRender
protected static final boolean DEBUG
protected static final boolean repaintMessages
protected int state
protected final java.lang.StringBuilder strBuilder
protected IGisInternalRenderer internalRender
protected boolean minimumZoomLevelEnabled
protected boolean maximumZoomLevelEnabled
protected double minimumZoomLevel
protected double maximumZoomLevel
protected boolean rasterVisibilityExclusion
protected boolean zoomOnClick
protected java.util.ArrayList<SelectionChangeListener> selectionChangeListeners
protected java.util.ArrayList<HighlightChangeListener> highlightChangeListeners
java.awt.event.MouseListener[] mouseListeners
java.awt.event.MouseMotionListener[] mouseMotionListeners
java.awt.event.MouseWheelListener[] mouseWheelListeners
PopupMenuPanel menuPanel
protected boolean mouseListenerDisabled
protected IGisLayer selectionLayer
protected java.util.List<java.util.Hashtable> selectedData
protected java.util.List<java.util.Hashtable> highlightData
protected java.util.List<java.util.Hashtable> prevHighlightData
protected IGisStyleDefinition selectionStyle
protected final double selectionPrecision
protected IOGisComponent gisComponent
protected IGisClientManager gisClientManager
protected java.lang.Object layersConfigurationId
protected IGisConfigurationParameters configurationParameters
protected java.util.List<IGisLayer> layers
protected int numLayers
protected java.util.Hashtable<java.lang.String,java.lang.Object> filters
protected java.awt.Rectangle dr
protected int lastInsertedIndex
protected java.util.List<AreaChangeListener> areaChangeListeners
protected java.util.List<LayerChangeListener> layersChangeListeners
protected java.util.List<StateChangeListener> stateChangeListeners
protected boolean firstTime
protected boolean controlPressed
protected boolean shiftPressed
protected boolean enabled
protected boolean visible
protected boolean mouseDragging
protected double zoomInFactor
protected double zoomOutFactor
protected boolean transientPaint
protected final ParallelThreadGisViewer.RepaintThread repaintThread
protected static final com.vividsolutions.jts.geom.GeometryFactory gf
protected java.awt.Color backgroundColor
protected java.lang.String[] layersOrder
protected java.lang.String[] layersVisible
protected java.lang.String[] layersNotVisible
protected com.vividsolutions.jts.geom.Envelope boundingBox
protected com.vividsolutions.jts.geom.Envelope prevBoundingBox
protected java.lang.String crsCode
protected org.opengis.referencing.crs.CoordinateReferenceSystem crs
protected java.awt.image.BufferedImage bboxImage
protected java.awt.image.BufferedImage panelImage
protected java.awt.Graphics2D bboxGraphics
protected java.awt.image.BufferedImage tempImage
protected java.lang.String rendererClassName
protected IGisRenderer renderer
protected java.util.HashMap<java.lang.String,IGisRenderer> alternativeRenderers
protected java.awt.Rectangle oldRect
protected double pixelSize
protected boolean changed
protected java.util.HashMap<java.lang.Object,java.util.List<java.util.Hashtable>> currentData
protected java.util.ResourceBundle res
protected int startX
protected int startY
protected int lastX
protected int lastY
protected boolean animatedViewer
protected org.jdesktop.animation.timing.Animator zoomAnim
protected java.awt.Rectangle newZoomBounds
protected com.vividsolutions.jts.geom.Envelope newZoomArea
protected com.vividsolutions.jts.geom.Envelope actualZoomArea
protected boolean paintZoomBox
protected int[] zoomPos
protected int zoomState
protected int pendingMouseWheelClicks
protected static final int animTime
protected static final int animRes
protected static final float centerWeight
protected static final float neighbourWeight
protected static final float[] blurKernel
protected static final java.awt.image.BufferedImageOp blur
| Constructor Detail |
|---|
public ParallelThreadGisViewer()
public ParallelThreadGisViewer(java.util.Hashtable parameters)
| Method Detail |
|---|
public void applyFilters(java.lang.Object appliedFilters)
IGisViewerappliedFilters to the gis map
panel
applyFilters in interface IGisViewerappliedFilters - Filters applied to the map panelpublic void changeCRS(java.lang.Object newCRS)
IGisViewer
changeCRS in interface IGisViewernewCRS - New coordinate reference system for the viewerpublic java.lang.Object getCRS()
IGisViewer
getCRS in interface IGisViewerpublic java.lang.Object getGisClientUtilities()
IGisViewer
getGisClientUtilities in interface IGisViewerpublic java.lang.Object getViewerPreferences()
IGisViewer
getViewerPreferences in interface IGisViewerpublic void init(java.lang.Object initParameters)
IGisViewer
init in interface IGisViewerinitParameters - Parameters for the gisViewer initializationprotected void setBBoxImageFromZoomAction()
public boolean isVisible()
IGisViewer
isVisible in interface IGisViewerisVisible in class java.awt.Componentpublic boolean isEnabled()
IGisViewer
isEnabled in interface IGisViewerisEnabled in class java.awt.Componentpublic void setEnabled(boolean enabled)
IGisViewer
setEnabled in interface IGisViewersetEnabled in class javax.swing.JComponentpublic void setVisible(boolean visible)
IGisViewer
setVisible in interface IGisViewersetVisible in class javax.swing.JComponentpublic void setLayersConfigurationId(java.lang.Object layersConfigurationId)
IGisViewer
setLayersConfigurationId in interface IGisViewerlayersConfigurationId - Identifier for the layers configurationprotected void updateSelectionLayer()
protected void updateValidLayersInRange()
protected void setRenderers()
public void requestCurrentData(com.vividsolutions.jts.geom.Envelope[] requestBBoxes,
boolean forceServerQuery)
IGisViewer
requestCurrentData in interface IGisViewerrequestBBoxes - List of bounding boxes object of refreshforceServerQuery - If enabled forces the panel to request the data to the serverpublic void requestCurrentData(boolean forceServerQuery)
IGisViewer
requestCurrentData in interface IGisViewerforceServerQuery - If enabled forces the panel to request the data to the server
public void requestCurrentDataForLayer(IGisLayer layer,
com.vividsolutions.jts.geom.Envelope[] requestBBoxes,
boolean forceServerQuery)
IGisViewer
requestCurrentDataForLayer in interface IGisViewerlayer - Gis layer to refresh datarequestBBoxes - List of bounding boxes object of refreshforceServerQuery - If enabled forces the panel to request the data to the serverprotected void adjustBoundingBoxToLayer(int layerIndex)
layerIndex - Interest layer index, if layerIndex then adjust the bounding box to the maximum extension
of all existing layerspublic void setViewerPreferences(java.util.Hashtable<java.lang.String,java.lang.Object> preferences)
IGisViewer
setViewerPreferences in interface IGisViewerpreferences - Preferences parameters: bounding box, coordinate reference
system (crs), background color...public void paintComponent(java.awt.Graphics g)
paintComponent in class javax.swing.JComponentpublic void setMapArea(com.vividsolutions.jts.geom.Envelope mapArea)
IGisViewercenterView method instead of this one.
setMapArea in interface IGisViewermapArea - New map bounding boxpublic com.vividsolutions.jts.geom.Envelope getMapArea()
IGisViewer
getMapArea in interface IGisViewerprotected AreaChangeEvent createAreaChangeEvent()
protected void deleteOutFilteredData()
protected void deleteOuterData()
protected void deleteTransparentRecords()
public void setOGisComponent(IOGisComponent gisComponent)
IGisViewer
setOGisComponent in interface IGisViewergisComponent - Ontimize Gis Component interface
public void setData(java.lang.Object layerKeys,
java.lang.Object appliedFilters,
java.lang.Object requestedData)
IGisDataRequesterlayerKeys and with the filters
defined in appliedFilters
setData in interface IGisDataRequesterlayerKeys - Gis layer referenceappliedFilters - Previous query applied filtersrequestedData - Requested data
protected void insertDataIntoCurrent(java.lang.String layerName,
java.lang.Object requestedData,
com.vividsolutions.jts.geom.Envelope dataBBox,
java.lang.Double dataPixelSize)
layerName - Layer namerequestedData - Data to insertdataBBox - Data rectangle areadataPixelSize - Data related pixel size
protected boolean checkIfRecordIsInCurrentData(java.util.Hashtable recordToInsert,
java.util.List<java.util.Hashtable> actualData)
recordToInsert - Record to insert in the viewer componentactualData - Actual data contained by the viewer
protected boolean checkIfRecordIsInCurrentDataByID(java.util.Hashtable<java.lang.String,java.lang.Object> recordToInsert,
java.util.List<java.util.Hashtable> actualData,
IGisLayer actualLayer)
recordToInsert - Record to insert in the viewer componentactualData - Actual data contained by the viewer
public void mouseDragged(java.awt.event.MouseEvent e)
mouseDragged in interface java.awt.event.MouseMotionListenerprotected void drawRectangle(java.awt.Graphics graphics)
graphics - Gis viewer graphics componentpublic void mouseReleased(java.awt.event.MouseEvent e)
mouseReleased in interface java.awt.event.MouseListener
protected void processDrag(int x1,
int y1,
int x2,
int y2)
x1 - Initial X mouse locationy1 - Initial Y mouse locationx2 - Final X mouse locationy2 - Final Y mouse locationpublic void mousePressed(java.awt.event.MouseEvent e)
mousePressed in interface java.awt.event.MouseListenerpublic void mouseMoved(java.awt.event.MouseEvent e)
mouseMoved in interface java.awt.event.MouseMotionListenerpublic void mouseClicked(java.awt.event.MouseEvent e)
mouseClicked in interface java.awt.event.MouseListenerpublic void mouseEntered(java.awt.event.MouseEvent e)
mouseEntered in interface java.awt.event.MouseListenerpublic void mouseExited(java.awt.event.MouseEvent e)
mouseExited in interface java.awt.event.MouseListenerpublic void mouseWheelMoved(java.awt.event.MouseWheelEvent e)
mouseWheelMoved in interface java.awt.event.MouseWheelListenerpublic int getState()
IGisViewer
getState in interface IGisViewerpublic void setState(int state)
IGisViewer
setState in interface IGisViewerstate - New gis viewer statepublic java.lang.Object getLayersConfigurationId()
IGisViewer
getLayersConfigurationId in interface IGisViewerpublic boolean inTransientPaint()
IGisViewer
inTransientPaint in interface IGisViewerpublic java.lang.Object getLayerStyle(java.lang.Object layerId)
IGisLayerUtilitieslayerId style definition
getLayerStyle in interface IGisLayerUtilitieslayerId - Layer identifier
public void setLayerStyle(java.lang.Object layerId,
java.lang.Object styleDefinition)
IGisLayerUtilitieslayerId
setLayerStyle in interface IGisLayerUtilitieslayerId - Layer identifierstyleDefinition - Style definition for the layer
public void setLayerVisible(java.lang.Object layerId,
boolean visible)
IGisLayerUtilitieslayerId visible
setLayerVisible in interface IGisLayerUtilitieslayerId - Layer identifierpublic void forceRepaint()
public void addAreaChangeListener(AreaChangeListener listener)
IGisViewer
addAreaChangeListener in interface IGisViewerlistener - Area change events listener to addpublic void removeAreaChangeListener(AreaChangeListener listener)
IGisViewer
removeAreaChangeListener in interface IGisViewerlistener - Viewer area change events listener to removeprotected void fireAreaChangeEvent(AreaChangeEvent event)
event - Area change eventpublic void addLayerChangeListener(LayerChangeListener listener)
IGisViewer
addLayerChangeListener in interface IGisViewerlistener - Layers change events listener to addpublic void removeLayerChangeListener(LayerChangeListener listener)
IGisViewer
removeLayerChangeListener in interface IGisViewerlistener - Viewer layer change events listener to removeprotected void fireLayerChangeEvent(LayerChangeEvent event)
event - Layer change eventpublic void areaChanged(AreaChangeEvent event)
AreaChangeListener
areaChanged in interface AreaChangeListenerevent - Gis viewer area change event containing the actual gis viewer
panel area
public void centerOnPoint(double xCoord,
double yCoord)
IGisViewer
centerOnPoint in interface IGisViewerxCoord - X or longitude coordinate of the desired center locationyCoord - Y or longitude coordinate of the desired center locationpublic void keyReleased(java.awt.event.KeyEvent ev)
keyReleased in interface java.awt.event.KeyListenerpublic void keyTyped(java.awt.event.KeyEvent ev)
keyTyped in interface java.awt.event.KeyListenerpublic IOGisComponent getOGisComponent()
IGisViewer
getOGisComponent in interface IGisViewerpublic java.util.Vector getTextsToTranslate()
getTextsToTranslate in interface com.ontimize.gui.i18n.Internationalizationpublic void setComponentLocale(java.util.Locale locale)
setComponentLocale in interface com.ontimize.gui.i18n.Internationalizationpublic void setResourceBundle(java.util.ResourceBundle res)
setResourceBundle in interface com.ontimize.gui.i18n.Internationalization
protected void log(java.lang.Object o,
int level)
o - message to loglevel - priority levelpublic java.util.List<java.util.Hashtable> getLayerData(java.lang.String layerAttribute)
IGisLayerUtilities
getLayerData in interface IGisLayerUtilitieslayerAttribute - layer identifier
public java.util.List<java.util.Hashtable> getMapAreaLayerData(java.lang.String layerAttribute)
IGisLayerUtilities
getMapAreaLayerData in interface IGisLayerUtilitieslayerAttribute - layer identifier
public void insertLayerData(java.lang.Object layerKeys,
java.lang.Object insertedValues)
IGisViewerinsertedValues into the layer
indentified by layerId
insertLayerData in interface IGisViewerlayerKeys - Identifiers for the layer to insertinsertedValues - New values to insert
public void updateLayerData(java.lang.Object layerKeys,
java.lang.Object updatedKeys,
java.lang.Object newValues)
IGisViewerupdatedKeys with the values
newValues for the layer layerId
updateLayerData in interface IGisViewerlayerKeys - Identifiers for the layer to updateupdatedKeys - Identifiers of the values to updatenewValues - Values to update
public void deleteLayerData(java.lang.Object layerKeys,
java.lang.Object deletedKeys)
IGisViewerdeletedKeys from the layer
layerId
deleteLayerData in interface IGisViewerlayerKeys - Identifiers for the layer to deletedeletedKeys - Identifiers of the values to deletepublic java.util.List<IGisLayer> getLayersList()
IGisViewer
getLayersList in interface IGisViewer
public void setLayerData(java.util.List<java.util.Hashtable> layerData,
java.lang.Object layerId)
IGisLayerUtilities
setLayerData in interface IGisLayerUtilitieslayerData - Layer datalayerId - Layer identifierpublic double[] getCursorLocation(java.awt.event.MouseEvent ev)
IGisViewer
getCursorLocation in interface IGisViewerev - Mouse event
public void centerView(java.awt.Rectangle panelBounds)
IGisViewer
centerView in interface IGisViewerpanelBounds - Desired map panel bounding boxpublic java.lang.Object getLayer(java.lang.Object layerId)
IGisViewer
getLayer in interface IGisViewerlayerId - identifier of the requested layer
protected void deleteFilteredData()
public void setLayerDefinition(IGisLayer layerDefinition)
IGisLayerUtilities
setLayerDefinition in interface IGisLayerUtilitieslayerDefinition - New layer definitionpublic void addStateChangeListener(StateChangeListener listener)
IGisViewer
addStateChangeListener in interface IGisViewerlistener - Viewer state change events listener to addpublic void removeStateChangeListener(StateChangeListener listener)
IGisViewer
removeStateChangeListener in interface IGisViewerlistener - Viewer state change events listener to removepublic java.util.ResourceBundle getResourceBundle()
getResourceBundle in interface IGisViewerpublic void moveLayerUp(java.lang.Object layerId)
IGisLayerUtilities
moveLayerUp in interface IGisLayerUtilitieslayerId - Layer identifierpublic void moveLayerDown(java.lang.Object layerId)
IGisLayerUtilities
moveLayerDown in interface IGisLayerUtilitieslayerId - Layer identifier
protected void deleteDataInsideBBox(com.vividsolutions.jts.geom.Envelope boundingBox,
java.lang.Object layerAttr)
boundingBox - Rectangle area to delete elementslayerAttr - Layer identifierpublic boolean isDragging()
IGisViewer
isDragging in interface IGisViewerpublic int getZoomState()
IGisViewer
getZoomState in interface IGisViewer
public void setLayerFilters(java.lang.Object layerAttribute,
java.lang.Object filters)
IGisViewer
setLayerFilters in interface IGisViewerlayerAttribute - Layer identifierfilters - Defined filters (only one or an array of elements implementing Filter interface)protected void autoUpdateCRS()
public IGisRenderer getLayerRenderer(java.lang.String layerAttr)
IGisViewer
getLayerRenderer in interface IGisViewerlayerAttr - Layer identifier
public void centerViewOnEnvelope(com.vividsolutions.jts.geom.Envelope panelBounds)
IGisViewer
centerViewOnEnvelope in interface IGisViewerpanelBounds - Desired map panel bounding boxpublic IGisRenderer getDefaultRenderer()
IGisViewer
getDefaultRenderer in interface IGisViewerpublic void forceExternalRepaint(java.lang.Object source)
IGisViewer
forceExternalRepaint in interface IGisViewersource - Class which calls the repaint methodpublic void updateSelectedData(com.vividsolutions.jts.geom.Envelope selectionBBox)
selectionBBox - Selection area
protected void updateSelectedDataOnPoint(com.vividsolutions.jts.geom.Geometry interestPoint,
double pixelSize)
interestPoint - Interest locationpixelSize - Gis viewer pixel resolution in units-per-pixel
protected void updateHighlightedDataOnPoint(com.vividsolutions.jts.geom.Geometry interestPoint,
double pixelSize)
interestPoint - Interest locationpixelSize - Gis viewer pixel resolution in units-per-pixelpublic void keyPressed(java.awt.event.KeyEvent ev)
keyPressed in interface java.awt.event.KeyListenerprotected void fireSelectionListeners()
public void setSelectionByID(java.util.List<java.lang.Object> dataIdList,
java.lang.String keyName)
IGisSelectionViewer
setSelectionByID in interface IGisSelectionViewerdataIdList - List of values for map selected datakeyName - Identifier of the key referenced by the listpublic void setSelectionValues(java.util.Hashtable values)
IGisSelectionViewer
setSelectionValues in interface IGisSelectionViewervalues - Hashtable with the selected valuespublic void addSelectionChangeListener(SelectionChangeListener listener)
IGisSelectionViewer
addSelectionChangeListener in interface IGisSelectionViewerlistener - Data selection events listener to addpublic void removeSelectionChangeListener(SelectionChangeListener listener)
IGisSelectionViewer
removeSelectionChangeListener in interface IGisSelectionViewerlistener - Data selection events listener to removepublic void setSelectionLayer(java.lang.Object layerId)
IGisSelectionViewer
setSelectionLayer in interface IGisSelectionViewerlayerId - Selection layer identifierpublic void expandSelectionByDistance(double distance)
IGisSelectionViewer
expandSelectionByDistance in interface IGisSelectionViewerdistance - Distance in map panel unitspublic void cleanSelectedData()
IGisViewer
cleanSelectedData in interface IGisViewer
public void setLayerPosition(java.lang.Object layerId,
int position)
IGisLayerUtilities
setLayerPosition in interface IGisLayerUtilitieslayerId - Layer identifierposition - New layer position inside the layers listpublic com.vividsolutions.jts.geom.Envelope getActualZoomArea()
getActualZoomArea in interface IGisViewerpublic double getPixelSize()
IGisViewer
getPixelSize in interface IGisViewerpublic IGisLayer getSelectionLayer()
IGisSelectionViewer
getSelectionLayer in interface IGisSelectionViewerpublic void componentHidden(java.awt.event.ComponentEvent ev)
componentHidden in interface java.awt.event.ComponentListenerpublic void componentMoved(java.awt.event.ComponentEvent ev)
componentMoved in interface java.awt.event.ComponentListenerpublic void componentResized(java.awt.event.ComponentEvent ev)
componentResized in interface java.awt.event.ComponentListenerpublic void componentShown(java.awt.event.ComponentEvent ev)
componentShown in interface java.awt.event.ComponentListenerpublic boolean isRendering()
IGisViewer
isRendering in interface IGisViewerpublic void addHighlightChangeListener(HighlightChangeListener listener)
IGisSelectionViewer
addHighlightChangeListener in interface IGisSelectionViewerlistener - Data highlight events listener to addpublic void removeHighlightChangeListener(HighlightChangeListener listener)
IGisSelectionViewer
removeHighlightChangeListener in interface IGisSelectionViewerlistener - Data highlight events listener to removeprotected void fireHighLight()
public void disableMouseListeners()
disableMouseListeners in interface IGisViewerpublic void enableMouseListeners()
enableMouseListeners in interface IGisViewerpublic void addNewLayer(IGisLayer layerDefinition)
IGisLayerUtilities
addNewLayer in interface IGisLayerUtilitieslayerDefinition - New layer definitionpublic void reloadViewer()
IGisViewer
reloadViewer in interface IGisViewer
protected void autoZoomOnPoint(double[] location,
boolean ZoomIn,
double newZoomLevel)
public void zoomToMinLevel()
IGisViewer
zoomToMinLevel in interface IGisViewerpublic void zoomToMaxLevel()
IGisViewer
zoomToMaxLevel in interface IGisViewerprotected void setRasterLayersVisibilityExclusion(IGisLayer priorityLayer)
protected boolean checkValidityForSelection(java.util.Hashtable recordData,
IGisLayer layer)
public java.lang.Object getSelectedData()
IGisSelectionViewer
getSelectedData in interface IGisSelectionViewer
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||