Package com.positive.charts.labels

Examples of com.positive.charts.labels.XYItemLabelGenerator


  protected void drawItemLabel(final GC g2,
      final PlotOrientation orientation, final XYDataset dataset,
      final int series, final int item, final double x, final double y,
      final boolean negative) {

    final XYItemLabelGenerator generator = this.getItemLabelGenerator(
        series, item);
    if (generator != null) {
      final Font labelFont = this.getItemLabelFont(series, item);
      // Paint paint = getItemLabelPaint(series, item);
      // g2.setPaint(paint);

      // Color color = getColor(ITEM_LABEL_COLOR);
      // g2.setForeground(color);
      g2.setFont(labelFont);
      final String label = generator.generateLabel(dataset, series, item);

      // get the label position..
      ItemLabelPosition position = null;
      if (!negative) {
        position = this.getPositiveItemLabelPosition(series, item);
View Full Code Here


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

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

TOP

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

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.