/* ----------------------------------------------------------------------------
* This file was automatically generated by SWIG (http://www.swig.org).
* Version 1.3.31
*
* Do not make changes to this file unless you know what you are doing--modify
* the SWIG interface file instead.
* ----------------------------------------------------------------------------- */
package hep.aida.swig;
import hep.aida.jni.AIDAJNIUtil;
public class IPlotterLayout implements hep.aida.IPlotterLayout {
private long swigCPtr;
protected boolean swigCMemOwn;
public IPlotterLayout(long cPtr, boolean cMemoryOwn) {
swigCMemOwn = cMemoryOwn;
swigCPtr = cPtr;
}
protected static long getCPtr(hep.aida.IPlotterLayout obj) {
if (obj instanceof IPlotterLayout) {
return (obj == null) ? 0 : ((IPlotterLayout)obj).swigCPtr;
} else {
long cPtr = AIDAJNI.new_IPlotterLayout();
// FIXME, memory leak if Java class gets finalized, since C++ director is not freed.
AIDAJNI.IPlotterLayout_director_connect(obj, cPtr, true, true);
return cPtr;
}
}
protected void finalize() {
delete();
}
public synchronized void delete() {
if(swigCPtr != 0 && swigCMemOwn) {
swigCMemOwn = false;
AIDAJNI.delete_IPlotterLayout(swigCPtr);
}
swigCPtr = 0;
}
protected void swigDirectorDisconnect() {
swigCMemOwn = false;
delete();
}
public void swigReleaseOwnership() {
swigCMemOwn = false;
AIDAJNI.IPlotterLayout_change_ownership(this, swigCPtr, false);
}
public void swigTakeOwnership() {
swigCMemOwn = true;
AIDAJNI.IPlotterLayout_change_ownership(this, swigCPtr, true);
}
public void reset() {
AIDAJNI.IPlotterLayout_reset(swigCPtr, this);
}
public boolean setParameter(String paramName, double paramValue) {
return AIDAJNI.IPlotterLayout_setParameter(swigCPtr, this, paramName, paramValue);
}
public double parameterValue(String paramName) {
return AIDAJNI.IPlotterLayout_parameterValue(swigCPtr, this, paramName);
}
public String[] availableParameters() {
return AIDAJNIUtil.toStringArray(AIDAJNI.IPlotterLayout_availableParameters(swigCPtr, this));
}
public IPlotterLayout() {
this(AIDAJNI.new_IPlotterLayout(), true);
AIDAJNI.IPlotterLayout_director_connect(this, swigCPtr, swigCMemOwn, true);
}
}