Class SvgEcd


  • public class SvgEcd
    extends Object
    Utilities for generating SVG plots for ECD data
    • Constructor Detail

      • SvgEcd

        public SvgEcd()
    • Method Detail

      • rawText

        public static String rawText​(double x,
                                     double y,
                                     String s)
      • rawText

        public static String rawText​(double x,
                                     double y,
                                     String s,
                                     String color)
        Puts some text into the specified position on the SVG canvas
        Parameters:
        x - The x position, in SVG coordinates
        y - The y position, in SVG coordinates
      • rawTextE

        public static edu.wisc.game.svg.SvgEcd.SvgElement rawTextE​(double x,
                                                                   double y,
                                                                   String s,
                                                                   String color)
      • drawFrame

        public static String drawFrame​(double xRange)
        Draws the frame around the data field, and prints the tic labels.
      • makeSvgEcd

        public static String makeSvgEcd​(String color,
                                        double[] sample,
                                        double xRange,
                                        double yRange)
      • outerWrap

        public static String outerWrap​(String s,
                                       double W,
                                       double H)