edu.stanford.math.plex4.visualization
public class BarcodeVisualizer extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
static class |
BarcodeVisualizer.BarAppearance |
Modifier and Type | Field and Description |
---|---|
static int |
DEFAULT_WIDTH |
Constructor and Description |
---|
BarcodeVisualizer() |
Modifier and Type | Method and Description |
---|---|
protected static java.awt.Graphics2D |
createGraphics(java.awt.image.BufferedImage im) |
static java.awt.image.BufferedImage |
drawBarcode(java.util.List<Interval<java.lang.Double>> intervals,
java.lang.String title,
double endPoint) |
protected static void |
drawBarsInPlace(java.awt.Graphics2D graphics,
java.util.List<Interval<java.lang.Double>> intervals,
ImageRegion.Int region,
int barHeight,
int spacing,
double scale) |
protected static void |
drawTicksInPlace(java.awt.Graphics2D graphics,
ImageRegion.Int region,
int bottomMargin,
double scale) |
protected static void |
drawTitleInPlace(java.awt.Graphics2D graphics,
java.lang.String title,
int center_x,
int center_y,
int maxHeight,
int maxWidth) |
protected static double |
getMaxBarWidth(java.util.List<Interval<java.lang.Double>> intervals) |
public static final int DEFAULT_WIDTH
public static java.awt.image.BufferedImage drawBarcode(java.util.List<Interval<java.lang.Double>> intervals, java.lang.String title, double endPoint) throws java.io.IOException
java.io.IOException
protected static void drawTitleInPlace(java.awt.Graphics2D graphics, java.lang.String title, int center_x, int center_y, int maxHeight, int maxWidth)
protected static java.awt.Graphics2D createGraphics(java.awt.image.BufferedImage im)
protected static void drawTicksInPlace(java.awt.Graphics2D graphics, ImageRegion.Int region, int bottomMargin, double scale)
protected static void drawBarsInPlace(java.awt.Graphics2D graphics, java.util.List<Interval<java.lang.Double>> intervals, ImageRegion.Int region, int barHeight, int spacing, double scale)
protected static double getMaxBarWidth(java.util.List<Interval<java.lang.Double>> intervals)