public static JFreeChart createXYLineChart(string title, string xAxisLabel, string yAxisLabel, XYDataset dataset, PlotOrientation orientation, bool legend, bool tooltips, bool urls) { int num1 = tooltips ? 1 : 0; int num2 = urls ? 1 : 0; int num3 = legend ? 1 : 0; if (orientation == null) { string str = "Null 'orientation' argument."; Throwable.__\u003CsuppressFillInStackTrace\u003E(); throw new IllegalArgumentException(str); } else { NumberAxis numberAxis1 = new NumberAxis(xAxisLabel); numberAxis1.setAutoRangeIncludesZero(false); NumberAxis numberAxis2 = new NumberAxis(yAxisLabel); XYLineAndShapeRenderer andShapeRenderer = new XYLineAndShapeRenderer(true, false); XYPlot xyPlot = new XYPlot(dataset, (ValueAxis) numberAxis1, (ValueAxis) numberAxis2, (XYItemRenderer) andShapeRenderer); xyPlot.setOrientation(orientation); if (num1 != 0) andShapeRenderer.setBaseToolTipGenerator((XYToolTipGenerator) new StandardXYToolTipGenerator()); if (num2 != 0) andShapeRenderer.setURLGenerator((XYURLGenerator) new StandardXYURLGenerator()); JFreeChart.__\u003Cclinit\u003E(); JFreeChart jfc = new JFreeChart(title, JFreeChart.__\u003C\u003EDEFAULT_TITLE_FONT, (Plot) xyPlot, num3 != 0); ChartFactory.currentTheme.apply(jfc); return jfc; } }
public ColorBar(string label) { base.\u002Ector(); ColorBar colorBar = this; this.colorBarThickness = 0; this.colorBarThicknessPercent = 0.1; this.colorPalette = (ColorPalette) null; this.colorBarLength = 0; NumberAxis numberAxis = new NumberAxis(label); numberAxis.setAutoRangeIncludesZero(false); this.axis = (ValueAxis) numberAxis; this.axis.setLowerMargin(0.0); this.axis.setUpperMargin(0.0); this.colorPalette = (ColorPalette) new RainbowPalette(); this.colorBarThickness = 0; this.colorBarThicknessPercent = 0.1; this.outerGap = 2; this.colorPalette.setMinZ(this.axis.getRange().getLowerBound()); this.colorPalette.setMaxZ(this.axis.getRange().getUpperBound()); }
public static JFreeChart createStackedXYAreaChart(string title, string xAxisLabel, string yAxisLabel, TableXYDataset dataset, PlotOrientation orientation, bool legend, bool tooltips, bool urls) { int num1 = tooltips ? 1 : 0; int num2 = urls ? 1 : 0; int num3 = legend ? 1 : 0; if (orientation == null) { string str = "Null 'orientation' argument."; Throwable.__\u003CsuppressFillInStackTrace\u003E(); throw new IllegalArgumentException(str); } else { NumberAxis numberAxis1 = new NumberAxis(xAxisLabel); numberAxis1.setAutoRangeIncludesZero(false); numberAxis1.setLowerMargin(0.0); numberAxis1.setUpperMargin(0.0); NumberAxis numberAxis2 = new NumberAxis(yAxisLabel); StandardXYToolTipGenerator toolTipGenerator = (StandardXYToolTipGenerator) null; if (num1 != 0) toolTipGenerator = new StandardXYToolTipGenerator(); StandardXYURLGenerator standardXyurlGenerator = (StandardXYURLGenerator) null; if (num2 != 0) standardXyurlGenerator = new StandardXYURLGenerator(); StackedXYAreaRenderer2 stackedXyAreaRenderer2 = new StackedXYAreaRenderer2((XYToolTipGenerator) toolTipGenerator, (XYURLGenerator) standardXyurlGenerator); stackedXyAreaRenderer2.setOutline(true); XYPlot xyPlot = new XYPlot((XYDataset) dataset, (ValueAxis) numberAxis1, (ValueAxis) numberAxis2, (XYItemRenderer) stackedXyAreaRenderer2); xyPlot.setOrientation(orientation); xyPlot.setRangeAxis((ValueAxis) numberAxis2); JFreeChart.__\u003Cclinit\u003E(); JFreeChart jfc = new JFreeChart(title, JFreeChart.__\u003C\u003EDEFAULT_TITLE_FONT, (Plot) xyPlot, num3 != 0); ChartFactory.currentTheme.apply(jfc); return jfc; } }
public static JFreeChart createXYBarChart(string title, string xAxisLabel, bool dateAxis, string yAxisLabel, IntervalXYDataset dataset, PlotOrientation orientation, bool legend, bool tooltips, bool urls) { int num1 = dateAxis ? 1 : 0; int num2 = tooltips ? 1 : 0; int num3 = urls ? 1 : 0; int num4 = legend ? 1 : 0; if (orientation == null) { string str = "Null 'orientation' argument."; Throwable.__\u003CsuppressFillInStackTrace\u003E(); throw new IllegalArgumentException(str); } else { ValueAxis domainAxis; if (num1 != 0) { domainAxis = (ValueAxis) new DateAxis(xAxisLabel); } else { NumberAxis numberAxis = new NumberAxis(xAxisLabel); numberAxis.setAutoRangeIncludesZero(false); domainAxis = (ValueAxis) numberAxis; } NumberAxis numberAxis1 = new NumberAxis(yAxisLabel); XYBarRenderer xyBarRenderer = new XYBarRenderer(); if (num2 != 0) { StandardXYToolTipGenerator toolTipGenerator = num1 == 0 ? new StandardXYToolTipGenerator() : StandardXYToolTipGenerator.getTimeSeriesInstance(); xyBarRenderer.setBaseToolTipGenerator((XYToolTipGenerator) toolTipGenerator); } if (num3 != 0) xyBarRenderer.setURLGenerator((XYURLGenerator) new StandardXYURLGenerator()); XYPlot xyPlot = new XYPlot((XYDataset) dataset, domainAxis, (ValueAxis) numberAxis1, (XYItemRenderer) xyBarRenderer); xyPlot.setOrientation(orientation); JFreeChart.__\u003Cclinit\u003E(); JFreeChart jfc = new JFreeChart(title, JFreeChart.__\u003C\u003EDEFAULT_TITLE_FONT, (Plot) xyPlot, num4 != 0); ChartFactory.currentTheme.apply(jfc); return jfc; } }
public static JFreeChart createBoxAndWhiskerChart(string title, string timeAxisLabel, string valueAxisLabel, BoxAndWhiskerXYDataset dataset, bool legend) { int num = legend ? 1 : 0; DateAxis dateAxis = new DateAxis(timeAxisLabel); NumberAxis numberAxis = new NumberAxis(valueAxisLabel); numberAxis.setAutoRangeIncludesZero(false); XYBoxAndWhiskerRenderer andWhiskerRenderer = new XYBoxAndWhiskerRenderer(10.0); XYPlot xyPlot = new XYPlot((XYDataset) dataset, (ValueAxis) dateAxis, (ValueAxis) numberAxis, (XYItemRenderer) andWhiskerRenderer); JFreeChart.__\u003Cclinit\u003E(); JFreeChart jfc = new JFreeChart(title, JFreeChart.__\u003C\u003EDEFAULT_TITLE_FONT, (Plot) xyPlot, num != 0); ChartFactory.currentTheme.apply(jfc); return jfc; }
public static JFreeChart createBoxAndWhiskerChart(string title, string categoryAxisLabel, string valueAxisLabel, BoxAndWhiskerCategoryDataset dataset, bool legend) { int num = legend ? 1 : 0; CategoryAxis domainAxis = new CategoryAxis(categoryAxisLabel); NumberAxis numberAxis = new NumberAxis(valueAxisLabel); numberAxis.setAutoRangeIncludesZero(false); BoxAndWhiskerRenderer andWhiskerRenderer = new BoxAndWhiskerRenderer(); andWhiskerRenderer.setBaseToolTipGenerator((CategoryToolTipGenerator) new BoxAndWhiskerToolTipGenerator()); CategoryPlot categoryPlot = new CategoryPlot((CategoryDataset) dataset, domainAxis, (ValueAxis) numberAxis, (CategoryItemRenderer) andWhiskerRenderer); JFreeChart.__\u003Cclinit\u003E(); JFreeChart jfc = new JFreeChart(title, JFreeChart.__\u003C\u003EDEFAULT_TITLE_FONT, (Plot) categoryPlot, num != 0); ChartFactory.currentTheme.apply(jfc); return jfc; }
public static JFreeChart createTimeSeriesChart(string title, string timeAxisLabel, string valueAxisLabel, XYDataset dataset, bool legend, bool tooltips, bool urls) { int num1 = tooltips ? 1 : 0; int num2 = urls ? 1 : 0; int num3 = legend ? 1 : 0; DateAxis dateAxis = new DateAxis(timeAxisLabel); dateAxis.setLowerMargin(0.02); dateAxis.setUpperMargin(0.02); NumberAxis numberAxis = new NumberAxis(valueAxisLabel); numberAxis.setAutoRangeIncludesZero(false); XYPlot xyPlot = new XYPlot(dataset, (ValueAxis) dateAxis, (ValueAxis) numberAxis, (XYItemRenderer) null); StandardXYToolTipGenerator toolTipGenerator = (StandardXYToolTipGenerator) null; if (num1 != 0) toolTipGenerator = StandardXYToolTipGenerator.getTimeSeriesInstance(); StandardXYURLGenerator standardXyurlGenerator = (StandardXYURLGenerator) null; if (num2 != 0) standardXyurlGenerator = new StandardXYURLGenerator(); XYLineAndShapeRenderer andShapeRenderer = new XYLineAndShapeRenderer(true, false); andShapeRenderer.setBaseToolTipGenerator((XYToolTipGenerator) toolTipGenerator); andShapeRenderer.setURLGenerator((XYURLGenerator) standardXyurlGenerator); xyPlot.setRenderer((XYItemRenderer) andShapeRenderer); JFreeChart.__\u003Cclinit\u003E(); JFreeChart jfc = new JFreeChart(title, JFreeChart.__\u003C\u003EDEFAULT_TITLE_FONT, (Plot) xyPlot, num3 != 0); ChartFactory.currentTheme.apply(jfc); return jfc; }