Package com.positive.charts.plot

Examples of com.positive.charts.plot.PlotOrientation


      final Rectangle dataArea, final int rendererIndex) {
    // calculate the bar width
    final CategoryAxis xAxis = plot.getDomainAxisForDataset(rendererIndex);
    final CategoryDataset data = plot.getDataset(rendererIndex);
    if (data != null) {
      final PlotOrientation orientation = plot.getOrientation();
      double space = 0.0;
      if (orientation == PlotOrientation.HORIZONTAL) {
        space = dataArea.height;
      } else if (orientation == PlotOrientation.VERTICAL) {
        space = dataArea.width;
View Full Code Here


  public double calculateMaxBarWidth(final CategoryPlot plot,
      final Rectangle dataArea, final int rendererIndex) {
    final CategoryDataset data = plot.getDataset(rendererIndex);
    if (data != null) {
      final PlotOrientation orientation = plot.getOrientation();
      double space = 0.0;
      if (orientation == PlotOrientation.HORIZONTAL) {
        space = dataArea.height;
      } else if (orientation == PlotOrientation.VERTICAL) {
        space = dataArea.width;
View Full Code Here

    }

    final double value = dataValue.doubleValue();
    final Comparable group = this.seriesToGroupMap.getGroup(dataset
        .getRowKey(row));
    final PlotOrientation orientation = plot.getOrientation();
    final double barW0 = this.calculateBarW0(plot, orientation, dataArea,
        domainAxis, state, row, column);

    // TODO : START : Code to position subcategory labels under bars
View Full Code Here

    // calculate the bar width
    final CategoryAxis xAxis = plot.getDomainAxisForDataset(rendererIndex);
    final CategoryDataset data = plot.getDataset(rendererIndex);
    if (data != null) {
      final PlotOrientation orientation = plot.getOrientation();
      double space = 0.0;
      if (orientation == PlotOrientation.HORIZONTAL) {
        space = dataArea.height;
      } else if (orientation == PlotOrientation.VERTICAL) {
        space = dataArea.width;
View Full Code Here

    if (this.renderAsPercentages) {
      total = DataUtilities.calculateColumnTotal(dataset, column);
      value = value / total;
    }

    final PlotOrientation orientation = plot.getOrientation();
    final double barW0 = domainAxis.getCategoryMiddle(column, this
        .getColumnCount(), dataArea, plot.getDomainAxisEdge())
        - state.getBarWidth() / 2.0;

    double positiveBase = this.getBase();
View Full Code Here

    final State s = (State) state;
    // update path to reflect latest point
    if (!Double.isNaN(transX1) && !Double.isNaN(transY1)) {
      float x = (float) transX1;
      float y = (float) transY1;
      final PlotOrientation orientation = plot.getOrientation();
      if (orientation == PlotOrientation.HORIZONTAL) {
        x = (float) transY1;
        y = (float) transX1;
      }
      if (s.isLastPointGood()) {
View Full Code Here

    final double y1 = dataset.getYValue(series, item);
    if (Double.isNaN(y1) || Double.isNaN(x1)) {
      return;
    }

    final PlotOrientation orientation = plot.getOrientation();
    final RectangleEdge xAxisLocation = plot.getDomainAxisEdge();
    final RectangleEdge yAxisLocation = plot.getRangeAxisEdge();
    final double transX1 = domainAxis.valueToJava2D(x1, dataArea,
        xAxisLocation);
    final double transY1 = rangeAxis.valueToJava2D(y1, dataArea,
View Full Code Here

      // update path to reflect latest point
      if (!Double.isNaN(transX1) && !Double.isNaN(transY1)) {
        float x = (float) transX1;
        float y = (float) transY1;
        final PlotOrientation orientation = plot.getOrientation();
        if (orientation == PlotOrientation.HORIZONTAL) {
          x = (float) transY1;
          y = (float) transX1;
        }
        if (s.isLastPointGood()) {
View Full Code Here

      translatedWidth = translatedWidth - cut;
      translatedStartX = translatedStartX + cut / 2;
    }

    Rectangle bar = null;
    final PlotOrientation orientation = plot.getOrientation();
    if (orientation == PlotOrientation.HORIZONTAL) {
      bar = new Rectangle(
          (int) Math.min(translatedBase, translatedValue),
          (int) translatedEndX, (int) translatedHeight,
          (int) translatedWidth);
View Full Code Here

      translatedWidth = translatedWidth - cut;
      translatedStartX = translatedStartX + cut / 2;
    }

    Rectangle bar = null;
    final PlotOrientation orientation = plot.getOrientation();
    if (orientation == PlotOrientation.HORIZONTAL) {
      bar = new Rectangle((int) Math.min(translatedValue0,
          translatedValue1), (int) Math.min(translatedStartX,
          translatedEndX), (int) translatedHeight,
          (int) translatedWidth);
View Full Code Here

TOP

Related Classes of com.positive.charts.plot.PlotOrientation

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.