import java.util.*; /** * Holds temporary one row data. Word name, values, coordinates, locking, comments. */ class OntoRowData{ String rname; double[] rdata; double[] rcoordinates; boolean rlocked; Vector rcomment; static final int CALCTYPE_AVERAGE=1; static final int CALCTYPE_SUM=2; public String toString(){ StringBuffer sb=new StringBuffer(); sb.append(rname+"; "); for(int i=0; i0){sb.append(", ");} sb.append(rdata[i]); } sb.append("; "+rcoordinates[0]+", "+rcoordinates[1]+"; "+rcomment.toString()); return sb.toString(); } public OntoRowData(String urname, double[] urdata, double[] urcoordinates, boolean urlocked, Vector urcomment){ rname=urname; rdata=new double[urdata.length]; for(int i=0; i