Examples of PlotOrientation


Examples of org.jfree.chart.plot.PlotOrientation

            isShowLegend(), false, false, isStacked());
      }
    }
    else
    {
      final PlotOrientation orientation = computePlotOrientation();
      if (isStacked())
      {
        chart = createStackedXYAreaChart(computeTitle(), getDomainTitle(), getRangeTitle(),
            xyDataset, orientation, isShowLegend(), false, false);
      }
View Full Code Here

Examples of org.jfree.chart.plot.PlotOrientation

    }
  }

  protected PlotOrientation computePlotOrientation()
  {
    final PlotOrientation orientation;
    if (isHorizontal())
    {
      orientation = PlotOrientation.HORIZONTAL;
    }
    else
View Full Code Here

Examples of org.jfree.chart.plot.PlotOrientation

      chart = ChartFactory.createTimeSeriesChart(computeTitle(), getDomainTitle(), getRangeTitle(), xyDataset,
          isShowLegend(), false, false);
    }
    else
    {
      final PlotOrientation orientation = computePlotOrientation();
      chart = ChartFactory.createXYLineChart(computeTitle(), getDomainTitle(), getRangeTitle(),
          xyDataset, orientation, isShowLegend(), false, false);
    }
    configureLogarithmicAxis(chart.getXYPlot());
    return chart;
View Full Code Here

Examples of org.jfree.chart.plot.PlotOrientation

        axis.setCategoryLabelPositions(
            CategoryLabelPositions.createDownRotationLabelPositions((labelRotation / 180.0) * Math.PI));
      }
    }
   
    PlotOrientation plotOrientation = jrPlot.getOrientation() != null ? jrPlot.getOrientation() : plotSettings.getOrientation();
    if(plotOrientation != null)
    {
      p.setOrientation(plotOrientation);
    }
   
View Full Code Here

Examples of org.jfree.chart.plot.PlotOrientation

  }
 
  protected void handleCategoryPlotSettings(CategoryPlot p, JRChartPlot jrPlot)
  {
    Double defaultPlotLabelRotation = (Double)getDefaultValue(defaultPlotPropertiesMap, ChartThemesConstants.PLOT_LABEL_ROTATION);
    PlotOrientation defaultPlotOrientation = (PlotOrientation)getDefaultValue(defaultPlotPropertiesMap, ChartThemesConstants.PLOT_ORIENTATION);
    // Handle rotation of the category labels.
    CategoryAxis axis = p.getDomainAxis();
    boolean hasRotation = jrPlot.getLabelRotationDouble() != null || defaultPlotLabelRotation != null;
    if(hasRotation)
    {
View Full Code Here

Examples of org.jfree.chart.plot.PlotOrientation

  /**
   * @param orientation the orientation to set
   */
  public void setOrientation(PlotOrientation orientation) {
    PlotOrientation old = getOrientation();
    this.orientation = orientation;
    getEventSupport().firePropertyChange(PROPERTY_orientation, old, getOrientation());
  }
View Full Code Here

Examples of org.jfree.chart.plot.PlotOrientation

    // return straight away if the item is not visible
    if (!getItemVisible(series, item)) {
      return;
    }

    PlotOrientation orientation = plot.getOrientation();

    // get the data point...
    double x = dataset.getXValue(series, item);
    double y = dataset.getYValue(series, item);
    double z = Double.NaN;
View Full Code Here

Examples of org.jfree.chart.plot.PlotOrientation

    Rectangle2D adjusted = new Rectangle2D.Double(dataArea.getX(),
      dataArea.getY() + getYOffset(),
      dataArea.getWidth() - getXOffset(),
      dataArea.getHeight() - getYOffset());

    PlotOrientation orientation = plot.getOrientation();

    double barW0 = calculateBarW0(plot, orientation, adjusted, domainAxis,
      state, row, column);
    double[] barL0L1 = calculateBarL0L1(value);
    if (barL0L1 == null) {
View Full Code Here

Examples of org.jfree.chart.plot.PlotOrientation

          xAxisLocation) - adjx;
      final double transY = rangeAxis.valueToJava2D(y, dataArea, yAxisLocation)
          - adjy;

      g2.setPaint(getItemPaint(series, item));
      final PlotOrientation orientation = plot.getOrientation();
      final Shape s;
      if (orientation == PlotOrientation.HORIZONTAL)
      {
        //noinspection SuspiciousNameCombination
        s = new Rectangle2D.Double(transY, transX, this.dotHeight,
View Full Code Here

Examples of org.jfree.chart.plot.PlotOrientation

    }
  }

  protected PlotOrientation computePlotOrientation()
  {
    final PlotOrientation orientation;
    if (isHorizontal())
    {
      orientation = PlotOrientation.HORIZONTAL;
    }
    else
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.