229 |
*/ |
*/ |
230 |
public int[][] getLayoutDimensions () |
public int[][] getLayoutDimensions () |
231 |
{ |
{ |
232 |
|
int[][] result = new int [2][]; |
233 |
if (layoutInfo == null) |
if (layoutInfo == null) |
234 |
return new int [2][]; |
{ |
235 |
|
result[0] = new int[0]; |
236 |
|
result[1] = new int[0]; |
237 |
|
|
238 |
|
return result; |
239 |
|
} |
240 |
|
|
|
int[][] result = new int [2][]; |
|
241 |
result [0] = new int [layoutInfo.cols]; |
result [0] = new int [layoutInfo.cols]; |
242 |
System.arraycopy (layoutInfo.colWidths, 0, result [0], 0, layoutInfo.cols); |
System.arraycopy (layoutInfo.colWidths, 0, result [0], 0, layoutInfo.cols); |
243 |
result [1] = new int [layoutInfo.rows]; |
result [1] = new int [layoutInfo.rows]; |
247 |
|
|
248 |
public double[][] getLayoutWeights () |
public double[][] getLayoutWeights () |
249 |
{ |
{ |
|
if (layoutInfo == null) |
|
|
return new double [2][]; |
|
|
|
|
250 |
double[][] result = new double [2][]; |
double[][] result = new double [2][]; |
251 |
|
if (layoutInfo == null) |
252 |
|
{ |
253 |
|
result[0] = new double[0]; |
254 |
|
result[1] = new double[0]; |
255 |
|
|
256 |
|
return result; |
257 |
|
} |
258 |
|
|
259 |
result [0] = new double [layoutInfo.cols]; |
result [0] = new double [layoutInfo.cols]; |
260 |
System.arraycopy (layoutInfo.colWeights, 0, result [0], 0, layoutInfo.cols); |
System.arraycopy (layoutInfo.colWeights, 0, result [0], 0, layoutInfo.cols); |
261 |
result [1] = new double [layoutInfo.rows]; |
result [1] = new double [layoutInfo.rows]; |