public StackedXYBarRenderer(double margin) : base(margin) { StackedXYBarRenderer stackedXyBarRenderer = this; this.renderAsPercentages = false; ItemLabelPosition position = new ItemLabelPosition(ItemLabelAnchor.__\u003C\u003ECENTER, TextAnchor.__\u003C\u003ECENTER); this.setBasePositiveItemLabelPosition(position); this.setBaseNegativeItemLabelPosition(position); this.setPositiveItemLabelPositionFallback((ItemLabelPosition) null); this.setNegativeItemLabelPositionFallback((ItemLabelPosition) null); }
public StackedBarRenderer(bool renderAsPercentages) { int num = renderAsPercentages ? 1 : 0; // ISSUE: explicit constructor call base.\u002Ector(); StackedBarRenderer stackedBarRenderer = this; this.renderAsPercentages = num != 0; ItemLabelPosition position = new ItemLabelPosition(ItemLabelAnchor.__\u003C\u003ECENTER, TextAnchor.__\u003C\u003ECENTER); this.setBasePositiveItemLabelPosition(position); this.setBaseNegativeItemLabelPosition(position); this.setPositiveItemLabelPositionFallback((ItemLabelPosition) null); this.setNegativeItemLabelPositionFallback((ItemLabelPosition) null); }
public BarRenderer() { BarRenderer barRenderer = this; this.@base = 0.0; this.includeBaseInRange = true; this.itemMargin = 0.2; this.drawBarOutline = false; this.maximumBarWidth = 1.0; this.positiveItemLabelPositionFallback = (ItemLabelPosition) null; this.negativeItemLabelPositionFallback = (ItemLabelPosition) null; this.gradientPaintTransformer = (GradientPaintTransformer) new StandardGradientPaintTransformer(); this.minimumBarLength = 0.0; this.setBaseLegendShape((Shape) new Rectangle2D.Double(-4.0, -4.0, 8.0, 8.0)); this.barPainter = BarRenderer.getDefaultBarPainter(); this.shadowsVisible = BarRenderer.getDefaultShadowsVisible(); this.shadowPaint = (Paint) Color.gray; this.shadowXOffset = 4.0; this.shadowYOffset = 4.0; }
public AbstractRenderer() { base.\u002Ector(); AbstractRenderer abstractRenderer = this; this.itemLabelAnchorOffset = 2.0; this.dataBoundsIncludesVisibleSeriesOnly = true; this.seriesVisible = (Boolean) null; this.seriesVisibleList = new BooleanList(); this.baseSeriesVisible = true; this.seriesVisibleInLegend = (Boolean) null; this.seriesVisibleInLegendList = new BooleanList(); this.baseSeriesVisibleInLegend = true; this.paint = (Paint) null; this.paintList = new PaintList(); this.basePaint = AbstractRenderer.__\u003C\u003EDEFAULT_PAINT; this.autoPopulateSeriesPaint = true; this.fillPaint = (Paint) null; this.fillPaintList = new PaintList(); this.baseFillPaint = (Paint) Color.white; this.autoPopulateSeriesFillPaint = false; this.outlinePaint = (Paint) null; this.outlinePaintList = new PaintList(); this.baseOutlinePaint = AbstractRenderer.__\u003C\u003EDEFAULT_OUTLINE_PAINT; this.autoPopulateSeriesOutlinePaint = false; this.stroke = (Stroke) null; this.strokeList = new StrokeList(); this.baseStroke = AbstractRenderer.__\u003C\u003EDEFAULT_STROKE; this.autoPopulateSeriesStroke = true; this.outlineStroke = (Stroke) null; this.outlineStrokeList = new StrokeList(); this.baseOutlineStroke = AbstractRenderer.__\u003C\u003EDEFAULT_OUTLINE_STROKE; this.autoPopulateSeriesOutlineStroke = false; this.shape = (Shape) null; this.shapeList = new ShapeList(); this.baseShape = AbstractRenderer.__\u003C\u003EDEFAULT_SHAPE; this.autoPopulateSeriesShape = true; this.itemLabelsVisible = (Boolean) null; this.itemLabelsVisibleList = new BooleanList(); this.baseItemLabelsVisible = (Boolean) Boolean.FALSE; this.itemLabelFont = (Font) null; this.itemLabelFontList = new ObjectList(); this.baseItemLabelFont = new Font("SansSerif", 0, 10); this.itemLabelPaint = (Paint) null; this.itemLabelPaintList = new PaintList(); this.baseItemLabelPaint = (Paint) Color.black; this.positiveItemLabelPosition = (ItemLabelPosition) null; this.positiveItemLabelPositionList = new ObjectList(); this.basePositiveItemLabelPosition = new ItemLabelPosition(ItemLabelAnchor.__\u003C\u003EOUTSIDE12, TextAnchor.__\u003C\u003EBOTTOM_CENTER); this.negativeItemLabelPosition = (ItemLabelPosition) null; this.negativeItemLabelPositionList = new ObjectList(); this.baseNegativeItemLabelPosition = new ItemLabelPosition(ItemLabelAnchor.__\u003C\u003EOUTSIDE6, TextAnchor.__\u003C\u003ETOP_CENTER); this.createEntities = (Boolean) null; this.createEntitiesList = new BooleanList(); this.baseCreateEntities = true; this.defaultEntityRadius = 3; this.legendShape = new ShapeList(); this.baseLegendShape = (Shape) null; this.legendTextFont = new ObjectList(); this.baseLegendTextFont = (Font) null; this.legendTextPaint = new PaintList(); this.baseLegendTextPaint = (Paint) null; this.listenerList = new EventListenerList(); }
public static JFreeChart createWaterfallChart(string title, string categoryAxisLabel, string valueAxisLabel, CategoryDataset 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 { CategoryAxis domainAxis = new CategoryAxis(categoryAxisLabel); domainAxis.setCategoryMargin(0.0); NumberAxis numberAxis = new NumberAxis(valueAxisLabel); WaterfallBarRenderer waterfallBarRenderer = new WaterfallBarRenderer(); if (orientation == PlotOrientation.__\u003C\u003EHORIZONTAL) { ItemLabelPosition position = new ItemLabelPosition(ItemLabelAnchor.__\u003C\u003ECENTER, TextAnchor.__\u003C\u003ECENTER, TextAnchor.__\u003C\u003ECENTER, Math.PI / 2.0); waterfallBarRenderer.setBasePositiveItemLabelPosition(position); waterfallBarRenderer.setBaseNegativeItemLabelPosition(position); } else if (orientation == PlotOrientation.__\u003C\u003EVERTICAL) { ItemLabelPosition position = new ItemLabelPosition(ItemLabelAnchor.__\u003C\u003ECENTER, TextAnchor.__\u003C\u003ECENTER, TextAnchor.__\u003C\u003ECENTER, 0.0); waterfallBarRenderer.setBasePositiveItemLabelPosition(position); waterfallBarRenderer.setBaseNegativeItemLabelPosition(position); } if (num1 != 0) { StandardCategoryToolTipGenerator toolTipGenerator = new StandardCategoryToolTipGenerator(); waterfallBarRenderer.setBaseToolTipGenerator((CategoryToolTipGenerator) toolTipGenerator); } if (num2 != 0) waterfallBarRenderer.setBaseItemURLGenerator((CategoryURLGenerator) new StandardCategoryURLGenerator()); CategoryPlot categoryPlot = new CategoryPlot(dataset, domainAxis, (ValueAxis) numberAxis, (CategoryItemRenderer) waterfallBarRenderer); categoryPlot.clearRangeMarkers(); ValueMarker valueMarker = new ValueMarker(0.0); valueMarker.setPaint((Paint) Color.black); categoryPlot.addRangeMarker((Marker) valueMarker, Layer.__\u003C\u003EFOREGROUND); categoryPlot.setOrientation(orientation); JFreeChart.__\u003Cclinit\u003E(); JFreeChart jfc = new JFreeChart(title, JFreeChart.__\u003C\u003EDEFAULT_TITLE_FONT, (Plot) categoryPlot, num3 != 0); ChartFactory.currentTheme.apply(jfc); return jfc; } }
public static JFreeChart createBarChart(string title, string categoryAxisLabel, string valueAxisLabel, CategoryDataset 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 { CategoryAxis domainAxis = new CategoryAxis(categoryAxisLabel); NumberAxis numberAxis = new NumberAxis(valueAxisLabel); BarRenderer barRenderer = new BarRenderer(); if (orientation == PlotOrientation.__\u003C\u003EHORIZONTAL) { ItemLabelPosition position1 = new ItemLabelPosition(ItemLabelAnchor.__\u003C\u003EOUTSIDE3, TextAnchor.__\u003C\u003ECENTER_LEFT); barRenderer.setBasePositiveItemLabelPosition(position1); ItemLabelPosition position2 = new ItemLabelPosition(ItemLabelAnchor.__\u003C\u003EOUTSIDE9, TextAnchor.__\u003C\u003ECENTER_RIGHT); barRenderer.setBaseNegativeItemLabelPosition(position2); } else if (orientation == PlotOrientation.__\u003C\u003EVERTICAL) { ItemLabelPosition position1 = new ItemLabelPosition(ItemLabelAnchor.__\u003C\u003EOUTSIDE12, TextAnchor.__\u003C\u003EBOTTOM_CENTER); barRenderer.setBasePositiveItemLabelPosition(position1); ItemLabelPosition position2 = new ItemLabelPosition(ItemLabelAnchor.__\u003C\u003EOUTSIDE6, TextAnchor.__\u003C\u003ETOP_CENTER); barRenderer.setBaseNegativeItemLabelPosition(position2); } if (num1 != 0) barRenderer.setBaseToolTipGenerator((CategoryToolTipGenerator) new StandardCategoryToolTipGenerator()); if (num2 != 0) barRenderer.setBaseItemURLGenerator((CategoryURLGenerator) new StandardCategoryURLGenerator()); CategoryPlot categoryPlot = new CategoryPlot(dataset, domainAxis, (ValueAxis) numberAxis, (CategoryItemRenderer) barRenderer); categoryPlot.setOrientation(orientation); JFreeChart.__\u003Cclinit\u003E(); JFreeChart jfc = new JFreeChart(title, JFreeChart.__\u003C\u003EDEFAULT_TITLE_FONT, (Plot) categoryPlot, num3 != 0); ChartFactory.currentTheme.apply(jfc); return jfc; } }