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

layerObj.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 layerObj {
  private long swigCPtr;
  protected boolean swigCMemOwn;

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

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

  protected void finalize() {
    delete();
  }

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

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

  public void setClassitem(String classitem) {
    mapscriptJNI.set_layerObj_classitem(swigCPtr, classitem);
  }

  public String getClassitem() {
    return mapscriptJNI.get_layerObj_classitem(swigCPtr);
  }

  public int getNumclasses() {
    return mapscriptJNI.get_layerObj_numclasses(swigCPtr);
  }

  public int getIndex() {
    return mapscriptJNI.get_layerObj_index(swigCPtr);
  }

  public mapObj getMap() {
    long cPtr = mapscriptJNI.get_layerObj_map(swigCPtr);
    return (cPtr == 0) ? null : new mapObj(cPtr, false);
  }

  public void setHeader(String header) {
    mapscriptJNI.set_layerObj_header(swigCPtr, header);
  }

  public String getHeader() {
    return mapscriptJNI.get_layerObj_header(swigCPtr);
  }

  public void setFooter(String footer) {
    mapscriptJNI.set_layerObj_footer(swigCPtr, footer);
  }

  public String getFooter() {
    return mapscriptJNI.get_layerObj_footer(swigCPtr);
  }

  public void setTemplate(String template) {
    mapscriptJNI.set_layerObj_template(swigCPtr, template);
  }

  public String getTemplate() {
    return mapscriptJNI.get_layerObj_template(swigCPtr);
  }

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

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

  public void setGroup(String group) {
    mapscriptJNI.set_layerObj_group(swigCPtr, group);
  }

  public String getGroup() {
    return mapscriptJNI.get_layerObj_group(swigCPtr);
  }

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

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

  public void setData(String data) {
    mapscriptJNI.set_layerObj_data(swigCPtr, data);
  }

  public String getData() {
    return mapscriptJNI.get_layerObj_data(swigCPtr);
  }

  public void setType(int type) {
    mapscriptJNI.set_layerObj_type(swigCPtr, type);
  }

  public int getType() {
    return mapscriptJNI.get_layerObj_type(swigCPtr);
  }

  public void setTolerance(double tolerance) {
    mapscriptJNI.set_layerObj_tolerance(swigCPtr, tolerance);
  }

  public double getTolerance() {
    return mapscriptJNI.get_layerObj_tolerance(swigCPtr);
  }

  public void setToleranceunits(int toleranceunits) {
    mapscriptJNI.set_layerObj_toleranceunits(swigCPtr, toleranceunits);
  }

  public int getToleranceunits() {
    return mapscriptJNI.get_layerObj_toleranceunits(swigCPtr);
  }

  public void setSymbolscale(double symbolscale) {
    mapscriptJNI.set_layerObj_symbolscale(swigCPtr, symbolscale);
  }

  public double getSymbolscale() {
    return mapscriptJNI.get_layerObj_symbolscale(swigCPtr);
  }

  public void setMinscale(double minscale) {
    mapscriptJNI.set_layerObj_minscale(swigCPtr, minscale);
  }

  public double getMinscale() {
    return mapscriptJNI.get_layerObj_minscale(swigCPtr);
  }

  public void setMaxscale(double maxscale) {
    mapscriptJNI.set_layerObj_maxscale(swigCPtr, maxscale);
  }

  public double getMaxscale() {
    return mapscriptJNI.get_layerObj_maxscale(swigCPtr);
  }

  public void setLabelminscale(double labelminscale) {
    mapscriptJNI.set_layerObj_labelminscale(swigCPtr, labelminscale);
  }

  public double getLabelminscale() {
    return mapscriptJNI.get_layerObj_labelminscale(swigCPtr);
  }

  public void setLabelmaxscale(double labelmaxscale) {
    mapscriptJNI.set_layerObj_labelmaxscale(swigCPtr, labelmaxscale);
  }

  public double getLabelmaxscale() {
    return mapscriptJNI.get_layerObj_labelmaxscale(swigCPtr);
  }

  public void setSizeunits(int sizeunits) {
    mapscriptJNI.set_layerObj_sizeunits(swigCPtr, sizeunits);
  }

  public int getSizeunits() {
    return mapscriptJNI.get_layerObj_sizeunits(swigCPtr);
  }

  public void setMaxfeatures(int maxfeatures) {
    mapscriptJNI.set_layerObj_maxfeatures(swigCPtr, maxfeatures);
  }

  public int getMaxfeatures() {
    return mapscriptJNI.get_layerObj_maxfeatures(swigCPtr);
  }

  public void setOffsite(colorObj offsite) {
    mapscriptJNI.set_layerObj_offsite(swigCPtr, colorObj.getCPtr(offsite));
  }

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

  public void setTransform(int transform) {
    mapscriptJNI.set_layerObj_transform(swigCPtr, transform);
  }

  public int getTransform() {
    return mapscriptJNI.get_layerObj_transform(swigCPtr);
  }

  public void setLabelcache(int labelcache) {
    mapscriptJNI.set_layerObj_labelcache(swigCPtr, labelcache);
  }

  public int getLabelcache() {
    return mapscriptJNI.get_layerObj_labelcache(swigCPtr);
  }

  public void setPostlabelcache(int postlabelcache) {
    mapscriptJNI.set_layerObj_postlabelcache(swigCPtr, postlabelcache);
  }

  public int getPostlabelcache() {
    return mapscriptJNI.get_layerObj_postlabelcache(swigCPtr);
  }

  public void setLabelitem(String labelitem) {
    mapscriptJNI.set_layerObj_labelitem(swigCPtr, labelitem);
  }

  public String getLabelitem() {
    return mapscriptJNI.get_layerObj_labelitem(swigCPtr);
  }

  public void setLabelsizeitem(String labelsizeitem) {
    mapscriptJNI.set_layerObj_labelsizeitem(swigCPtr, labelsizeitem);
  }

  public String getLabelsizeitem() {
    return mapscriptJNI.get_layerObj_labelsizeitem(swigCPtr);
  }

  public void setLabelangleitem(String labelangleitem) {
    mapscriptJNI.set_layerObj_labelangleitem(swigCPtr, labelangleitem);
  }

  public String getLabelangleitem() {
    return mapscriptJNI.get_layerObj_labelangleitem(swigCPtr);
  }

  public void setTileitem(String tileitem) {
    mapscriptJNI.set_layerObj_tileitem(swigCPtr, tileitem);
  }

  public String getTileitem() {
    return mapscriptJNI.get_layerObj_tileitem(swigCPtr);
  }

  public void setTileindex(String tileindex) {
    mapscriptJNI.set_layerObj_tileindex(swigCPtr, tileindex);
  }

  public String getTileindex() {
    return mapscriptJNI.get_layerObj_tileindex(swigCPtr);
  }

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

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

  public void setConnection(String connection) {
    mapscriptJNI.set_layerObj_connection(swigCPtr, connection);
  }

  public String getConnection() {
    return mapscriptJNI.get_layerObj_connection(swigCPtr);
  }

  public void setPlugin_library(String plugin_library) {
    mapscriptJNI.set_layerObj_plugin_library(swigCPtr, plugin_library);
  }

  public String getPlugin_library() {
    return mapscriptJNI.get_layerObj_plugin_library(swigCPtr);
  }

  public void setPlugin_library_original(String plugin_library_original) {
    mapscriptJNI.set_layerObj_plugin_library_original(swigCPtr, plugin_library_original);
  }

  public String getPlugin_library_original() {
    return mapscriptJNI.get_layerObj_plugin_library_original(swigCPtr);
  }

  public void setConnectiontype(int connectiontype) {
    mapscriptJNI.set_layerObj_connectiontype(swigCPtr, connectiontype);
  }

  public int getConnectiontype() {
    return mapscriptJNI.get_layerObj_connectiontype(swigCPtr);
  }

  public int getNumitems() {
    return mapscriptJNI.get_layerObj_numitems(swigCPtr);
  }

  public void setBandsitem(String bandsitem) {
    mapscriptJNI.set_layerObj_bandsitem(swigCPtr, bandsitem);
  }

  public String getBandsitem() {
    return mapscriptJNI.get_layerObj_bandsitem(swigCPtr);
  }

  public void setFilteritem(String filteritem) {
    mapscriptJNI.set_layerObj_filteritem(swigCPtr, filteritem);
  }

  public String getFilteritem() {
    return mapscriptJNI.get_layerObj_filteritem(swigCPtr);
  }

  public void setStyleitem(String styleitem) {
    mapscriptJNI.set_layerObj_styleitem(swigCPtr, styleitem);
  }

  public String getStyleitem() {
    return mapscriptJNI.get_layerObj_styleitem(swigCPtr);
  }

  public void setRequires(String requires) {
    mapscriptJNI.set_layerObj_requires(swigCPtr, requires);
  }

  public String getRequires() {
    return mapscriptJNI.get_layerObj_requires(swigCPtr);
  }

  public void setLabelrequires(String labelrequires) {
    mapscriptJNI.set_layerObj_labelrequires(swigCPtr, labelrequires);
  }

  public String getLabelrequires() {
    return mapscriptJNI.get_layerObj_labelrequires(swigCPtr);
  }

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

  public void setTransparency(int transparency) {
    mapscriptJNI.set_layerObj_transparency(swigCPtr, transparency);
  }

  public int getTransparency() {
    return mapscriptJNI.get_layerObj_transparency(swigCPtr);
  }

  public void setDump(int dump) {
    mapscriptJNI.set_layerObj_dump(swigCPtr, dump);
  }

  public int getDump() {
    return mapscriptJNI.get_layerObj_dump(swigCPtr);
  }

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

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

  public int getNumprocessing() {
    return mapscriptJNI.get_layerObj_numprocessing(swigCPtr);
  }

  public int getNumjoins() {
    return mapscriptJNI.get_layerObj_numjoins(swigCPtr);
  }

  public layerObj(mapObj map) {
    this(mapscriptJNI.new_layerObj(mapObj.getCPtr(map)), true);
  }

  public layerObj cloneLayer() {
    long cPtr = mapscriptJNI.layerObj_cloneLayer(swigCPtr);
    return (cPtr == 0) ? null : new layerObj(cPtr, true);
  }

  public int insertClass(classObj classobj, int index) {
    return mapscriptJNI.layerObj_insertClass(swigCPtr, classObj.getCPtr(classobj), index);
  }

  public classObj removeClass(int index) {
    long cPtr = mapscriptJNI.layerObj_removeClass(swigCPtr, index);
    return (cPtr == 0) ? null : new classObj(cPtr, true);
  }

  public int open() {
    return mapscriptJNI.layerObj_open(swigCPtr);
  }

  public int whichShapes(rectObj rect) {
    return mapscriptJNI.layerObj_whichShapes(swigCPtr, rectObj.getCPtr(rect));
  }

  public shapeObj nextShape() {
    long cPtr = mapscriptJNI.layerObj_nextShape(swigCPtr);
    return (cPtr == 0) ? null : new shapeObj(cPtr, true);
  }

  public void close() {
    mapscriptJNI.layerObj_close(swigCPtr);
  }

  public shapeObj getFeature(int shapeindex, int tileindex) {
    long cPtr = mapscriptJNI.layerObj_getFeature(swigCPtr, shapeindex, tileindex);
    return (cPtr == 0) ? null : new shapeObj(cPtr, true);
  }

  public int getShape(shapeObj shape, int tileindex, int shapeindex) {
    return mapscriptJNI.layerObj_getShape(swigCPtr, shapeObj.getCPtr(shape), tileindex, shapeindex);
  }

  public int getNumResults() {
    return mapscriptJNI.layerObj_getNumResults(swigCPtr);
  }

  public resultCacheMemberObj getResult(int i) {
    long cPtr = mapscriptJNI.layerObj_getResult(swigCPtr, i);
    return (cPtr == 0) ? null : new resultCacheMemberObj(cPtr, false);
  }

  public classObj getClass(int i) {
    long cPtr = mapscriptJNI.layerObj_getClass(swigCPtr, i);
    return (cPtr == 0) ? null : new classObj(cPtr, false);
  }

  public String getItem(int i) {
    return mapscriptJNI.layerObj_getItem(swigCPtr, i);
  }

  public int draw(mapObj map, imageObj image) {
    return mapscriptJNI.layerObj_draw(swigCPtr, mapObj.getCPtr(map), imageObj.getCPtr(image));
  }

  public int drawQuery(mapObj map, imageObj image) {
    return mapscriptJNI.layerObj_drawQuery(swigCPtr, mapObj.getCPtr(map), imageObj.getCPtr(image));
  }

  public int queryByAttributes(mapObj map, String qitem, String qstring, int mode) {
    return mapscriptJNI.layerObj_queryByAttributes(swigCPtr, mapObj.getCPtr(map), qitem, qstring, mode);
  }

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

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

  public int queryByFeatures(mapObj map, int slayer) {
    return mapscriptJNI.layerObj_queryByFeatures(swigCPtr, mapObj.getCPtr(map), slayer);
  }

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

  public int queryByIndex(mapObj map, int tileindex, int shapeindex, int bAddToQuery) {
    return mapscriptJNI.layerObj_queryByIndex(swigCPtr, mapObj.getCPtr(map), tileindex, shapeindex, bAddToQuery);
  }

  public resultCacheObj getResults() {
    long cPtr = mapscriptJNI.layerObj_getResults(swigCPtr);
    return (cPtr == 0) ? null : new resultCacheObj(cPtr, false);
  }

  public int setFilter(String filter) {
    return mapscriptJNI.layerObj_setFilter(swigCPtr, filter);
  }

  public String getFilterString() {
    return mapscriptJNI.layerObj_getFilterString(swigCPtr);
  }

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

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

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

  public int addFeature(shapeObj shape) {
    return mapscriptJNI.layerObj_addFeature(swigCPtr, shapeObj.getCPtr(shape));
  }

  public int getNumFeatures() {
    return mapscriptJNI.layerObj_getNumFeatures(swigCPtr);
  }

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

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

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

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

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

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

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

  public String getWMSFeatureInfoURL(mapObj map, int click_x, int click_y, int feature_count, String info_format) {
    return mapscriptJNI.layerObj_getWMSFeatureInfoURL(swigCPtr, mapObj.getCPtr(map), click_x, click_y, feature_count, info_format);
  }

  public String executeWFSGetFeature(layerObj layer) {
    return mapscriptJNI.layerObj_executeWFSGetFeature(swigCPtr, layerObj.getCPtr(layer));
  }

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

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

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

  public int isVisible() {
    return mapscriptJNI.layerObj_isVisible(swigCPtr);
  }

  public int moveClassUp(int index) {
    return mapscriptJNI.layerObj_moveClassUp(swigCPtr, index);
  }

  public int moveClassDown(int index) {
    return mapscriptJNI.layerObj_moveClassDown(swigCPtr, index);
  }

  public void setProcessingKey(String key, String value) {
    mapscriptJNI.layerObj_setProcessingKey(swigCPtr, key, value);
  }

  public void setProcessing(String directive) {
    mapscriptJNI.layerObj_setProcessing(swigCPtr, directive);
  }

  public void addProcessing(String directive) {
    mapscriptJNI.layerObj_addProcessing(swigCPtr, directive);
  }

  public String getProcessing(int index) {
    return mapscriptJNI.layerObj_getProcessing(swigCPtr, index);
  }

  public int clearProcessing() {
    return mapscriptJNI.layerObj_clearProcessing(swigCPtr);
  }

}

Generated by  Doxygen 1.6.0   Back to index