/** * Adds a points view of the arrays x1 and x2 of point (x1,x2) coordinates. * @param irow the tile row index. * @param icol the tile column index. * @param x1 array of x1 coordinates. * @param x2 array of x2 coordinates. * @return the points view. */ public PointsView addPoints(int irow, int icol, float[] x1, float[] x2) { PointsView pv = new PointsView(x1,x2); return addPointsView(irow,icol,pv); }
/** * Adds a points view of (x1,x2) with specified x2 coordinates. * The corresponding coordinates x1 are assumed to be 0, 1, 2, .... * @param irow the tile row index. * @param icol the tile column index. * @param x2 array of x2 coordinates. * @return the points view. */ public PointsView addPoints(int irow, int icol, float[] x2) { PointsView pv = new PointsView(x2); return addPointsView(irow,icol,pv); }
/** * Adds a view of points (x1,x2) for a sampled function x2(x1). * @param irow the tile row index. * @param icol the tile column index. * @param s1 the sampling of x1 coordinates. * @param x2 array of x2 coordinates. * @return the points view. */ public PointsView addPoints(int irow, int icol, Sampling s1, float[] x2) { PointsView pv = new PointsView(s1,x2); return addPointsView(irow,icol,pv); }
/** * Adds a view of arrays of (x1,x2) coordinates for multiple plot segments. * The lengths of the specified arrays x1 and x2 must be equal. * @param irow the tile row index. * @param icol the tile column index. * @param x1 array of arrays of x1 coordinates. * @param x2 array of arrays of x2 coordinates. * @return the points view. */ public PointsView addPoints(int irow, int icol, float[][] x1, float[][] x2) { PointsView pv = new PointsView(x1,x2); return addPointsView(irow,icol,pv); }
/** * Adds a points view of arrays x1, x2 and x3 of point (x1,x2,x3) coordinates. * @param irow the tile row index. * @param icol the tile column index. * @param x1 array of x1 coordinates. * @param x2 array of x2 coordinates. * @param x3 array of x3 coordinates. * @return the points view. */ public PointsView addPoints( int irow, int icol, float[] x1, float[] x2, float[] x3) { PointsView pv = new PointsView(x1,x2,x3); return addPointsView(irow,icol,pv); }
for (int irow=0; irow<nrow; ++irow) { for (int icol=0; icol<ncol; ++icol) { mosaic.getTile(irow,icol).addTiledView(new PointsView(x1,x2));