Package org.jfree.chart.axis

Examples of org.jfree.chart.axis.LogarithmicAxis


  protected void configureLogarithmicAxis(final CategoryPlot plot)
  {
    if (isLogarithmicAxis())
    {
      final LogarithmicAxis logarithmicAxis;
      if (isHumanReadableLogarithmicFormat())
      {
        plot.getRenderer().setBaseItemLabelGenerator(new LogCategoryItemLabelGenerator());
        logarithmicAxis = new ScalingLogarithmicAxis(getValueAxisLabel());
        logarithmicAxis.setStrictValuesFlag(false);
      }
      else
      {
        logarithmicAxis = new LogarithmicAxis(getValueAxisLabel());
        logarithmicAxis.setStrictValuesFlag(false);
      }

      plot.setRangeAxis(logarithmicAxis);
    }
  }
View Full Code Here


  protected void configureLogarithmicAxis(final XYPlot plot)
  {
    if (isLogarithmicAxis())
    {
      final LogarithmicAxis logarithmicAxis;
      if (isHumanReadableLogarithmicFormat())
      {
        plot.getRenderer().setBaseItemLabelGenerator(new LogXYItemLabelGenerator());
        logarithmicAxis = new ScalingLogarithmicAxis(getRangeTitle());
        logarithmicAxis.setStrictValuesFlag(false);
      }
      else
      {
        logarithmicAxis = new LogarithmicAxis(getRangeTitle());
        logarithmicAxis.setStrictValuesFlag(false);
      }

      plot.setRangeAxis(logarithmicAxis);
    }
  }
View Full Code Here

  protected void configureLogarithmicAxis(final XYPlot plot)
  {
    if (isLogarithmicAxis())
    {
      final LogarithmicAxis logarithmicAxis;
      if (isHumanReadableLogarithmicFormat())
      {
        plot.getRenderer().setBaseItemLabelGenerator(new LogXYItemLabelGenerator());
        logarithmicAxis = new ScalingLogarithmicAxis(getRangeTitle());
        logarithmicAxis.setStrictValuesFlag(false);
      }
      else
      {
        logarithmicAxis = new LogarithmicAxis(getRangeTitle());
        logarithmicAxis.setStrictValuesFlag(false);
      }

      plot.setRangeAxis(logarithmicAxis);
    }
  }
View Full Code Here

  protected void configureLogarithmicAxis(final CategoryPlot plot)
  {
    if (isLogarithmicAxis())
    {
      final LogarithmicAxis logarithmicAxis;
      if (isHumanReadableLogarithmicFormat())
      {
        plot.getRenderer().setBaseItemLabelGenerator(new LogCategoryItemLabelGenerator());
        logarithmicAxis = new ScalingLogarithmicAxis(getValueAxisLabel());
        logarithmicAxis.setStrictValuesFlag(false);
      }
      else
      {
        logarithmicAxis = new LogarithmicAxis(getValueAxisLabel());
        logarithmicAxis.setStrictValuesFlag(false);
      }

      plot.setRangeAxis(logarithmicAxis);
    }
  }
View Full Code Here

    /**
     * Serialize an instance, restore it, and check for equality.
     */
    public void testSerialization() {

        LogarithmicAxis a1 = new LogarithmicAxis("Test Axis");
        LogarithmicAxis a2 = null;

        try {
            ByteArrayOutputStream buffer = new ByteArrayOutputStream();
            ObjectOutput out = new ObjectOutputStream(buffer);
            out.writeObject(a1);
View Full Code Here

    /**
     * Serialize an instance, restore it, and check for equality.
     */
    public void testSerialization() {

        LogarithmicAxis a1 = new LogarithmicAxis("Test Axis");
        LogarithmicAxis a2 = null;

        try {
            ByteArrayOutputStream buffer = new ByteArrayOutputStream();
            ObjectOutput out = new ObjectOutputStream(buffer);
            out.writeObject(a1);
View Full Code Here

    private XYPlot createScalabilityPlot(List<XYSeries> seriesList,
            String xAxisLabel, NumberFormat xAxisNumberFormat,
            String yAxisLabel, NumberFormat yAxisNumberFormat) {
        NumberAxis xAxis = new NumberAxis(xAxisLabel);
        if (useLogarithmicProblemScale(seriesList)) {
            xAxis = new LogarithmicAxis(xAxis.getLabel() + " (logarithmic)");
        }
        xAxis.setNumberFormatOverride(xAxisNumberFormat);
        NumberAxis yAxis = new NumberAxis(yAxisLabel);
        yAxis.setNumberFormatOverride(yAxisNumberFormat);
        XYPlot plot = new XYPlot(null, xAxis, yAxis, null);
View Full Code Here

    /**
     * Serialize an instance, restore it, and check for equality.
     */
    public void testSerialization() {

        LogarithmicAxis a1 = new LogarithmicAxis("Test Axis");
        LogarithmicAxis a2 = null;

        try {
            ByteArrayOutputStream buffer = new ByteArrayOutputStream();
            ObjectOutput out = new ObjectOutputStream(buffer);
            out.writeObject(a1);
View Full Code Here

    /**
     * Serialize an instance, restore it, and check for equality.
     */
    public void testSerialization() {

        LogarithmicAxis a1 = new LogarithmicAxis("Test Axis");
        LogarithmicAxis a2 = null;

        try {
            ByteArrayOutputStream buffer = new ByteArrayOutputStream();
            ObjectOutput out = new ObjectOutputStream(buffer);
            out.writeObject(a1);
View Full Code Here

            true,
            false
        );

        if (logar){
            LogarithmicAxis la = new LogarithmicAxis(yAxis);
            chart.getXYPlot().setRangeAxis(la);
        }

        XYPlot plot = (XYPlot) chart.getPlot();
        XYLineAndShapeRenderer renderer = new XYLineAndShapeRenderer();
View Full Code Here

TOP

Related Classes of org.jfree.chart.axis.LogarithmicAxis

Copyright © 2018 www.massapicom. 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.