示例#1
0
  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;
  }
示例#2
0
 @Override
 public boolean isLegend() {
   return type.isLegend();
 }
示例#3
0
 @Override
 public String getRangeLabel() {
   return type.getRangeLabel();
 }
示例#4
0
 @Override
 public String getDomainLabel() {
   return type.getDomainLabel();
 }
示例#5
0
 @Override
 public String getFullTitle() {
   return type.getFullTitle();
 }