|
||||||||||
| 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
public class ParallelThreadEditionGisViewer
| Nested Class Summary | |
|---|---|
(package private) class |
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 | |
|---|---|
protected java.util.List<java.util.Hashtable> |
editedData
|
protected IGisLayer |
editionLayer
|
protected IGisEditionManager |
editionManager
|
protected java.lang.String |
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 | |
|---|---|
ParallelThreadEditionGisViewer()
|
|
ParallelThreadEditionGisViewer(java.util.Hashtable parameters)
|
|
| Method Summary | |
|---|---|
void |
addEditionChangeListener(EditionChangeListener listener)
Adds a listener for data edition change events |
protected boolean |
checkIfRecordIsInCurrentDataByID(java.util.Hashtable<java.lang.String,java.lang.Object> recordToInsert,
java.util.List<java.util.Hashtable> actualData)
|
void |
paintComponent(java.awt.Graphics g)
|
void |
reloadViewer()
Reloads the map viewer, clearing all the data caches, and going to the initial state |
void |
removeEditionChangeListener(EditionChangeListener listener)
Removes a listener for data edition 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 |
setCursor(java.awt.Cursor cursor)
|
void |
setEditionData(java.util.List<java.util.Hashtable> data)
Sets the actual data in edition |
boolean |
setEditionLayer(java.lang.Object layerId)
Sets the layer for edition |
void |
setInvalidEditionButtons(java.util.List<java.lang.String> validButtons)
Sets the invalid edition buttons |
void |
setLayerDefinition(IGisLayer layerDefinition)
Update the given layer definition. |
void |
setLayersConfigurationId(java.lang.Object layersConfigurationId)
Set the layers configuration assigned to the actual gis viewer |
void |
setLayerVisible(java.lang.Object layerId,
boolean visible)
Set the layer layerId visible |
void |
setResourceBundle(java.util.ResourceBundle res)
|
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 |
protected void |
updateEditionLayer()
|
protected void |
updateValidLayersInRange()
Checks if all the panel layers are inside their respective maximum and minimum scale ratios |
| 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.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 com.ontimize.util.gis.client.interfaces.IGisLayerUtilities |
|---|
addNewLayer, getLayerData, getLayerStyle, getMapAreaLayerData, moveLayerDown, moveLayerUp, setLayerData, setLayerPosition, setLayerStyle |
| Methods inherited from interface java.awt.event.MouseWheelListener |
|---|
mouseWheelMoved |
| Methods inherited from interface java.awt.event.MouseListener |
|---|
mouseClicked, mouseEntered, mouseExited, mousePressed, mouseReleased |
| Methods inherited from interface java.awt.event.MouseMotionListener |
|---|
mouseDragged, mouseMoved |
| Methods inherited from interface com.ontimize.util.gis.client.events.AreaChangeListener |
|---|
areaChanged |
| Methods inherited from interface java.awt.event.KeyListener |
|---|
keyPressed, keyReleased, keyTyped |
| Methods inherited from interface com.ontimize.gui.i18n.Internationalization |
|---|
getTextsToTranslate, setComponentLocale |
| Methods inherited from interface java.awt.event.ComponentListener |
|---|
componentHidden, componentMoved, componentResized, componentShown |
| Field Detail |
|---|
protected IGisLayer editionLayer
protected java.lang.String editionManagerClassName
protected IGisEditionManager editionManager
protected java.util.List<java.util.Hashtable> editedData
| Constructor Detail |
|---|
public ParallelThreadEditionGisViewer()
public ParallelThreadEditionGisViewer(java.util.Hashtable parameters)
| Method Detail |
|---|
public void setLayersConfigurationId(java.lang.Object layersConfigurationId)
IGisViewer
setLayersConfigurationId in interface IGisViewersetLayersConfigurationId in class ParallelThreadGisViewerlayersConfigurationId - Identifier for the layers configurationpublic void setViewerPreferences(java.util.Hashtable<java.lang.String,java.lang.Object> preferences)
IGisViewer
setViewerPreferences in interface IGisViewersetViewerPreferences in class ParallelThreadGisViewerpreferences - Preferences parameters: bounding box, coordinate reference
system (crs), background color...protected void updateEditionLayer()
public boolean setEditionLayer(java.lang.Object layerId)
IGisEditionViewer
setEditionLayer in interface IGisEditionViewerlayerId - layer identifier
protected boolean checkIfRecordIsInCurrentDataByID(java.util.Hashtable<java.lang.String,java.lang.Object> recordToInsert,
java.util.List<java.util.Hashtable> actualData)
public void setState(int state)
IGisViewer
setState in interface IGisViewersetState in class ParallelThreadGisViewerstate - New gis viewer statepublic void setCursor(java.awt.Cursor cursor)
setCursor in class java.awt.Componentpublic void setResourceBundle(java.util.ResourceBundle res)
setResourceBundle in interface com.ontimize.gui.i18n.InternationalizationsetResourceBundle in class ParallelThreadGisViewerpublic void setEditionData(java.util.List<java.util.Hashtable> data)
IGisEditionViewer
setEditionData in interface IGisEditionViewerpublic void paintComponent(java.awt.Graphics g)
paintComponent in class ParallelThreadGisViewerpublic void requestCurrentData(boolean forceServerQuery)
IGisViewer
requestCurrentData in interface IGisViewerrequestCurrentData in class ParallelThreadGisViewerforceServerQuery - If enabled forces the panel to request the data to the server
public void requestCurrentData(com.vividsolutions.jts.geom.Envelope[] requestBBoxes,
boolean forceServerQuery)
IGisViewer
requestCurrentData in interface IGisViewerrequestCurrentData in class ParallelThreadGisViewerrequestBBoxes - List of bounding boxes object of refreshforceServerQuery - If enabled forces the panel to request the data to the serverprotected void updateValidLayersInRange()
updateValidLayersInRange in class ParallelThreadGisViewerpublic void addEditionChangeListener(EditionChangeListener listener)
IGisEditionViewer
addEditionChangeListener in interface IGisEditionViewerlistener - Data edition events listener to addpublic void removeEditionChangeListener(EditionChangeListener listener)
IGisEditionViewer
removeEditionChangeListener in interface IGisEditionViewerlistener - Data edition events listener to removepublic void setInvalidEditionButtons(java.util.List<java.lang.String> validButtons)
IGisEditionViewer
setInvalidEditionButtons in interface IGisEditionViewervalidButtons - List of invalid buttons
public void setLayerVisible(java.lang.Object layerId,
boolean visible)
IGisLayerUtilitieslayerId visible
setLayerVisible in interface IGisLayerUtilitiessetLayerVisible in class ParallelThreadGisViewerlayerId - Layer identifierpublic void setLayerDefinition(IGisLayer layerDefinition)
IGisLayerUtilities
setLayerDefinition in interface IGisLayerUtilitiessetLayerDefinition in class ParallelThreadGisViewerlayerDefinition - New layer definitionpublic void reloadViewer()
IGisViewer
reloadViewer in interface IGisViewerreloadViewer in class ParallelThreadGisViewer
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||