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.ObjectA simple wrapper to goolge charts API (from charts4j) Plots integer data- Author:
- pcingola
-
-
Field Summary
Fields Modifier and Type Field Description static intMAX_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 intgetBarSpace()intgetBarWidth()intgetNumberLabelsXaxis()intgetPlotMaxData()intgetPlotSizeX()intgetPlotSizeY()java.lang.StringgetTitle()java.lang.StringgetxAxisLabel()voidsetBarSpace(int barSpace)voidsetBarWidth(int barWidth)voidsetNumberLabelsXaxis(int numberLabelsXaxis)voidsetPlotMaxData(int plotMaxData)voidsetPlotSizeX(int plotSizeX)voidsetPlotSizeY(int plotSizeY)voidsetTitle(java.lang.String title)voidsetxAxisLabel(java.lang.String xAxisLabel)voidsubsample(int numberOfPoints, boolean averageY)Re sample data so it has at most 'numberOfPoints'java.lang.StringtoURLString()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:
-
-