com.mizar.metadata.mapviewer
Class SimpleMapViewerClient

java.lang.Object
  extended by oracle.lbs.mapclient.MapViewer
      extended by com.mizar.metadata.mapviewer.SimpleMapViewerClient
All Implemented Interfaces:
java.io.Serializable

public class SimpleMapViewerClient
extends oracle.lbs.mapclient.MapViewer

See Also:
Serialized Form

Field Summary
 
Fields inherited from class oracle.lbs.mapclient.MapViewer
FORMAT_GIF_URL, FORMAT_JPEG_URL, FORMAT_PDF_URL, FORMAT_PNG_URL, FORMAT_PNG8_URL, FORMAT_RAW_COMPRESSED, FORMAT_SVG_URL, FORMAT_SVGTINY_URL, FORMAT_SVGZ_URL, STYLE_ADVANCED, STYLE_AREA, STYLE_COLOR, STYLE_LINE, STYLE_MARKER, STYLE_TEXT, SVG_LAYERS, SVG_LAYERS_WITH_LABELS, SVG_STYLED_LAYERS, SVG_STYLED_LAYERS_WITH_LABELS
 
Constructor Summary
SimpleMapViewerClient()
           
SimpleMapViewerClient(java.lang.String serviceUrl)
           
 
Method Summary
 void checkAspectRatio()
           
 java.util.List<SimpleMapViewerAnnotation> getAnnotations()
           
 java.lang.String getBasemap()
           
 int getBgColor()
           
 double[] getCoordiateByRatio(double xratio, double yratio)
           
 double[] getCoordinate(int[] xy)
           
 double[] getCoordinate(int x, int y)
           
 java.lang.String getCopyrightNotice()
           
 java.lang.String getCustomImage(CustomizedMapImage appTemplate)
           
 java.lang.String getDataSource()
           
 int getFormat()
           
 int getHeight()
           
 java.lang.String getImage()
           
 java.lang.String getImage(java.lang.String dataSource, java.lang.String basemap, java.util.List<java.lang.String> layerList, java.util.List<java.lang.String> locationList, double[] mbr, int srid, int width, int height, java.lang.String persistenceUnitName)
           
 java.lang.String getImage(java.lang.String dataSource, java.lang.String basemap, java.util.List<java.lang.String> layerList, java.util.List<java.lang.String> locationList, double cx, double cy, int srid, int width, int height, int zoomLevel, java.lang.String persistenceUnitName)
           
 java.lang.String getImageName()
           
 java.util.List<java.lang.String> getLayerList()
           
 java.util.List<java.lang.String> getLayerThemes(boolean useMdSysTables)
           
 java.util.List<java.lang.String> getLocationList()
           
 java.lang.String getLogoURL()
           
 double[] getMbr()
           
 SimpleMapViewerNorthArrow getNorthArrow()
           
 java.lang.String getPersistenceUnitName()
           
 int[] getPixels(double[] xy)
           
 int[] getPixels(double x, double y)
           
 int[] getPixelsByRatio(double xratio, double yratio)
           
 double getRotation()
           
 long getScale()
           
 SimpleMapViewerScaleBar getScaleBar()
           
 int getSrid()
           
 java.lang.String getWarnURL()
           
 int getWidth()
           
 boolean isAspectRatioForcePixels()
           
 boolean isAspectRatioLock()
           
 boolean isComputeImage()
           
 boolean isUseMdSysTables()
           
 void setAnnotations(java.util.List<SimpleMapViewerAnnotation> annotation)
           
 void setAspectRatioForcePixels(boolean aspectRatioForcePixels)
           
 void setAspectRatioLock(boolean lockAspectRatio)
           
 void setBasemap(java.lang.String baseMap)
           
 void setBgColor(int bgColor)
           
 void setBox(double[] mbr)
           
 void setBox(double[] mbr, int srid)
           
 void setComputeImage(boolean computeImage)
           
 void setCopyrightNotice(java.lang.String copyrightNotice)
           
 void setDataSource(java.lang.String dataSource)
           
 void setFormat(int format)
           
 void setFormat(java.lang.String format)
           
 void setHeight(int height)
           
 void setLayerList(java.util.List<java.lang.String> layerList)
           
 void setLocationList(java.util.List<java.lang.String> locationList)
           
 void setLogoURL(java.lang.String logoURL)
           
 void setMapRequestAngle(double radians)
          The method converts radians to degrees and calls setMapRequestRotation
 void setMbr(double[] mbr)
           
 void setMbr(double xmin, double ymin, double xmax, double ymax)
           
 void setNorthArrow(SimpleMapViewerNorthArrow northArrow)
           
 void setPersistenceUnitName(java.lang.String persistenceUnitName)
           
 void setRotation(double rotation)
           
 void setScaleBar(SimpleMapViewerScaleBar scaleBar)
           
 void setSrid(int srid)
           
 void setUseMdSysTables(boolean useMdSysTables)
           
 void setWarnURL(java.lang.String warnURL)
           
 void setWidth(int width)
           
 
Methods inherited from class oracle.lbs.mapclient.MapViewer
addAnnotationTextTheme, addAnnotationTextTheme, addAnnotationTextTheme, addAnnotationTextTheme, addBucketStyle, addBucketStyle, addCollectionBucketStyle, addCollectionStyle, addColorSchemeStyle, addColorSchemeStyle, addColorSchemeStyle, addColorSchemeStyle, addColorStyle, addColorStyle, addCustomGeometryTheme, addCustomGeometryTheme, addDataSource, addDotDensityStyle, addGeoRasterTheme, addGeoRasterTheme, addGeoRasterTheme, addGeoRasterTheme, addGeoRasterTheme, addGeoRasterTheme, addGeoRasterThemeOperation, addGeoRasterThemeOperation, addImageAreaFromURL, addImageAreaStyleFromURL, addImageAreaStyleFromURL, addImageAreaStyleFromURL, addImageMarkerFromURL, addImageMarkerStyleFromURL, addImageMarkerStyleFromURL, addImageTheme, addImageTheme, addImageTheme, addImageTheme, addJDBCTheme, addJDBCTheme, addJDBCTheme, addJDBCTheme, addLinearFeature, addLinearFeature, addLinearFeature, addLinearFeature, addLineStyle, addLineStyle, addLinksWithinCost, addMapCacheTheme, addMapTileTheme, addMarkerStyle, addNetworkLinks, addNetworkNodes, addNetworkPaths, addNetworkTheme, addNetworkTheme, addNetworkTheme, addNetworkTheme, addNSDataProvider, addPieChartStyle, addPointFeature, addPointFeature, addPointFeature, addPointFeature, addPointFeature, addPointFeature, addPolygonFeature, addPolygonFeature, addPredefinedTheme, addPredefinedTheme, addPredefinedTheme, addPredefinedTheme, addPredefinedTheme, addPredefinedTheme, addRangedBucketStyle, addRangedBucketStyle, addShortestPath, addShortestPath, addStyle, addTextStyle, addTextStyleWithHalo, addThemeModifier, addThemesFromBaseMap, addTopologyDebugTheme, addTopologyDebugTheme, addTopologyTheme, addTopologyTheme, addTopologyThemeFromView, addTopologyThemeFromView, addVariableMarkerStyle, addVariableMarkerStyle, addWFSTheme, addWFSTheme, addWFSTheme, addWFSTheme, addWMSMapTheme, addWMSMapTheme, addWMSMapTheme, boundingThemesRespectAspectRatio, clearCustomProperties, connect, dataSourceExists, deleteAllGeoRasterThemeOperations, deleteAllThemes, deleteMapLegend, deleteStyle, deleteTheme, disConnect, doQuery, doQuery, doQueryInMapWindow, doQueryInMapWindow, doXMLEscape, drawLiveFeature, drawLiveFeatures, enableThemes, findLiveFeatures, getActiveTheme, getAntiAliasing, getBackgroundColor, getBackgroundImageURL, getBaseMapName, getBaseMapNames, getBorderMarginForBoundingThemes, getBoundingThemes, getBox, getCenter, getCookies, getCustomProperty, getDataSourceName, getDataSources, getDefaultCenterLabel, getDefaultCenterLabelStyleName, getDefaultCenterRadii, getDefaultCenterRenderStyleName, getDeviceSize, getEnabledThemes, getGeneratedMapImage, getGeneratedMapImageURL, getGeoRasterThemeOperationNames, getGeoRasterThemeOperationParameters, getImageFormat, getImageScaling, getLiveFeatureAttrs, getLiveFeatures, getMapFootnote, getMapFootnoteStyleName, getMapLegend, getMapMBR, getMapRequest, getMapRequestRotation, getMapRequestSRID, getMapRequestString, getMapResponse, getMapResponseRotation, getMapResponseString, getMapResponseThemeNames, getMapResultFileName, getMapScale, getMapTileLayerNames, getMapTitle, getMapTitleStyleName, getNumberOfAvailableMappers, getNumGeoFeatures, getNumGeoFeatures, getNumLinearFeatures, getNumLiveFeatures, getNumPointFeatures, getNumPolygonFeatures, getPermanentStyles, getPredefinedThemes, getPredefinedThemes, getPredefinedThemeStyles, getRequestBox, getRequestCenter, getRequestSize, getServiceURL, getSize, getSpatialFilter, getSpatialFilter, getSVGStreamAsString, getThemeAsHTMLAreas, getThemeEnabled, getThemeModifiers, getThemeNames, getThemePosition, getThemeVisibleInSVG, getUserPoint, getUserPoint, getUserPoint, getUserPoint, getWhereClauseForAnyInteract, getWhereClauseForAnyInteract, getWhereClauseForNN, getXMLResponse, hasLiveFeatures, hasThemes, highlightFeatures, identify, identify, identify, identify, init, intersects, isBackgroundTransparent, isClickable, isMapPiecesRendered, listAllDynamicStyles, moveThemeDown, moveThemeUp, numPointFeatures, pan, putCustomProperty, queryAtPoint, queryNN, queryWithinArea, queryWithinRadius, queryWithinRectangle, removeAllDynamicStyles, removeAllGeoFeaturesWithType, removeAllLinearFeatures, removeAllNSDataProviders, removeAllPointFeatures, removeAllPolygonFeatures, removeAllThemeModifiers, removeCustomProperty, removeGeoFeature, removeGeoRasterThemeOperation, removeThemeModifier, removeThemeModifiers, resetWorkspaceAttributesForInfoRequest, rotatePoint, run, sendXMLRequest, setAllowNakedPoints, setAllThemesEnabled, setAnnoTextThemeExpressionColumn, setAntiAliasing, setBackgroundColor, setBackgroundImageURL, setBackgroundTransparent, setBaseMapName, setBoundingThemes, setBoundingThemesSizeHint, setBox, setBox, setBoxWithSRID, setCenter, setCenterAndScale, setCenterAndScaleWithSRID, setCenterAndSize, setCenterAndSizeWithSRID, setClickable, setCookies, setDataSourceName, setDefaultStyleForCenter, setDeviceSize, setFullExtent, setGeoRasterThemeAlphaBand, setGeoRasterThemeBitmapMasks, setGeoRasterThemePolygonMask, setGeoRasterThemePolygonMaskSRID, setGeoRasterThemeReprojectionMode, setGeoRasterThemeTransparentNODATA, setImageFormat, setImageScaling, setIsTileRequest, setJDBCThemeHiddenInfoDef, setJDBCThemeKeyColumn, setJDBCThemePointColumns, setKeepThemesOrder, setLabelAlwaysOn, setMapFootnote, setMapFootnoteStyleName, setMapLegend, setMapLegend, setMapLegend, setMapLegend, setMapLegend, setMapLegendFromThemes, setMapLegendFromThemes, setMapPiecesRendered, setMapRequestRotation, setMapRequestSRID, setMapResultFileName, setMapTitle, setMapTitleStyleName, setNetworkThemeBiDirectionMarker, setNetworkThemeDirectionMarkerSize, setNetworkThemeLabels, setNetworkThemeMultipleDirectionMarker, setNetworkThemeNodeMarkerSize, setNoRepetitiveLabel, setNorthArrow, setPredefinedThemeParameters, setRenderRasterBaseMapInSVG, setScale, setScaleBar, setServiceURL, setShowSVGNavBar, setSize, setSnapToCachedZoomLevel, setSVGFragmentInDeviceCoord, setSVGFragmentType, setSVGInfoFont, setSVGOnClick, setSVGOnMouseMove, setSVGOnPolygonSelect, setSVGOnRectangleSelect, setSVGShowInfo, setSVGZoomFactor, setSVGZoomLevels, setSVGZoomRatio, setThemeAlpha, setThemeAuthentication, setThemeBindingParameters, setThemeEnabled, setThemeFastUnpickle, setThemeFetchSize, setThemeFixedLabelInSVG, setThemeLabelScale, setThemeMinDistForSVG, setThemeOnClickInSVG, setThemeOnMouseMoveInSVG, setThemeOnMouseOutInSVG, setThemeOnMouseOverInSVG, setThemePartOfBaseMapInSVG, setThemePixelsForGeneralizedView, setThemeRenderingRules, setThemeRenderLabels, setThemeReorientLines, setThemeRequestTimeout, setThemeRuntimeParameters, setThemeScale, setThemeScaleMode, setThemeSelectableInSVG, setThemeSimplifyShapes, setThemeTransparency, setThemeUnitAndResolution, setThemeUpsideDownLabels, setThemeVisibleInSVG, setThemeWorkspace, setThemeWorkspaceDate, setThemeWorkspaceDateFormat, setThemeWorkspaceSavedPoint, setUseCachedBaseMap, setWebProxy, setWorkspaceDateForInfoRequest, setWorkspaceDateFormatForInfoRequest, setWorkspaceNameForInfoRequest, setWorkspaceSavedPointForInfoRequest, styleExists, zoomIn, zoomIn, zoomIn, zoomOut, zoomOut
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SimpleMapViewerClient

public SimpleMapViewerClient()

SimpleMapViewerClient

public SimpleMapViewerClient(java.lang.String serviceUrl)
Method Detail

setBox

public void setBox(double[] mbr)

setBox

public void setBox(double[] mbr,
                   int srid)

getScale

public long getScale()

setMapRequestAngle

public void setMapRequestAngle(double radians)
The method converts radians to degrees and calls setMapRequestRotation

Parameters:
radians -
See Also:
MapViewer.setMapRequestRotation(double)

getLayerThemes

public java.util.List<java.lang.String> getLayerThemes(boolean useMdSysTables)

getImage

public java.lang.String getImage()
                          throws SimpleMapViewerException
Throws:
SimpleMapViewerException

getImage

public java.lang.String getImage(java.lang.String dataSource,
                                 java.lang.String basemap,
                                 java.util.List<java.lang.String> layerList,
                                 java.util.List<java.lang.String> locationList,
                                 double[] mbr,
                                 int srid,
                                 int width,
                                 int height,
                                 java.lang.String persistenceUnitName)
                          throws java.lang.Exception
Parameters:
dataSource -
basemap -
layerList -
locationList -
mbr -
srid -
width -
height -
Returns:
Throws:
java.lang.Exception

getImage

public java.lang.String getImage(java.lang.String dataSource,
                                 java.lang.String basemap,
                                 java.util.List<java.lang.String> layerList,
                                 java.util.List<java.lang.String> locationList,
                                 double cx,
                                 double cy,
                                 int srid,
                                 int width,
                                 int height,
                                 int zoomLevel,
                                 java.lang.String persistenceUnitName)
                          throws java.lang.Exception
Throws:
java.lang.Exception

getCustomImage

public java.lang.String getCustomImage(CustomizedMapImage appTemplate)

getPixelsByRatio

public int[] getPixelsByRatio(double xratio,
                              double yratio)
                       throws SimpleMapViewerException
Throws:
SimpleMapViewerException

getPixels

public int[] getPixels(double[] xy)
                throws SimpleMapViewerException
Throws:
SimpleMapViewerException

getPixels

public int[] getPixels(double x,
                       double y)
                throws SimpleMapViewerException
Throws:
SimpleMapViewerException

getCoordiateByRatio

public double[] getCoordiateByRatio(double xratio,
                                    double yratio)
                             throws SimpleMapViewerException
Throws:
SimpleMapViewerException

getCoordinate

public double[] getCoordinate(int[] xy)
                       throws SimpleMapViewerException
Throws:
SimpleMapViewerException

getCoordinate

public double[] getCoordinate(int x,
                              int y)
                       throws SimpleMapViewerException
Throws:
SimpleMapViewerException

checkAspectRatio

public void checkAspectRatio()

setCopyrightNotice

public void setCopyrightNotice(java.lang.String copyrightNotice)

getCopyrightNotice

public java.lang.String getCopyrightNotice()

setLogoURL

public void setLogoURL(java.lang.String logoURL)

getLogoURL

public java.lang.String getLogoURL()

setWarnURL

public void setWarnURL(java.lang.String warnURL)

getWarnURL

public java.lang.String getWarnURL()

setBgColor

public void setBgColor(int bgColor)

getBgColor

public int getBgColor()

setFormat

public void setFormat(int format)

setFormat

public void setFormat(java.lang.String format)

getFormat

public int getFormat()

setRotation

public void setRotation(double rotation)

getRotation

public double getRotation()

setDataSource

public void setDataSource(java.lang.String dataSource)

getDataSource

public java.lang.String getDataSource()

setBasemap

public void setBasemap(java.lang.String baseMap)

getBasemap

public java.lang.String getBasemap()

setLayerList

public void setLayerList(java.util.List<java.lang.String> layerList)

getLayerList

public java.util.List<java.lang.String> getLayerList()

setLocationList

public void setLocationList(java.util.List<java.lang.String> locationList)

getLocationList

public java.util.List<java.lang.String> getLocationList()

setSrid

public void setSrid(int srid)

getSrid

public int getSrid()

setMbr

public void setMbr(double[] mbr)

setMbr

public void setMbr(double xmin,
                   double ymin,
                   double xmax,
                   double ymax)

getMbr

public double[] getMbr()

setWidth

public void setWidth(int width)

getWidth

public int getWidth()

setHeight

public void setHeight(int height)

getHeight

public int getHeight()

setAspectRatioLock

public void setAspectRatioLock(boolean lockAspectRatio)

isAspectRatioLock

public boolean isAspectRatioLock()

setAspectRatioForcePixels

public void setAspectRatioForcePixels(boolean aspectRatioForcePixels)

isAspectRatioForcePixels

public boolean isAspectRatioForcePixels()

setPersistenceUnitName

public void setPersistenceUnitName(java.lang.String persistenceUnitName)

getPersistenceUnitName

public java.lang.String getPersistenceUnitName()

setNorthArrow

public void setNorthArrow(SimpleMapViewerNorthArrow northArrow)

getNorthArrow

public SimpleMapViewerNorthArrow getNorthArrow()
Overrides:
getNorthArrow in class oracle.lbs.mapclient.MapViewer

setScaleBar

public void setScaleBar(SimpleMapViewerScaleBar scaleBar)

getScaleBar

public SimpleMapViewerScaleBar getScaleBar()
Overrides:
getScaleBar in class oracle.lbs.mapclient.MapViewer

setAnnotations

public void setAnnotations(java.util.List<SimpleMapViewerAnnotation> annotation)

getAnnotations

public java.util.List<SimpleMapViewerAnnotation> getAnnotations()

setUseMdSysTables

public void setUseMdSysTables(boolean useMdSysTables)

isUseMdSysTables

public boolean isUseMdSysTables()

setComputeImage

public void setComputeImage(boolean computeImage)
Parameters:
computeImage - if true the getImage() will create the Image image property rather than returning an imageUrl

isComputeImage

public boolean isComputeImage()

getImageName

public java.lang.String getImageName()