GLG Toolkit, Java Class Library  Version 4.5

GlgGISRequestObserver object is used by the program receive notifications about the progress of a GIS map request. More...

Detailed Description

GlgGISRequestObserver object is used by the program receive notifications about the progress of a GIS map request.

The object is passed as a parameter of the RequestGISZoom, RequestGISMap and SetScrollbarObserver methods.

Public Member Functions

boolean AdjustRequest (GlgGISRequestData request_data)
 If RequestAdjustment returns true, this method is invoked before proceeding with the request to perform any desired adjustments to the request parameters. More...
 
boolean RequestAdjustment ()
 This method is invoked before proceeding with the request to determine if any adjustments need to be done. More...
 
void RequestUpdate (GlgObject gis_object, int status)
 This method is invoked with the status of the GIS request when the GIS request becomes ready or is aborted. More...
 

Member Function Documentation

◆ AdjustRequest()

boolean AdjustRequest ( GlgGISRequestData  request_data)

If RequestAdjustment returns true, this method is invoked before proceeding with the request to perform any desired adjustments to the request parameters.

This may be used to adjust parameters of the request created by RequestGISZoom before the request is used to generate a new map image. The method must return true if any request paramets were modified.

Parameters
request_dataContains GIS parameters of the request.
Returns
true if any request paramets were modified, or false otherwise.

◆ RequestAdjustment()

boolean RequestAdjustment ( )

This method is invoked before proceeding with the request to determine if any adjustments need to be done.

If this method returns true, AdjustRequest will be invoked to adjust request parameters before proceeding. For example, a map projection or displayed GIS layers may need to be changed depending on the map zoom factor.

Returns
true to invoke AdjustRequest to adjust request parameters before proceeding, or false otherwise.

◆ RequestUpdate()

void RequestUpdate ( GlgObject  gis_object,
int  status 
)

This method is invoked with the status of the GIS request when the GIS request becomes ready or is aborted.

Parameters
gis_objectThe GIS object of the request.
statusThe reason this observer method is invoked, may be one of the following constants: