Package com.positive.charts.labels

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


        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

  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

    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

        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

TOP

Related Classes of com.positive.charts.labels.CategoryItemLabelGenerator

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.