Package edu.wisc.game.svg
Class SvgEcd
java.lang.Object
edu.wisc.game.svg.SvgEcd
public class SvgEcd extends Object
Utilities for generating SVG plots for ECD data
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classSvgEcd.Point -
Field Summary
-
Constructor Summary
Constructors Constructor Description SvgEcd() -
Method Summary
Modifier and Type Method Description static Stringcircle(SvgEcd.Point center, double radius, String color)static StringdrawFrame(double xRange)Draws the frame around the data field, and prints the tic labels.static Stringline(SvgEcd.Point _a, SvgEcd.Point _b, String color)static StringmakeSvgEcd(String color, double[] sample, double xRange, double yRange)static StringouterWrap(String s)static StringouterWrap(String s, double W, double H)static StringrawCircle(SvgEcd.Point center, double radius, String color)static StringrawLine(SvgEcd.Point a, SvgEcd.Point b, String color)static StringrawText(double x, double y, String s)static StringrawText(double x, double y, String s, String color)Puts some text into the specified position on the SVG canvasstatic edu.wisc.game.svg.SvgEcd.SvgElementrawTextE(double x, double y, String s, String color)
-
Field Details
-
Constructor Details
-
SvgEcd
public SvgEcd()
-
-
Method Details
-
rawText
-
rawText
Puts some text into the specified position on the SVG canvas- Parameters:
x- The x position, in SVG coordinatesy- The y position, in SVG coordinates
-
rawTextE
-
drawFrame
Draws the frame around the data field, and prints the tic labels. -
rawLine
-
line
-
circle
-
rawCircle
-
makeSvgEcd
-
outerWrap
-
outerWrap
-