/* ----------------------------------------------------------------------------
 * 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 referenceMapObj {
  private long swigCPtr;
  protected boolean swigCMemOwn;

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

  protected void finalize() {
    delete();
  }

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

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

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

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

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

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

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

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

  public void setColor(colorObj color) {
    mapscriptJNI.set_referenceMapObj_color(swigCPtr, colorObj.getCPtr(color));
  }

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

  public void setOutlinecolor(colorObj outlinecolor) {
    mapscriptJNI.set_referenceMapObj_outlinecolor(swigCPtr, colorObj.getCPtr(outlinecolor));
  }

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

  public void setImage(String image) {
    mapscriptJNI.set_referenceMapObj_image(swigCPtr, image);
  }

  public String getImage() {
    return mapscriptJNI.get_referenceMapObj_image(swigCPtr);
  }

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

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

  public void setMarker(int marker) {
    mapscriptJNI.set_referenceMapObj_marker(swigCPtr, marker);
  }

  public int getMarker() {
    return mapscriptJNI.get_referenceMapObj_marker(swigCPtr);
  }

  public void setMarkername(String markername) {
    mapscriptJNI.set_referenceMapObj_markername(swigCPtr, markername);
  }

  public String getMarkername() {
    return mapscriptJNI.get_referenceMapObj_markername(swigCPtr);
  }

  public void setMarkersize(int markersize) {
    mapscriptJNI.set_referenceMapObj_markersize(swigCPtr, markersize);
  }

  public int getMarkersize() {
    return mapscriptJNI.get_referenceMapObj_markersize(swigCPtr);
  }

  public void setMinboxsize(int minboxsize) {
    mapscriptJNI.set_referenceMapObj_minboxsize(swigCPtr, minboxsize);
  }

  public int getMinboxsize() {
    return mapscriptJNI.get_referenceMapObj_minboxsize(swigCPtr);
  }

  public void setMaxboxsize(int maxboxsize) {
    mapscriptJNI.set_referenceMapObj_maxboxsize(swigCPtr, maxboxsize);
  }

  public int getMaxboxsize() {
    return mapscriptJNI.get_referenceMapObj_maxboxsize(swigCPtr);
  }

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

  public referenceMapObj() {
    this(mapscriptJNI.new_referenceMapObj(), true);
  }

}
