Class PseudoArray

java.lang.Object
  |
  +--PseudoArray

public class PseudoArray
extends java.lang.Object

This class generates a pseudo array from maxRowsExpected of spots. It assumes ONE field (i.e. no duplicate grids). The results are left in: (maxRowsComputed, maxGrids, maxGridRows, maxGridCols).

This work was produced by Peter Lemkin of the National Cancer Institute, an agency of the United States Government. As a work of the United States Government there is no associated copyright. It is offered as open source software under the Mozilla Public License (version 1.1) subject to the limitations noted in the accompanying LEGAL file.

Version:
$Date: 2002/10/14 19:22:31 $ $Revision: 1.4 $
Author:
P. Lemkin (NCI), G. Thornwall (SAIC), B. Stephens(SAIC), NCI-Frederick, Frederick, MD
See Also:
MAExplorer Home

Field Summary
 int maxGridCols
          RTN: # estimated columns/grid
 int maxGridRows
          RTN: # estimated rows/grid
 int maxGrids
          RTN: # estimated grids/field
 int maxRowsComputed
          RTN: final #rows computed for new max[G,R,C]
 int maxRowsExpected
          ARG: initial # of rows specified
static int OPT_GRID_SIZE
          Optimal grid size for MAExplorer viewing
static double ROWS_TO_COLS_ASPECT_RATIO
          desired rows/cols aspect aspect for a grid
 
Constructor Summary
(package private) PseudoArray(int maxRowsExpected)
          PseudoArray() - compute a reasonable PseudoArray geometry such that we can visualize it easily with MAExplorer without it hogging the whole screen.
 
Methods inherited from class java.lang.Object
, clone, equals, finalize, getClass, hashCode, notify, notifyAll, registerNatives, toString, wait, wait, wait
 

Field Detail

OPT_GRID_SIZE

public static final int OPT_GRID_SIZE
Optimal grid size for MAExplorer viewing

ROWS_TO_COLS_ASPECT_RATIO

public static final double ROWS_TO_COLS_ASPECT_RATIO
desired rows/cols aspect aspect for a grid

maxRowsExpected

public int maxRowsExpected
ARG: initial # of rows specified

maxRowsComputed

public int maxRowsComputed
RTN: final #rows computed for new max[G,R,C]

maxGrids

public int maxGrids
RTN: # estimated grids/field

maxGridRows

public int maxGridRows
RTN: # estimated rows/grid

maxGridCols

public int maxGridCols
RTN: # estimated columns/grid
Constructor Detail

PseudoArray

PseudoArray(int maxRowsExpected)
PseudoArray() - compute a reasonable PseudoArray geometry such that we can visualize it easily with MAExplorer without it hogging the whole screen. We do not want too many grids or with # cols too large. A maximum size of about 40 columns/grid is ok.
Parameters:
maxRowsExpected - is the total # of spots in the array