|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface IGisViewer
Interface for the Gis map viewer component. This will be the main class inside the gis component.
| Field Summary | |
|---|---|
static java.lang.String |
APPLIED_FILTERS
|
static int |
FILTER_CONDITION_AND
|
static int |
FILTER_CONDITION_NOT
|
static int |
FILTER_CONDITION_OR
|
static int |
FILTER_PROPERTY_BETWEEN
|
static int |
FILTER_PROPERTY_EQUAL
|
static int |
FILTER_PROPERTY_GREATER_OR_EQUAL
|
static int |
FILTER_PROPERTY_GREATER_THAN
|
static int |
FILTER_PROPERTY_LESS_OR_EQUAL
|
static int |
FILTER_PROPERTY_LESS_THAN
|
static int |
FILTER_PROPERTY_NOT_EQUAL
|
static int |
FILTER_PROPERTY_NULL
|
static java.lang.String |
GEO_OBJECT_ID
|
static java.lang.String |
GEOMETRY
|
static int |
STATE_EDITION
Edition state |
static int |
STATE_GOOGLE_SELECTOR
New gis viewer state used to show the multiple elements selector on map panel, in this state certains event as mouse wheel and mouse dragging are ignored Value: 777 |
static int |
STATE_PAN_SELECTION
Pan - Selection state |
static int |
STATE_VIEWER_DISABLED
Disabled viewer state |
static int |
STATE_ZOOM_IN
Zoom in state |
static int |
STATE_ZOOM_OUT
Zoom out state |
static int |
ZOOM_STATE_DISABLED
Zoom state disabled |
static int |
ZOOM_STATE_ZOOMING_IN
Zoom state: Zoom In |
static int |
ZOOM_STATE_ZOOMING_OUT
Zoom state: Zoom Out |
| Method Summary | |
|---|---|
void |
addAreaChangeListener(AreaChangeListener listener)
Adds a listener for area change events |
void |
addLayerChangeListener(LayerChangeListener listener)
Adds a listener for layers change events |
void |
addStateChangeListener(StateChangeListener listener)
Adds a listener for viewer state change events |
void |
applyFilters(java.lang.Object appliedFilters)
Apply the given filters appliedFilters to the gis map
panel |
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 |
void |
cleanSelectedData()
Clear the actual selected elements list |
void |
deleteLayerData(java.lang.Object layerKeys,
java.lang.Object deletedKeys)
Delete the data identified by deletedKeys from the layer
layerId |
void |
disableMouseListeners()
Disable the mouse listeners for the current viewer |
void |
enableMouseListeners()
Enable the mouse listeners for the current viewer |
void |
forceExternalRepaint(java.lang.Object source)
Forces the repaint of the gis map viewer from a external class |
com.vividsolutions.jts.geom.Envelope |
getActualZoomArea()
Gets the actual area for the current viewer, this method is usually called to know the current area during zoom animations |
java.awt.Color |
getBackground()
Gets the background color of the gis viewer |
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 |
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 |
com.vividsolutions.jts.geom.Envelope |
getMapArea()
Returns the actual map bounding box |
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()
|
int |
getState()
Gets the actual state of the gis viewer |
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 |
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 |
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 |
removeLayerChangeListener(LayerChangeListener listener)
Removes a listener for viewer layer 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[] boundingBoxes,
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 |
void |
setEnabled(boolean enabled)
Set the gis viewer enabled |
void |
setLayerFilters(java.lang.Object layerAttribute,
java.lang.Object filters)
Set the defined filters for the indicated layer |
void |
setLayersConfigurationId(java.lang.Object layersConfigurationId)
Set the layers configuration assigned to the actual gis viewer |
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. |
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 |
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 |
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 interface com.ontimize.util.gis.client.interfaces.IGisDataRequester |
|---|
setData |
| Field Detail |
|---|
static final int STATE_VIEWER_DISABLED
static final int STATE_PAN_SELECTION
static final int STATE_ZOOM_IN
static final int STATE_ZOOM_OUT
static final int STATE_EDITION
static final int ZOOM_STATE_DISABLED
static final int ZOOM_STATE_ZOOMING_IN
static final int ZOOM_STATE_ZOOMING_OUT
static final int STATE_GOOGLE_SELECTOR
static final int FILTER_CONDITION_AND
static final int FILTER_CONDITION_NOT
static final int FILTER_CONDITION_OR
static final int FILTER_PROPERTY_EQUAL
static final int FILTER_PROPERTY_NOT_EQUAL
static final int FILTER_PROPERTY_LESS_THAN
static final int FILTER_PROPERTY_GREATER_THAN
static final int FILTER_PROPERTY_LESS_OR_EQUAL
static final int FILTER_PROPERTY_GREATER_OR_EQUAL
static final int FILTER_PROPERTY_BETWEEN
static final int FILTER_PROPERTY_NULL
static final java.lang.String GEO_OBJECT_ID
static final java.lang.String GEOMETRY
static final java.lang.String APPLIED_FILTERS
| Method Detail |
|---|
java.awt.Color getBackground()
int getState()
boolean isDragging()
int getZoomState()
void forceExternalRepaint(java.lang.Object source)
source - Class which calls the repaint methodvoid setState(int state)
state - New gis viewer statevoid setOGisComponent(IOGisComponent gisComponent)
gisComponent - Ontimize Gis Component interfaceIOGisComponent getOGisComponent()
void init(java.lang.Object initParameters)
initParameters - Parameters for the gisViewer initializationvoid setEnabled(boolean enabled)
enabled - void setVisible(boolean visible)
visible - void setViewerPreferences(java.util.Hashtable<java.lang.String,java.lang.Object> preferences)
preferences - Preferences parameters: bounding box, coordinate reference
system (crs), background color...
void setLayersConfigurationId(java.lang.Object layersConfigurationId)
throws java.lang.Exception
layersConfigurationId - Identifier for the layers configuration
java.lang.Exceptionvoid changeCRS(java.lang.Object newCRS)
newCRS - New coordinate reference system for the viewervoid applyFilters(java.lang.Object appliedFilters)
appliedFilters to the gis map
panel
appliedFilters - Filters applied to the map paneljava.lang.Object getGisClientUtilities()
java.lang.Object getLayersConfigurationId()
java.lang.Object getLayer(java.lang.Object layerId)
layerId - identifier of the requested layer
java.util.List<IGisLayer> getLayersList()
boolean isEnabled()
boolean isVisible()
boolean inTransientPaint()
java.lang.Object getViewerPreferences()
void addAreaChangeListener(AreaChangeListener listener)
listener - Area change events listener to addvoid removeAreaChangeListener(AreaChangeListener listener)
listener - Viewer area change events listener to removevoid addLayerChangeListener(LayerChangeListener listener)
listener - Layers change events listener to addvoid removeLayerChangeListener(LayerChangeListener listener)
listener - Viewer layer change events listener to removevoid addStateChangeListener(StateChangeListener listener)
listener - Viewer state change events listener to addvoid removeStateChangeListener(StateChangeListener listener)
listener - Viewer state change events listener to removevoid centerView(java.awt.Rectangle panelBounds)
panelBounds - Desired map panel bounding boxvoid centerViewOnEnvelope(com.vividsolutions.jts.geom.Envelope panelBounds)
panelBounds - Desired map panel bounding box
void centerOnPoint(double xCoord,
double yCoord)
xCoord - X or longitude coordinate of the desired center locationyCoord - Y or longitude coordinate of the desired center locationvoid setMapArea(com.vividsolutions.jts.geom.Envelope mapArea)
centerView method instead of this one.
mapArea - New map bounding boxcom.vividsolutions.jts.geom.Envelope getMapArea()
void requestCurrentData(boolean forceServerQuery)
forceServerQuery - If enabled forces the panel to request the data to the server
void requestCurrentData(com.vividsolutions.jts.geom.Envelope[] boundingBoxes,
boolean forceServerQuery)
forceServerQuery - If enabled forces the panel to request the data to the serverboundingBoxes - List of bounding boxes object of refresh
void requestCurrentDataForLayer(IGisLayer layer,
com.vividsolutions.jts.geom.Envelope[] requestBBoxes,
boolean forceServerQuery)
layer - Gis layer to refresh dataforceServerQuery - If enabled forces the panel to request the data to the serverrequestBBoxes - List of bounding boxes object of refresh
void insertLayerData(java.lang.Object layerKeys,
java.lang.Object insertedValues)
insertedValues into the layer
indentified by layerId
layerKeys - Identifiers for the layer to insertinsertedValues - New values to insert
void updateLayerData(java.lang.Object layerKeys,
java.lang.Object updatedKeys,
java.lang.Object newValues)
updatedKeys with the values
newValues for the layer layerId
layerKeys - Identifiers for the layer to updateupdatedKeys - Identifiers of the values to updatenewValues - Values to update
void deleteLayerData(java.lang.Object layerKeys,
java.lang.Object deletedKeys)
deletedKeys from the layer
layerId
layerKeys - Identifiers for the layer to deletedeletedKeys - Identifiers of the values to deletedouble[] getCursorLocation(java.awt.event.MouseEvent ev)
ev - Mouse event
void setLayerFilters(java.lang.Object layerAttribute,
java.lang.Object filters)
layerAttribute - Layer identifierfilters - Defined filters (only one or an array of elements implementing Filter interface)java.lang.Object getCRS()
IGisRenderer getLayerRenderer(java.lang.String layerAttr)
layerAttr - Layer identifier
IGisRenderer getDefaultRenderer()
double getPixelSize()
void cleanSelectedData()
boolean isRendering()
void enableMouseListeners()
void disableMouseListeners()
com.vividsolutions.jts.geom.Envelope getActualZoomArea()
void zoomToMinLevel()
void zoomToMaxLevel()
void reloadViewer()
java.util.ResourceBundle getResourceBundle()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||