Logo Search packages:      
Sourcecode: mapserver version File versions  Download package

mapObj.java

/* ----------------------------------------------------------------------------
 * This file was automatically generated by SWIG (http://www.swig.org).
 * Version: 1.3.21
 *
 * Do not make changes to this file unless you know what you are doing--modify
 * the SWIG interface file instead.
 * ----------------------------------------------------------------------------- */

package edu.umn.gis.mapscript;


public class mapObj {
  private long swigCPtr;
  protected boolean swigCMemOwn;

  protected mapObj(long cPtr, boolean cMemoryOwn) {
    swigCMemOwn = cMemoryOwn;
    swigCPtr = cPtr;
  }

  protected mapObj() {
    this(0, false);
  }

  protected void finalize() {
    delete();
  }

  public void delete() {
    if(swigCPtr != 0 && swigCMemOwn) {
      swigCMemOwn = false;
      mapscriptJNI.delete_mapObj(swigCPtr);
    }
    swigCPtr = 0;
  }

  protected static long getCPtr(mapObj obj) {
    return (obj == null) ? 0 : obj.swigCPtr;
  }

  public void setName(String name) {
    mapscriptJNI.set_mapObj_name(swigCPtr, name);
  }

  public String getName() {
    return mapscriptJNI.get_mapObj_name(swigCPtr);
  }

  public void setStatus(int status) {
    mapscriptJNI.set_mapObj_status(swigCPtr, status);
  }

  public int getStatus() {
    return mapscriptJNI.get_mapObj_status(swigCPtr);
  }

  public void setHeight(int height) {
    mapscriptJNI.set_mapObj_height(swigCPtr, height);
  }

  public int getHeight() {
    return mapscriptJNI.get_mapObj_height(swigCPtr);
  }

  public void setWidth(int width) {
    mapscriptJNI.set_mapObj_width(swigCPtr, width);
  }

  public int getWidth() {
    return mapscriptJNI.get_mapObj_width(swigCPtr);
  }

  public void setMaxsize(int maxsize) {
    mapscriptJNI.set_mapObj_maxsize(swigCPtr, maxsize);
  }

  public int getMaxsize() {
    return mapscriptJNI.get_mapObj_maxsize(swigCPtr);
  }

  public int getNumlayers() {
    return mapscriptJNI.get_mapObj_numlayers(swigCPtr);
  }

  public symbolSetObj getSymbolset() {
    long cPtr = mapscriptJNI.get_mapObj_symbolset(swigCPtr);
    return (cPtr == 0) ? null : new symbolSetObj(cPtr, false);
  }

  public fontSetObj getFontset() {
    long cPtr = mapscriptJNI.get_mapObj_fontset(swigCPtr);
    return (cPtr == 0) ? null : new fontSetObj(cPtr, false);
  }

  public labelCacheObj getLabelcache() {
    long cPtr = mapscriptJNI.get_mapObj_labelcache(swigCPtr);
    return (cPtr == 0) ? null : new labelCacheObj(cPtr, false);
  }

  public void setTransparent(int transparent) {
    mapscriptJNI.set_mapObj_transparent(swigCPtr, transparent);
  }

  public int getTransparent() {
    return mapscriptJNI.get_mapObj_transparent(swigCPtr);
  }

  public void setInterlace(int interlace) {
    mapscriptJNI.set_mapObj_interlace(swigCPtr, interlace);
  }

  public int getInterlace() {
    return mapscriptJNI.get_mapObj_interlace(swigCPtr);
  }

  public void setImagequality(int imagequality) {
    mapscriptJNI.set_mapObj_imagequality(swigCPtr, imagequality);
  }

  public int getImagequality() {
    return mapscriptJNI.get_mapObj_imagequality(swigCPtr);
  }

  public void setExtent(rectObj extent) {
    mapscriptJNI.set_mapObj_extent(swigCPtr, rectObj.getCPtr(extent));
  }

  public rectObj getExtent() {
    long cPtr = mapscriptJNI.get_mapObj_extent(swigCPtr);
    return (cPtr == 0) ? null : new rectObj(cPtr, false);
  }

  public void setCellsize(double cellsize) {
    mapscriptJNI.set_mapObj_cellsize(swigCPtr, cellsize);
  }

  public double getCellsize() {
    return mapscriptJNI.get_mapObj_cellsize(swigCPtr);
  }

  public void setSaved_extent(rectObj saved_extent) {
    mapscriptJNI.set_mapObj_saved_extent(swigCPtr, rectObj.getCPtr(saved_extent));
  }

  public rectObj getSaved_extent() {
    long cPtr = mapscriptJNI.get_mapObj_saved_extent(swigCPtr);
    return (cPtr == 0) ? null : new rectObj(cPtr, false);
  }

  public void setUnits(int units) {
    mapscriptJNI.set_mapObj_units(swigCPtr, units);
  }

  public int getUnits() {
    return mapscriptJNI.get_mapObj_units(swigCPtr);
  }

  public void setScale(double scale) {
    mapscriptJNI.set_mapObj_scale(swigCPtr, scale);
  }

  public double getScale() {
    return mapscriptJNI.get_mapObj_scale(swigCPtr);
  }

  public void setResolution(double resolution) {
    mapscriptJNI.set_mapObj_resolution(swigCPtr, resolution);
  }

  public double getResolution() {
    return mapscriptJNI.get_mapObj_resolution(swigCPtr);
  }

  public void setShapepath(String shapepath) {
    mapscriptJNI.set_mapObj_shapepath(swigCPtr, shapepath);
  }

  public String getShapepath() {
    return mapscriptJNI.get_mapObj_shapepath(swigCPtr);
  }

  public void setMappath(String mappath) {
    mapscriptJNI.set_mapObj_mappath(swigCPtr, mappath);
  }

  public String getMappath() {
    return mapscriptJNI.get_mapObj_mappath(swigCPtr);
  }

  public void setImagecolor(colorObj imagecolor) {
    mapscriptJNI.set_mapObj_imagecolor(swigCPtr, colorObj.getCPtr(imagecolor));
  }

  public colorObj getImagecolor() {
    long cPtr = mapscriptJNI.get_mapObj_imagecolor(swigCPtr);
    return (cPtr == 0) ? null : new colorObj(cPtr, false);
  }

  public int getNumoutputformats() {
    return mapscriptJNI.get_mapObj_numoutputformats(swigCPtr);
  }

  public SWIGTYPE_p_p_outputFormatObj getOutputformatlist() {
    long cPtr = mapscriptJNI.get_mapObj_outputformatlist(swigCPtr);
    return (cPtr == 0) ? null : new SWIGTYPE_p_p_outputFormatObj(cPtr, false);
  }

  public outputFormatObj getOutputformat() {
    long cPtr = mapscriptJNI.get_mapObj_outputformat(swigCPtr);
    return (cPtr == 0) ? null : new outputFormatObj(cPtr, false);
  }

  public String getImagetype() {
    return mapscriptJNI.get_mapObj_imagetype(swigCPtr);
  }

  public referenceMapObj getReference() {
    long cPtr = mapscriptJNI.get_mapObj_reference(swigCPtr);
    return (cPtr == 0) ? null : new referenceMapObj(cPtr, false);
  }

  public scalebarObj getScalebar() {
    long cPtr = mapscriptJNI.get_mapObj_scalebar(swigCPtr);
    return (cPtr == 0) ? null : new scalebarObj(cPtr, false);
  }

  public legendObj getLegend() {
    long cPtr = mapscriptJNI.get_mapObj_legend(swigCPtr);
    return (cPtr == 0) ? null : new legendObj(cPtr, false);
  }

  public queryMapObj getQuerymap() {
    long cPtr = mapscriptJNI.get_mapObj_querymap(swigCPtr);
    return (cPtr == 0) ? null : new queryMapObj(cPtr, false);
  }

  public webObj getWeb() {
    long cPtr = mapscriptJNI.get_mapObj_web(swigCPtr);
    return (cPtr == 0) ? null : new webObj(cPtr, false);
  }

  public void setLayerorder(SWIGTYPE_p_int layerorder) {
    mapscriptJNI.set_mapObj_layerorder(swigCPtr, SWIGTYPE_p_int.getCPtr(layerorder));
  }

  public SWIGTYPE_p_int getLayerorder() {
    long cPtr = mapscriptJNI.get_mapObj_layerorder(swigCPtr);
    return (cPtr == 0) ? null : new SWIGTYPE_p_int(cPtr, false);
  }

  public void setDebug(int debug) {
    mapscriptJNI.set_mapObj_debug(swigCPtr, debug);
  }

  public int getDebug() {
    return mapscriptJNI.get_mapObj_debug(swigCPtr);
  }

  public void setDatapattern(String datapattern) {
    mapscriptJNI.set_mapObj_datapattern(swigCPtr, datapattern);
  }

  public String getDatapattern() {
    return mapscriptJNI.get_mapObj_datapattern(swigCPtr);
  }

  public void setTemplatepattern(String templatepattern) {
    mapscriptJNI.set_mapObj_templatepattern(swigCPtr, templatepattern);
  }

  public String getTemplatepattern() {
    return mapscriptJNI.get_mapObj_templatepattern(swigCPtr);
  }

  public hashTableObj getConfigoptions() {
    long cPtr = mapscriptJNI.get_mapObj_configoptions(swigCPtr);
    return (cPtr == 0) ? null : new hashTableObj(cPtr, false);
  }

  public mapObj(String filename) {
    this(mapscriptJNI.new_mapObj(filename), true);
  }

  public mapObj cloneMap() {
    long cPtr = mapscriptJNI.mapObj_cloneMap(swigCPtr);
    return (cPtr == 0) ? null : new mapObj(cPtr, true);
  }

  public int insertLayer(layerObj layer, int index) {
    return mapscriptJNI.mapObj_insertLayer(swigCPtr, layerObj.getCPtr(layer), index);
  }

  public layerObj removeLayer(int index) {
    long cPtr = mapscriptJNI.mapObj_removeLayer(swigCPtr, index);
    return (cPtr == 0) ? null : new layerObj(cPtr, true);
  }

  public int setExtent(double minx, double miny, double maxx, double maxy) {
    return mapscriptJNI.mapObj_setExtent(swigCPtr, minx, miny, maxx, maxy);
  }

  public int setSize(int width, int height) {
    return mapscriptJNI.mapObj_setSize(swigCPtr, width, height);
  }

  public int setRotation(double rotation_angle) {
    return mapscriptJNI.mapObj_setRotation(swigCPtr, rotation_angle);
  }

  public layerObj getLayer(int i) {
    long cPtr = mapscriptJNI.mapObj_getLayer(swigCPtr, i);
    return (cPtr == 0) ? null : new layerObj(cPtr, false);
  }

  public layerObj getLayerByName(String name) {
    long cPtr = mapscriptJNI.mapObj_getLayerByName(swigCPtr, name);
    return (cPtr == 0) ? null : new layerObj(cPtr, false);
  }

  public int getSymbolByName(String name) {
    return mapscriptJNI.mapObj_getSymbolByName(swigCPtr, name);
  }

  public void prepareQuery() {
    mapscriptJNI.mapObj_prepareQuery(swigCPtr);
  }

  public imageObj prepareImage() {
    long cPtr = mapscriptJNI.mapObj_prepareImage(swigCPtr);
    return (cPtr == 0) ? null : new imageObj(cPtr, true);
  }

  public void setImageType(String imagetype) {
    mapscriptJNI.mapObj_setImageType(swigCPtr, imagetype);
  }

  public void selectOutputFormat(String imagetype) {
    mapscriptJNI.mapObj_selectOutputFormat(swigCPtr, imagetype);
  }

  public void setOutputFormat(outputFormatObj format) {
    mapscriptJNI.mapObj_setOutputFormat(swigCPtr, outputFormatObj.getCPtr(format));
  }

  public imageObj draw() {
    long cPtr = mapscriptJNI.mapObj_draw(swigCPtr);
    return (cPtr == 0) ? null : new imageObj(cPtr, true);
  }

  public imageObj drawQuery() {
    long cPtr = mapscriptJNI.mapObj_drawQuery(swigCPtr);
    return (cPtr == 0) ? null : new imageObj(cPtr, true);
  }

  public imageObj drawLegend() {
    long cPtr = mapscriptJNI.mapObj_drawLegend(swigCPtr);
    return (cPtr == 0) ? null : new imageObj(cPtr, true);
  }

  public imageObj drawScalebar() {
    long cPtr = mapscriptJNI.mapObj_drawScalebar(swigCPtr);
    return (cPtr == 0) ? null : new imageObj(cPtr, true);
  }

  public imageObj drawReferenceMap() {
    long cPtr = mapscriptJNI.mapObj_drawReferenceMap(swigCPtr);
    return (cPtr == 0) ? null : new imageObj(cPtr, true);
  }

  public int embedScalebar(imageObj image) {
    return mapscriptJNI.mapObj_embedScalebar(swigCPtr, imageObj.getCPtr(image));
  }

  public int embedLegend(imageObj image) {
    return mapscriptJNI.mapObj_embedLegend(swigCPtr, imageObj.getCPtr(image));
  }

  public int drawLabelCache(imageObj image) {
    return mapscriptJNI.mapObj_drawLabelCache(swigCPtr, imageObj.getCPtr(image));
  }

  public labelCacheMemberObj getLabel(int i) {
    long cPtr = mapscriptJNI.mapObj_getLabel(swigCPtr, i);
    return (cPtr == 0) ? null : new labelCacheMemberObj(cPtr, false);
  }

  public labelCacheMemberObj nextLabel() {
    long cPtr = mapscriptJNI.mapObj_nextLabel(swigCPtr);
    return (cPtr == 0) ? null : new labelCacheMemberObj(cPtr, false);
  }

  public int queryByPoint(pointObj point, int mode, double buffer) {
    return mapscriptJNI.mapObj_queryByPoint(swigCPtr, pointObj.getCPtr(point), mode, buffer);
  }

  public int queryByRect(rectObj rect) {
    return mapscriptJNI.mapObj_queryByRect(swigCPtr, rectObj.getCPtr(rect));
  }

  public int queryByFeatures(int slayer) {
    return mapscriptJNI.mapObj_queryByFeatures(swigCPtr, slayer);
  }

  public int queryByShape(shapeObj shape) {
    return mapscriptJNI.mapObj_queryByShape(swigCPtr, shapeObj.getCPtr(shape));
  }

  public int setWKTProjection(String wkt) {
    return mapscriptJNI.mapObj_setWKTProjection(swigCPtr, wkt);
  }

  public String getProjection() {
    return mapscriptJNI.mapObj_getProjection(swigCPtr);
  }

  public int setProjection(String proj4) {
    return mapscriptJNI.mapObj_setProjection(swigCPtr, proj4);
  }

  public int save(String filename) {
    return mapscriptJNI.mapObj_save(swigCPtr, filename);
  }

  public int saveQuery(String filename) {
    return mapscriptJNI.mapObj_saveQuery(swigCPtr, filename);
  }

  public int loadQuery(String filename) {
    return mapscriptJNI.mapObj_loadQuery(swigCPtr, filename);
  }

  public void freeQuery(int qlayer) {
    mapscriptJNI.mapObj_freeQuery(swigCPtr, qlayer);
  }

  public int saveQueryAsGML(String filename, String ns) {
    return mapscriptJNI.mapObj_saveQueryAsGML(swigCPtr, filename, ns);
  }

  public String getMetaData(String name) {
    return mapscriptJNI.mapObj_getMetaData(swigCPtr, name);
  }

  public int setMetaData(String name, String value) {
    return mapscriptJNI.mapObj_setMetaData(swigCPtr, name, value);
  }

  public int removeMetaData(String name) {
    return mapscriptJNI.mapObj_removeMetaData(swigCPtr, name);
  }

  public String getFirstMetaDataKey() {
    return mapscriptJNI.mapObj_getFirstMetaDataKey(swigCPtr);
  }

  public String getNextMetaDataKey(String lastkey) {
    return mapscriptJNI.mapObj_getNextMetaDataKey(swigCPtr, lastkey);
  }

  public int setSymbolSet(String szFileName) {
    return mapscriptJNI.mapObj_setSymbolSet(swigCPtr, szFileName);
  }

  public int getNumSymbols() {
    return mapscriptJNI.mapObj_getNumSymbols(swigCPtr);
  }

  public int setFontSet(String filename) {
    return mapscriptJNI.mapObj_setFontSet(swigCPtr, filename);
  }

  public int saveMapContext(String szFileName) {
    return mapscriptJNI.mapObj_saveMapContext(swigCPtr, szFileName);
  }

  public int loadMapContext(String szFileName, int useUniqueNames) {
    return mapscriptJNI.mapObj_loadMapContext(swigCPtr, szFileName, useUniqueNames);
  }

  public int moveLayerUp(int layerindex) {
    return mapscriptJNI.mapObj_moveLayerUp(swigCPtr, layerindex);
  }

  public int moveLayerDown(int layerindex) {
    return mapscriptJNI.mapObj_moveLayerDown(swigCPtr, layerindex);
  }

  public intarray getLayersDrawingOrder() {
    long cPtr = mapscriptJNI.mapObj_getLayersDrawingOrder(swigCPtr);
    return (cPtr == 0) ? null : new intarray(cPtr, true);
  }

  public int setLayersDrawingOrder(SWIGTYPE_p_int panIndexes) {
    return mapscriptJNI.mapObj_setLayersDrawingOrder(swigCPtr, SWIGTYPE_p_int.getCPtr(panIndexes));
  }

  public void setConfigOption(String key, String value) {
    mapscriptJNI.mapObj_setConfigOption(swigCPtr, key, value);
  }

  public String getConfigOption(String key) {
    return mapscriptJNI.mapObj_getConfigOption(swigCPtr, key);
  }

  public void applyConfigOptions() {
    mapscriptJNI.mapObj_applyConfigOptions(swigCPtr);
  }

  public int applySLD(String sld) {
    return mapscriptJNI.mapObj_applySLD(swigCPtr, sld);
  }

  public int applySLDURL(String sld) {
    return mapscriptJNI.mapObj_applySLDURL(swigCPtr, sld);
  }

  public String generateSLD() {
    return mapscriptJNI.mapObj_generateSLD(swigCPtr);
  }

  public String processTemplate(int bGenerateImages, SWIGTYPE_p_p_char names, SWIGTYPE_p_p_char values, int numentries) {
    return mapscriptJNI.mapObj_processTemplate(swigCPtr, bGenerateImages, SWIGTYPE_p_p_char.getCPtr(names), SWIGTYPE_p_p_char.getCPtr(values), numentries);
  }

  public String processLegendTemplate(SWIGTYPE_p_p_char names, SWIGTYPE_p_p_char values, int numentries) {
    return mapscriptJNI.mapObj_processLegendTemplate(swigCPtr, SWIGTYPE_p_p_char.getCPtr(names), SWIGTYPE_p_p_char.getCPtr(values), numentries);
  }

  public String processQueryTemplate(SWIGTYPE_p_p_char names, SWIGTYPE_p_p_char values, int numentries) {
    return mapscriptJNI.mapObj_processQueryTemplate(swigCPtr, SWIGTYPE_p_p_char.getCPtr(names), SWIGTYPE_p_p_char.getCPtr(values), numentries);
  }

  public outputFormatObj getOutputFormatByName(String name) {
    long cPtr = mapscriptJNI.mapObj_getOutputFormatByName(swigCPtr, name);
    return (cPtr == 0) ? null : new outputFormatObj(cPtr, false);
  }

  public int appendOutputFormat(outputFormatObj format) {
    return mapscriptJNI.mapObj_appendOutputFormat(swigCPtr, outputFormatObj.getCPtr(format));
  }

  public int removeOutputFormat(String name) {
    return mapscriptJNI.mapObj_removeOutputFormat(swigCPtr, name);
  }

  public int loadOWSParameters(OWSRequest request, String wmtver_string) {
    return mapscriptJNI.mapObj_loadOWSParameters(swigCPtr, OWSRequest.getCPtr(request), wmtver_string);
  }

  public int OWSDispatch(OWSRequest req) {
    return mapscriptJNI.mapObj_OWSDispatch(swigCPtr, OWSRequest.getCPtr(req));
  }

  public int zoomPoint(int zoomfactor, pointObj poPixPos, int width, int height, rectObj poGeorefExt, rectObj poMaxGeorefExt) {
    return mapscriptJNI.mapObj_zoomPoint(swigCPtr, zoomfactor, pointObj.getCPtr(poPixPos), width, height, rectObj.getCPtr(poGeorefExt), rectObj.getCPtr(poMaxGeorefExt));
  }

  public int zoomRectangle(rectObj poPixRect, int width, int height, rectObj poGeorefExt, rectObj poMaxGeorefExt) {
    return mapscriptJNI.mapObj_zoomRectangle(swigCPtr, rectObj.getCPtr(poPixRect), width, height, rectObj.getCPtr(poGeorefExt), rectObj.getCPtr(poMaxGeorefExt));
  }

  public int zoomScale(double scale, pointObj poPixPos, int width, int height, rectObj poGeorefExt, rectObj poMaxGeorefExt) {
    return mapscriptJNI.mapObj_zoomScale(swigCPtr, scale, pointObj.getCPtr(poPixPos), width, height, rectObj.getCPtr(poGeorefExt), rectObj.getCPtr(poMaxGeorefExt));
  }

}

Generated by  Doxygen 1.6.0   Back to index