Package pedro.model

Examples of pedro.model.RecordModel.addChild()


      assayRecordModel.setValue( "spotterEquipmentInfo", assay.getSpotterType(), false ); //$NON-NLS-1$
      assayRecordModel.setValue( "numberOfDishes", Integer.toString( plates.size() ), false ); //$NON-NLS-1$

    for( int i = 0; i < plates.size(); i++ )
    {
      assayRecordModel.addChild( "Dish", getDish( (MicroscopePlate)plates.get( i ), i + 1 ), false ); //$NON-NLS-1$
      assayRecordModel.updateDisplayName();
    }
   
    return assayRecordModel;
    }
View Full Code Here


      {
        final Spot spot = plate.getValueAt( row, column );
       
        if( spot != null )
        {
          dish.addChild( "SpotReading", getSpotReading( spot, row, column ), false ); //$NON-NLS-1$
          dish.updateDisplayName();
        }
      }
    }
   
View Full Code Here

    final SpotReading reading = spot.getUserValue();
   
    for( Iterator iterator = ( (Collection)reading.getUserObject() ).iterator(); iterator.hasNext(); )
    {            
      final Plasmid plasmid = (Plasmid)iterator.next();
      spotSampleRM.addChild( "Plasmid", getPlasmid( plasmid ), false); //$NON-NLS-1$
   

    spotReading.addChild( "SpotSample", spotSampleRM, false ); //$NON-NLS-1$
    spotReading.updateDisplayName();
    return spotReading;
View Full Code Here

  public void parse()
  {
    final RecordModel resultRecordModel = node.getRecordModel();
    //Want to leave the file name as the LSM file for now? Or do we want it to be the XML tracker output?
    resultRecordModel.setValue( "results_file", file.getAbsolutePath(), false ); //$NON-NLS-1$
    resultRecordModel.addChild( "File_Info", getFileInfoRecordModel(), false ); //$NON-NLS-1$ 
    resultRecordModel.addChild( "ResultTimeSeries", getTimeSeriesRecordModel(), false ); //$NON-NLS-1$
   
    /*
     * Need to get some plasmid names to pass to the next bit...
     * Two places they could be, either in LocationReading/LocationSample/Plasmid
View Full Code Here

  {
    final RecordModel resultRecordModel = node.getRecordModel();
    //Want to leave the file name as the LSM file for now? Or do we want it to be the XML tracker output?
    resultRecordModel.setValue( "results_file", file.getAbsolutePath(), false ); //$NON-NLS-1$
    resultRecordModel.addChild( "File_Info", getFileInfoRecordModel(), false ); //$NON-NLS-1$ 
    resultRecordModel.addChild( "ResultTimeSeries", getTimeSeriesRecordModel(), false ); //$NON-NLS-1$
   
    /*
     * Need to get some plasmid names to pass to the next bit...
     * Two places they could be, either in LocationReading/LocationSample/Plasmid
     * (LocationReading is this node's parent)
View Full Code Here

                    dishNode.updateDisplayName( (DefaultTreeModel)navigationTree.getModel() );
                  }
                }
                RecordModel dishRecordModel = dishNode.getRecordModel();
                addObjectiveDetails( lensName, lensNA, mag, recordModelFactory, microscopeRecordModel );
                dishRecordModel.addChild("Microscope", microscopeRecordModel, false); //$NON-NLS-1$
                dishNode.updateDisplayName( (DefaultTreeModel)navigationTree.getModel() );
              }

            }
            array.updateDisplayName();
View Full Code Here

    excitationMeasurementRecordModel.setValue( "unit", String.valueOf( "nM "), false ); //$NON-NLS-1$ //$NON-NLS-2$
    excitationMeasurementRecordModel.updateDisplayName();
   
    final RecordModel laserRecordModel = recordModelFactory.createRecordModel( "Laser" ); //$NON-NLS-1$
    laserRecordModel.setValue( "id",  laser.getId(), false ); //$NON-NLS-1$
    laserRecordModel.addChild( "Excitation_Measurement", excitationMeasurementRecordModel, false ); //$NON-NLS-1$
    laserRecordModel.updateDisplayName();
   
    final RecordModel excitationRecordModel = recordModelFactory.createRecordModel( "Excitation" ); //$NON-NLS-1$
    excitationRecordModel.addChild("Excitation_choices", laserRecordModel, false); //$NON-NLS-1$
    excitationRecordModel.updateDisplayName();
View Full Code Here

    laserRecordModel.setValue( "id",  laser.getId(), false ); //$NON-NLS-1$
    laserRecordModel.addChild( "Excitation_Measurement", excitationMeasurementRecordModel, false ); //$NON-NLS-1$
    laserRecordModel.updateDisplayName();
   
    final RecordModel excitationRecordModel = recordModelFactory.createRecordModel( "Excitation" ); //$NON-NLS-1$
    excitationRecordModel.addChild("Excitation_choices", laserRecordModel, false); //$NON-NLS-1$
    excitationRecordModel.updateDisplayName();
   
    spotRecordModel.addChild( "Excitation", excitationRecordModel, false ); //$NON-NLS-1$
    spotRecordModel.updateDisplayName();
    }
View Full Code Here

                final RecordModel linearRingRecordModel = recordModelFactory.createRecordModel( "LinearRing" ); //$NON-NLS-1$
               
                pedroUtils.addElement( linearRingElement, linearRingRecordModel, "coordinates" ); //$NON-NLS-1$
             
                final RecordModel exteriorRecordModel = recordModelFactory.createRecordModel( "exterior" ); //$NON-NLS-1$
                exteriorRecordModel.addChild( "LinearRing", linearRingRecordModel, false ); //$NON-NLS-1$
               
                final RecordModel polygonRecordModel = recordModelFactory.createRecordModel( "Polygon" ); //$NON-NLS-1$
                polygonRecordModel.addChild( "exterior", exteriorRecordModel, false ); //$NON-NLS-1$
               
                cellularCompartmentRecordModel.addChild( "Polygon", polygonRecordModel, false ); //$NON-NLS-1$
View Full Code Here

             
                final RecordModel exteriorRecordModel = recordModelFactory.createRecordModel( "exterior" ); //$NON-NLS-1$
                exteriorRecordModel.addChild( "LinearRing", linearRingRecordModel, false ); //$NON-NLS-1$
               
                final RecordModel polygonRecordModel = recordModelFactory.createRecordModel( "Polygon" ); //$NON-NLS-1$
                polygonRecordModel.addChild( "exterior", exteriorRecordModel, false ); //$NON-NLS-1$
               
                cellularCompartmentRecordModel.addChild( "Polygon", polygonRecordModel, false ); //$NON-NLS-1$
           
   
            cellRecordModel.addChild( "CellularCompartment", cellularCompartmentRecordModel, false ); //$NON-NLS-1$
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.