protected PrideXYPlot( PrideChartType type, XYDataset dataset, XYItemRenderer renderer, boolean smallPlot) { super( dataset, new NumberAxis(type.getDomainLabel()), new NumberAxis(type.getRangeLabel()), renderer); this.type = type; setOrientation(PlotOrientation.VERTICAL); setDomainZeroBaselineVisible(true); setBackgroundAlpha(0f); setDomainCrosshairPaint(Color.red); setRangeCrosshairPaint(Color.blue); getRangeAxis().setUpperMargin(0.15); this.smallPlot = smallPlot; }
@Override public boolean isLegend() { return type.isLegend(); }
@Override public String getRangeLabel() { return type.getRangeLabel(); }
@Override public String getDomainLabel() { return type.getDomainLabel(); }
@Override public String getFullTitle() { return type.getFullTitle(); }