Package info.unipax.bina.networkanalysis.mapping

Examples of info.unipax.bina.networkanalysis.mapping.DefaultMapping


       
          if (reader.getSeries() != null) {
            seriesRegistry.registerSeries(reader.getSeries());
 
            LinearColorMapper colorMapper = new LinearColorMapper(new Color[]{Color.BLUE,Color.WHITE,Color.RED} );
            DefaultMapping mapping = new DefaultMapping(controller, "UDIS", BasicProteinComponentUI.BACKGROUNDCOLOR_MAPPING_POINT,colorMapper)
 
            SeriesMappingConfiguration mappingConfig = new SeriesMappingConfiguration(DoubleVector.class, reader.getSeries());
            mappingConfig.setSelectedSamples(reader.getSeries().getSample(0));
            mappingConfig.setMappingTargetTranslator(controller.getMappingModel().createExternalIdentifierTranslator("NCBI-GeneID"));
           
 
            SeriesMappingValueProvider seriesMappingValueProvider = new SeriesMappingValueProvider(session, mappingConfig, controller.getMappingTargetTranslators());
            mapping.setValueProvider(seriesMappingValueProvider);
            mapping.setTranslator(controller.getMappingModel().createExternalIdentifierTranslator("NCBI-GeneID"));
 
            controller.addMapping(BasicProteinComponentUI.BACKGROUNDCOLOR_MAPPING_POINT, mapping);   
 
            controller.updateAll();
          }       
View Full Code Here

TOP

Related Classes of info.unipax.bina.networkanalysis.mapping.DefaultMapping

Copyright © 2018 www.massapicom. 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.