예제 #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();
 }