Package org.broad.igv.renderer

Examples of org.broad.igv.renderer.ColorScale


        }

        @Override
        public org.broad.igv.renderer.ContinuousColorScale unmarshal(String colorScaleString) throws Exception {
            if (colorScaleString != null) {
                ColorScale cs = ColorScaleFactory.getScaleFromString(colorScaleString);
                if(cs instanceof org.broad.igv.renderer.ContinuousColorScale){
                    return (org.broad.igv.renderer.ContinuousColorScale) cs;
                }
            }
            return null;
View Full Code Here


        }

        TrackType trackType = CollUtils.valueOf(TrackType.class, type.toUpperCase(), TrackType.OTHER);

        // TODO -- refactor to remove instanceof / cast.  Currently only ContinuousColorScale is handled
        ColorScale colorScale = ColorScaleFactory.getScaleFromString(value);
        if (colorScale instanceof ContinuousColorScale) {
            session.setColorScale(trackType, (ContinuousColorScale) colorScale);
        }

        // ColorScaleFactory.setColorScale(trackType, colorScale);
View Full Code Here

TOP

Related Classes of org.broad.igv.renderer.ColorScale

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.