Package org.snpeff.stats.plot
Class GooglePlotInt
- java.lang.Object
-
- org.snpeff.stats.plot.GooglePlotInt
-
- Direct Known Subclasses:
GoogleHistogram
public class GooglePlotInt extends java.lang.Object
A simple wrapper to goolge charts API (from charts4j) Plots integer data- Author:
- pcingola
-
-
Field Summary
Fields Modifier and Type Field Description static int
MAX_DATA_POINTS
-
Constructor Summary
Constructors Constructor Description GooglePlotInt(int[] x, int[] y, java.lang.String title, java.lang.String xAxisLabel, java.lang.String yAxisLabel)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
getBarSpace()
int
getBarWidth()
int
getNumberLabelsXaxis()
int
getPlotMaxData()
int
getPlotSizeX()
int
getPlotSizeY()
java.lang.String
getTitle()
java.lang.String
getxAxisLabel()
void
setBarSpace(int barSpace)
void
setBarWidth(int barWidth)
void
setNumberLabelsXaxis(int numberLabelsXaxis)
void
setPlotMaxData(int plotMaxData)
void
setPlotSizeX(int plotSizeX)
void
setPlotSizeY(int plotSizeY)
void
setTitle(java.lang.String title)
void
setxAxisLabel(java.lang.String xAxisLabel)
void
subsample(int numberOfPoints, boolean averageY)
Re sample data so it has at most 'numberOfPoints'java.lang.String
toURLString()
Create a histogram plot using Google charts
-
-
-
Field Detail
-
MAX_DATA_POINTS
public static final int MAX_DATA_POINTS
- See Also:
- Constant Field Values
-
-
Method Detail
-
getBarSpace
public int getBarSpace()
-
getBarWidth
public int getBarWidth()
-
getNumberLabelsXaxis
public int getNumberLabelsXaxis()
-
getPlotMaxData
public int getPlotMaxData()
-
getPlotSizeX
public int getPlotSizeX()
-
getPlotSizeY
public int getPlotSizeY()
-
getTitle
public java.lang.String getTitle()
-
getxAxisLabel
public java.lang.String getxAxisLabel()
-
setBarSpace
public void setBarSpace(int barSpace)
-
setBarWidth
public void setBarWidth(int barWidth)
-
setNumberLabelsXaxis
public void setNumberLabelsXaxis(int numberLabelsXaxis)
-
setPlotMaxData
public void setPlotMaxData(int plotMaxData)
-
setPlotSizeX
public void setPlotSizeX(int plotSizeX)
-
setPlotSizeY
public void setPlotSizeY(int plotSizeY)
-
setTitle
public void setTitle(java.lang.String title)
-
setxAxisLabel
public void setxAxisLabel(java.lang.String xAxisLabel)
-
subsample
public void subsample(int numberOfPoints, boolean averageY)
Re sample data so it has at most 'numberOfPoints'
-
toURLString
public java.lang.String toURLString()
Create a histogram plot using Google charts- Returns:
-
-