Package org.broad.igv.data

Examples of org.broad.igv.data.DataSource


            if (PeakTrack.animate) {
                int step = track.getTimeStep();
                DataSource[] timeSignalSources = track.getTimeSignalSources();
                int idx = Math.min(step, timeSignalSources.length - 1);
                DataSource src = timeSignalSources[idx];
                if (src != null) {
                    int top = rect.y + 2;List<LocusScore> timeSignals = src.getSummaryScoresForRange(chr, contextStart, contextEnd, zoom);
                    Rectangle timeSignalRect = new Rectangle(rect.x, top, rect.width, signalHeight - 1);
                    chartRenderer.render(timeSignals, context, timeSignalRect, track);
                }
            } else {
                if (track.getDisplayMode() == Track.DisplayMode.EXPANDED) {

                    DataSource[] timeSignalSources = track.getTimeSignalSources();
                    if (timeSignalSources != null) {
                        int top = rect.y + 2;
                        for (int i = 0; i < timeSignalSources.length; i++) {
                            DataSource src = timeSignalSources[i];
                            if (src != null) {
                                List<LocusScore> timeSignals = src.getSummaryScoresForRange(chr, contextStart, contextEnd, zoom);
                                Rectangle timeSignalRect = new Rectangle(rect.x, top, rect.width, signalHeight - 1);
                                chartRenderer.render(timeSignals, context, timeSignalRect, track);
                            }
                            top += h;
View Full Code Here


        }
    }

    public void marshalSource(Marshaller m, Element trackElement) throws JAXBException {
        if (dataSource == null) return;
        DataSource rawSource = dataSource;

        if(rawSource instanceof CombinedDataSource){
            JAXBElement element = new JAXBElement<CombinedDataSource>(new QName("", COMBINED_DATA_SOURCE), CombinedDataSource.class,
                    (CombinedDataSource) rawSource);
            m.marshal(element, trackElement);
View Full Code Here

TOP

Related Classes of org.broad.igv.data.DataSource

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.