/* ---------------------------------------------------------------------------- * 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 IPlotter implements hep.aida.IPlotter { private long swigCPtr; protected boolean swigCMemOwn; public IPlotter(long cPtr, boolean cMemoryOwn) { swigCMemOwn = cMemoryOwn; swigCPtr = cPtr; } protected static long getCPtr(hep.aida.IPlotter obj) { if (obj instanceof IPlotter) { return (obj == null) ? 0 : ((IPlotter)obj).swigCPtr; } else { long cPtr = AIDAJNI.new_IPlotter(); // FIXME, memory leak if Java class gets finalized, since C++ director is not freed. AIDAJNI.IPlotter_director_connect(obj, cPtr, true, true); return cPtr; } } protected void finalize() { delete(); } public synchronized void delete() { if(swigCPtr != 0 && swigCMemOwn) { swigCMemOwn = false; AIDAJNI.delete_IPlotter(swigCPtr); } swigCPtr = 0; } protected void swigDirectorDisconnect() { swigCMemOwn = false; delete(); } public void swigReleaseOwnership() { swigCMemOwn = false; AIDAJNI.IPlotter_change_ownership(this, swigCPtr, false); } public void swigTakeOwnership() { swigCMemOwn = true; AIDAJNI.IPlotter_change_ownership(this, swigCPtr, true); } public hep.aida.IPlotterRegion createRegion(double x, double y, double w, double h) { long cPtr = AIDAJNI.IPlotter_createRegion__SWIG_0(swigCPtr, this, x, y, w, h); return (cPtr == 0) ? null : new IPlotterRegion(cPtr, false); } public hep.aida.IPlotterRegion createRegion(double x, double y, double w) { long cPtr = AIDAJNI.IPlotter_createRegion__SWIG_1(swigCPtr, this, x, y, w); return (cPtr == 0) ? null : new IPlotterRegion(cPtr, false); } public hep.aida.IPlotterRegion createRegion(double x, double y) { long cPtr = AIDAJNI.IPlotter_createRegion__SWIG_2(swigCPtr, this, x, y); return (cPtr == 0) ? null : new IPlotterRegion(cPtr, false); } public hep.aida.IPlotterRegion createRegion(double x) { long cPtr = AIDAJNI.IPlotter_createRegion__SWIG_3(swigCPtr, this, x); return (cPtr == 0) ? null : new IPlotterRegion(cPtr, false); } public hep.aida.IPlotterRegion createRegion() { long cPtr = AIDAJNI.IPlotter_createRegion__SWIG_4(swigCPtr, this); return (cPtr == 0) ? null : new IPlotterRegion(cPtr, false); } public void createRegions(int columns, int rows, int index) { AIDAJNI.IPlotter_createRegions__SWIG_0(swigCPtr, this, columns, rows, index); } public void createRegions(int columns, int rows) { AIDAJNI.IPlotter_createRegions__SWIG_1(swigCPtr, this, columns, rows); } public void createRegions(int columns) { AIDAJNI.IPlotter_createRegions__SWIG_2(swigCPtr, this, columns); } public void createRegions() { AIDAJNI.IPlotter_createRegions__SWIG_3(swigCPtr, this); } public hep.aida.IPlotterRegion currentRegion() { return new IPlotterRegion(AIDAJNI.IPlotter_currentRegion(swigCPtr, this), false); } public int currentRegionNumber() { return AIDAJNI.IPlotter_currentRegionNumber(swigCPtr, this); } public int numberOfRegions() { return AIDAJNI.IPlotter_numberOfRegions(swigCPtr, this); } public void setCurrentRegionNumber(int index) { AIDAJNI.IPlotter_setCurrentRegionNumber(swigCPtr, this, index); } public hep.aida.IPlotterRegion next() { return new IPlotterRegion(AIDAJNI.IPlotter_next(swigCPtr, this), false); } public hep.aida.IPlotterRegion region(int index) { long cPtr = AIDAJNI.IPlotter_region(swigCPtr, this, index); return (cPtr == 0) ? null : new IPlotterRegion(cPtr, false); } public void destroyRegions() { AIDAJNI.IPlotter_destroyRegions(swigCPtr, this); } public void clearRegions() { AIDAJNI.IPlotter_clearRegions(swigCPtr, this); } public void setParameter(String parameter, String options) { AIDAJNI.IPlotter_setParameter__SWIG_0(swigCPtr, this, parameter, options); } public void setParameter(String parameter) { AIDAJNI.IPlotter_setParameter__SWIG_1(swigCPtr, this, parameter); } public String parameterValue(String parameter) { return AIDAJNI.IPlotter_parameterValue(swigCPtr, this, parameter); } public String[] availableParameterOptions(String parameter) { return AIDAJNIUtil.toStringArray(AIDAJNI.IPlotter_availableParameterOptions(swigCPtr, this, parameter)); } public String[] availableParameters() { return AIDAJNIUtil.toStringArray(AIDAJNI.IPlotter_availableParameters(swigCPtr, this)); } public void show() { AIDAJNI.IPlotter_show(swigCPtr, this); } public void refresh() { AIDAJNI.IPlotter_refresh(swigCPtr, this); } public void hide() { AIDAJNI.IPlotter_hide(swigCPtr, this); } public void interact() { AIDAJNI.IPlotter_interact(swigCPtr, this); } public void writeToFile(String filename, String type) { AIDAJNI.IPlotter_writeToFile__SWIG_0(swigCPtr, this, filename, type); } public void writeToFile(String filename) { AIDAJNI.IPlotter_writeToFile__SWIG_1(swigCPtr, this, filename); } public void setTitle(String title) { AIDAJNI.IPlotter_setTitle(swigCPtr, this, title); } public hep.aida.ITitleStyle titleStyle() { return new ITitleStyle(AIDAJNI.IPlotter_titleStyle(swigCPtr, this), false); } public void setTitleStyle(hep.aida.ITitleStyle style) { AIDAJNI.IPlotter_setTitleStyle(swigCPtr, this, ITitleStyle.getCPtr(style), (hep.aida.ITitleStyle)style); } public IPlotter() { this(AIDAJNI.new_IPlotter(), true); AIDAJNI.IPlotter_director_connect(this, swigCPtr, swigCMemOwn, true); } }