Examples of mapDatasetToRangeAxis()


Examples of org.jfree.chart.plot.CategoryPlot.mapDatasetToRangeAxis()

    plot.setRenderer( 1, lineRenderer );
    // add lines dataset, renderer and axis to plot
    plot.setDataset( 1, linesDataset );
    plot.setRangeAxis( 1, linesAxis );
    // map lines to second axis
    plot.mapDatasetToRangeAxis( 1, 1 );
    // set rendering order
    plot.setDatasetRenderingOrder( DatasetRenderingOrder.FORWARD );
    // set location of second axis
    plot.setRangeAxisLocation( 1, AxisLocation.BOTTOM_OR_RIGHT );
View Full Code Here

Examples of org.jfree.chart.plot.CategoryPlot.mapDatasetToRangeAxis()

      if(secondAxisLB != null && secondAxisUB != null){
        rangeAxis.setLowerBound(secondAxisLB);
        rangeAxis.setUpperBound(secondAxisUB);
      }
      plot.setRangeAxis(1,na);
      plot.mapDatasetToRangeAxis(0, 0);
      plot.mapDatasetToRangeAxis(2, 0);
      plot.mapDatasetToRangeAxis(1, 1);
      plot.mapDatasetToRangeAxis(3, 1);
      if(rangeIntegerValues==true){
        na.setStandardTickUnits(NumberAxis.createIntegerTickUnits())
View Full Code Here

Examples of org.jfree.chart.plot.CategoryPlot.mapDatasetToRangeAxis()

        rangeAxis.setLowerBound(secondAxisLB);
        rangeAxis.setUpperBound(secondAxisUB);
      }
      plot.setRangeAxis(1,na);
      plot.mapDatasetToRangeAxis(0, 0);
      plot.mapDatasetToRangeAxis(2, 0);
      plot.mapDatasetToRangeAxis(1, 1);
      plot.mapDatasetToRangeAxis(3, 1);
      if(rangeIntegerValues==true){
        na.setStandardTickUnits(NumberAxis.createIntegerTickUnits())
      }
View Full Code Here

Examples of org.jfree.chart.plot.CategoryPlot.mapDatasetToRangeAxis()

        rangeAxis.setUpperBound(secondAxisUB);
      }
      plot.setRangeAxis(1,na);
      plot.mapDatasetToRangeAxis(0, 0);
      plot.mapDatasetToRangeAxis(2, 0);
      plot.mapDatasetToRangeAxis(1, 1);
      plot.mapDatasetToRangeAxis(3, 1);
      if(rangeIntegerValues==true){
        na.setStandardTickUnits(NumberAxis.createIntegerTickUnits())
      }
View Full Code Here

Examples of org.jfree.chart.plot.CategoryPlot.mapDatasetToRangeAxis()

      }
      plot.setRangeAxis(1,na);
      plot.mapDatasetToRangeAxis(0, 0);
      plot.mapDatasetToRangeAxis(2, 0);
      plot.mapDatasetToRangeAxis(1, 1);
      plot.mapDatasetToRangeAxis(3, 1);
      if(rangeIntegerValues==true){
        na.setStandardTickUnits(NumberAxis.createIntegerTickUnits())
      }

    }
View Full Code Here

Examples of org.jfree.chart.plot.CategoryPlot.mapDatasetToRangeAxis()

      if(rangeIntegerValues==true){
        na.setStandardTickUnits(NumberAxis.createIntegerTickUnits())
      }
      na.setNumberFormatOverride(nf);     
      plot.setRangeAxis(1,na);
      plot.mapDatasetToRangeAxis(0, 1);
    }



    //plot.setDatasetRenderingOrder(DatasetRenderingOrder.FORWARD);
View Full Code Here

Examples of org.jfree.chart.plot.CategoryPlot.mapDatasetToRangeAxis()

    NumberAxis axis2 = new NumberAxis("Percent");
    axis2.setNumberFormatOverride(NumberFormat.getPercentInstance());
    plot.setRangeAxis(1, axis2);
    plot.setDataset(1, datasetCumulative);
    plot.setRenderer(1, renderer2);
    plot.mapDatasetToRangeAxis(1, 1);

    plot.setDatasetRenderingOrder(DatasetRenderingOrder.FORWARD);
    return chart;  
  }
View Full Code Here

Examples of org.jfree.chart.plot.CategoryPlot.mapDatasetToRangeAxis()

                renderer.setSeriesStroke(0, new BasicStroke(4f, BasicStroke.JOIN_ROUND, BasicStroke.JOIN_BEVEL));
                renderer.setSeriesStroke(1, new BasicStroke(4f, BasicStroke.JOIN_ROUND, BasicStroke.JOIN_BEVEL));
                plot.setRenderer(1, renderer);
                ValueAxis rangeAxis = new NumberAxis(Messages.ProjectDiskUsage() + " (" + workspaceUnit + ")");
                plot.setRangeAxis(1, rangeAxis);
                plot.mapDatasetToRangeAxis(1, 1);
                setColorForArea(plot.getRenderer(), dataset.getRowCount()>2);
                plot.setDatasetRenderingOrder(DatasetRenderingOrder.FORWARD);
                renderer.setSeriesPaint(1, new Color(255,204,0));
    return chart;
  }
View Full Code Here

Examples of org.jfree.chart.plot.CategoryPlot.mapDatasetToRangeAxis()

        // returned...
        NumberAxis yAxis2 = new NumberAxis("Y2");
        plot.setRangeAxis(1, yAxis2);
        assertEquals(yAxis, plot.getRangeAxisForDataset(0));

        plot.mapDatasetToRangeAxis(0, 1);
        assertEquals(yAxis2, plot.getRangeAxisForDataset(0));

        List axisIndices = Arrays.asList(new Integer[] {new Integer(0),
                new Integer(1)});
        plot.mapDatasetToRangeAxes(0, axisIndices);
View Full Code Here

Examples of org.jfree.chart.plot.CategoryPlot.mapDatasetToRangeAxis()

        assertTrue(plot1.equals(plot2));

        // datasetToRangeAxisMap...
        plot1.mapDatasetToRangeAxis(11, 11);
        assertFalse(plot1.equals(plot2));
        plot2.mapDatasetToRangeAxis(11, 11);
        assertTrue(plot1.equals(plot2));

        // renderer - no longer a separate field but test anyway...
        plot1.setRenderer(new AreaRenderer());
        assertFalse(plot1.equals(plot2));
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.