/* ----------------------------------------------------------------------------
* 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 IInfo implements hep.aida.IInfo {
private long swigCPtr;
protected boolean swigCMemOwn;
public IInfo(long cPtr, boolean cMemoryOwn) {
swigCMemOwn = cMemoryOwn;
swigCPtr = cPtr;
}
protected static long getCPtr(hep.aida.IInfo obj) {
if (obj instanceof IInfo) {
return (obj == null) ? 0 : ((IInfo)obj).swigCPtr;
} else {
long cPtr = AIDAJNI.new_IInfo();
// FIXME, memory leak if Java class gets finalized, since C++ director is not freed.
AIDAJNI.IInfo_director_connect(obj, cPtr, true, true);
return cPtr;
}
}
protected void finalize() {
delete();
}
public synchronized void delete() {
if(swigCPtr != 0 && swigCMemOwn) {
swigCMemOwn = false;
AIDAJNI.delete_IInfo(swigCPtr);
}
swigCPtr = 0;
}
protected void swigDirectorDisconnect() {
swigCMemOwn = false;
delete();
}
public void swigReleaseOwnership() {
swigCMemOwn = false;
AIDAJNI.IInfo_change_ownership(this, swigCPtr, false);
}
public void swigTakeOwnership() {
swigCMemOwn = true;
AIDAJNI.IInfo_change_ownership(this, swigCPtr, true);
}
public void clear() {
AIDAJNI.IInfo_clear(swigCPtr, this);
}
public void addText(String text) {
AIDAJNI.IInfo_addText(swigCPtr, this, text);
}
public void addLegend(hep.aida.IMarkerStyle style, String description) {
AIDAJNI.IInfo_addLegend__SWIG_0(swigCPtr, this, IMarkerStyle.getCPtr(style), (hep.aida.IMarkerStyle)style, description);
}
public void addLegend(hep.aida.ILineStyle style, String description) {
AIDAJNI.IInfo_addLegend__SWIG_1(swigCPtr, this, ILineStyle.getCPtr(style), (hep.aida.ILineStyle)style, description);
}
public void addLegend(hep.aida.IFillStyle style, String description) {
AIDAJNI.IInfo_addLegend__SWIG_2(swigCPtr, this, IFillStyle.getCPtr(style), (hep.aida.IFillStyle)style, description);
}
public IInfo() {
this(AIDAJNI.new_IInfo(), true);
AIDAJNI.IInfo_director_connect(this, swigCPtr, swigCMemOwn, true);
}
}