Examples of CategoryItemLabelGenerator


Examples of com.positive.charts.labels.CategoryItemLabelGenerator

      this.getItemStroke(row, column).set(gc);
      gc.setForeground(this.getItemOutlinePaint(row, column));
      gc.drawRectangle(bar);
    }

    final CategoryItemLabelGenerator generator = this
        .getItemLabelGenerator(row, column);
    if ((generator != null) && this.isItemLabelVisible(row, column)) {
      this.drawItemLabel(gc, dataset, row, column, plot, generator, bar,
          (value < 0.0));
    }
View Full Code Here

Examples of com.positive.charts.labels.CategoryItemLabelGenerator

        final Region region = new Region();
        region.add(bar);
        this.addItemEntity(entities, dataset, row, column, region);
      }
    } else if (pass == 1) {
      final CategoryItemLabelGenerator generator = this
          .getItemLabelGenerator(row, column);
      if ((generator != null) && this.isItemLabelVisible(row, column)) {
        this.drawItemLabel(gc, dataset, row, column, plot, generator,
            bar, (value < 0.0));
      }
View Full Code Here

Examples of com.positive.charts.labels.CategoryItemLabelGenerator

  protected void drawItemLabel(final GC g2,
      final PlotOrientation orientation, final CategoryDataset dataset,
      final int row, final int column, final double x, final double y,
      final boolean negative) {

    final CategoryItemLabelGenerator generator = this
        .getItemLabelGenerator(row, column);
    if (generator != null) {
      final Font labelFont = this.getItemLabelFont(row, column);
      final Color paint = this.getItemLabelPaint(row, column);
      g2.setFont(labelFont);
      g2.setForeground(paint);
      final String label = generator.generateLabel(dataset, row, column);
      ItemLabelPosition position = null;
      if (!negative) {
        position = this.getPositiveItemLabelPosition(row, column);
      } else {
        position = this.getNegativeItemLabelPosition(row, column);
View Full Code Here

Examples of com.positive.charts.labels.CategoryItemLabelGenerator

    if (this.itemLabelGenerator != null) {
      return this.itemLabelGenerator;
    }

    // otherwise look up the generator table
    CategoryItemLabelGenerator generator = (CategoryItemLabelGenerator) this.itemLabelGeneratorList
        .get(series);
    if (generator == null) {
      generator = this.baseItemLabelGenerator;
    }
    return generator;
View Full Code Here

Examples of com.positive.charts.labels.CategoryItemLabelGenerator

        gc.setBackground(paint);
        gc.drawRectangle(bar);
      }
    }

    final CategoryItemLabelGenerator generator = this
        .getItemLabelGenerator(row, column);
    if ((generator != null) && this.isItemLabelVisible(row, column)) {
      this.drawItemLabel(gc, dataset, row, column, plot, generator, bar,
          (value < 0.0));
    }
View Full Code Here

Examples of org.jfree.chart.labels.CategoryItemLabelGenerator

      if (bar3dTop != null) {
        g2.draw(bar3dTop);
      }
    }

    CategoryItemLabelGenerator generator
    = getItemLabelGenerator(row, column);
    if (generator != null && isItemLabelVisible(row, column)) {
      drawItemLabel(g2, dataset, row, column, plot, generator, bar, (value < 0.0));
    }
View Full Code Here

Examples of org.jfree.chart.labels.CategoryItemLabelGenerator

        JFreeChart chart = ChartFactory.createBarChart(
                "Best score summary (higher score is better)", "Data", "Score",
                dataset, PlotOrientation.VERTICAL, true, true, false
        );
        CategoryItemRenderer renderer = ((CategoryPlot) chart.getPlot()).getRenderer();
        CategoryItemLabelGenerator generator = new StandardCategoryItemLabelGenerator();
        renderer.setBaseItemLabelGenerator(generator);
        renderer.setBaseItemLabelsVisible(true);
        BufferedImage chartImage = chart.createBufferedImage(1024, 768);
        File chartSummaryFile = new File(solverStatisticFilesDirectory, "summary.png");
        OutputStream out = null;
View Full Code Here

Examples of org.jfree.chart.labels.CategoryItemLabelGenerator

            if (entities != null) {
                addItemEntity(entities, dataset, row, column, bar);
            }
        }
        else if (pass == 2) {
            CategoryItemLabelGenerator generator = getItemLabelGenerator(row,
                    column);
            if (generator != null && isItemLabelVisible(row, column)) {
                drawItemLabel(g2, dataset, row, column, plot, generator, bar,
                        (value < 0.0));
            }
View Full Code Here

Examples of org.jfree.chart.labels.CategoryItemLabelGenerator

        if (getShadowsVisible()) {
            painter.paintBarShadow(g2, this, row, column, bar, barBase, false);
        }
        getBarPainter().paintBar(g2, this, row, column, bar, barBase);

        CategoryItemLabelGenerator generator = getItemLabelGenerator(row,
                column);
        if (generator != null && isItemLabelVisible(row, column)) {
            drawItemLabel(g2, dataset, row, column, plot, generator, bar,
                    false);
        }
View Full Code Here

Examples of org.jfree.chart.labels.CategoryItemLabelGenerator

            if (bar3dTop != null) {
                g2.draw(bar3dTop);
            }
        }

        CategoryItemLabelGenerator generator
            = getItemLabelGenerator(row, column);
        if (generator != null && isItemLabelVisible(row, column)) {
            drawItemLabel(g2, dataset, row, column, plot, generator, bar,
                    (value < 0.0));
        }
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.