// Copyright (C) 2010 Christian M Zmasek
// Copyright (C) 2010 Sanford-Burnham Medical Research Institute
// All rights reserved
// Copyright (C) 2010 Christian M Zmasek
// Copyright (C) 2010 Sanford-Burnham Medical Research Institute
// All rights reserved
// This library is free software; you can redistribute it and/or
// modify it under the terms of the GNU Lesser General Public
// License as published by the Free Software Foundation; either
// This library is free software; you can redistribute it and/or
// modify it under the terms of the GNU Lesser General Public
// License as published by the Free Software Foundation; either
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
// Lesser General Public License for more details.
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
// Lesser General Public License for more details.
// You should have received a copy of the GNU Lesser General Public
// License along with this library; if not, write to the Free Software
// Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA
//
// Contact: phylosoft @ gmail . com
// You should have received a copy of the GNU Lesser General Public
// License along with this library; if not, write to the Free Software
// Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA
//
// Contact: phylosoft @ gmail . com
@Override
public Dimension getPreferredSize() {
final int width = ( getWellSize() + 1 ) * ( getColumns() + 1 );
@Override
public Dimension getPreferredSize() {
final int width = ( getWellSize() + 1 ) * ( getColumns() + 1 );
private void initializeWells() {
_wells = new AbstractRenderer[ getRows() + 1 ][ getColumns() + 1 ];
for( int row = 0; row < getRows(); row++ ) {
private void initializeWells() {
_wells = new AbstractRenderer[ getRows() + 1 ][ getColumns() + 1 ];
for( int row = 0; row < getRows(); row++ ) {
AbstractRenderer r;
if ( col == getColumns() ) {
// r = new LabelRenderer( PlateData.ALPHABET[ row % PlateData.ALPHABET.length ] + "", this );
AbstractRenderer r;
if ( col == getColumns() ) {
// r = new LabelRenderer( PlateData.ALPHABET[ row % PlateData.ALPHABET.length ] + "", this );
// AbstractRenderer r;
if ( col == getColumns() ) {
// r = new LabelRenderer( "", this );
// AbstractRenderer r;
if ( col == getColumns() ) {
// r = new LabelRenderer( "", this );
// g
// .drawString( "Number:" + getPlateData().getName() + " Replicate:"
// + ( getPlateData().getReplicateNumber() + 1 ), 10, 20 );
// g
// .drawString( "Number:" + getPlateData().getName() + " Replicate:"
// + ( getPlateData().getReplicateNumber() + 1 ), 10, 20 );
- for( int row = 0; row < getRows() + 1; row++ ) {
- for( int col = 0; col < getColumns() + 1; col++ ) {
+ for( int row = 0; row < ( getRows() + 1 ); row++ ) {
+ for( int col = 0; col < ( getColumns() + 1 ); col++ ) {
public void resetWellSize( final int well_size ) {
setWellSize( well_size );
final int factor = well_size + 0;
public void resetWellSize( final int well_size ) {
setWellSize( well_size );
final int factor = well_size + 0;
- for( int row = 0; row < getRows() + 1; row++ ) {
- for( int col = 0; col < getColumns() + 1; col++ ) {
+ for( int row = 0; row < ( getRows() + 1 ); row++ ) {
+ for( int col = 0; col < ( getColumns() + 1 ); col++ ) {
setIsSelectedOfColumn( col, isSelected );
}
}
private void setIsSelectedOfColumn( final int column, final boolean isSelected ) {
setIsSelectedOfColumn( col, isSelected );
}
}
private void setIsSelectedOfColumn( final int column, final boolean isSelected ) {
getAbstractRenderer( row, column ).setIsSelected( isSelected );
}
}
private void setIsSelectedOfRow( final int row, final boolean isSelected ) {
getAbstractRenderer( row, column ).setIsSelected( isSelected );
}
}
private void setIsSelectedOfRow( final int row, final boolean isSelected ) {