Examples of generateLabel()


Examples of org.jfree.chart.labels.CategoryItemLabelGenerator.generateLabel()

        if (generator != null) {
            Font labelFont = getItemLabelFont(row, column);
            Paint paint = getItemLabelPaint(row, column);
            g2.setFont(labelFont);
            g2.setPaint(paint);
            String label = generator.generateLabel(dataset, row, column);
            ItemLabelPosition position = null;
            if (!negative) {
                position = getPositiveItemLabelPosition(row, column);
            }
            else {
View Full Code Here

Examples of org.jfree.chart.labels.CategoryItemLabelGenerator.generateLabel()

      TableOrder dataExtractOrder = getDataExtractOrder();
      CategoryDataset dataset = getDataset();

      String label = null;
      if (dataExtractOrder == TableOrder.BY_ROW) {
        label = labelGenerator.generateLabel(dataset, 0, cat);
      } else {
        label = labelGenerator.generateLabel(dataset, cat, 0);
      }

      Rectangle2D labelBounds = getLabelFont().getStringBounds(label, frc);
View Full Code Here

Examples of org.jfree.chart.labels.CategoryItemLabelGenerator.generateLabel()

      String label = null;
      if (dataExtractOrder == TableOrder.BY_ROW) {
        label = labelGenerator.generateLabel(dataset, 0, cat);
      } else {
        label = labelGenerator.generateLabel(dataset, cat, 0);
      }

      Rectangle2D labelBounds = getLabelFont().getStringBounds(label, frc);
      LineMetrics lm = getLabelFont().getLineMetrics(label, frc);
      double ascent = lm.getAscent();
View Full Code Here

Examples of org.jfree.chart.labels.CategoryItemLabelGenerator.generateLabel()

        if (generator != null) {
            Font labelFont = getItemLabelFont(row, column);
            Paint paint = getItemLabelPaint(row, column);
            g2.setFont(labelFont);
            g2.setPaint(paint);
            String label = generator.generateLabel(dataset, row, column);
            ItemLabelPosition position = null;
            if (!negative) {
                position = getPositiveItemLabelPosition(row, column);
            }
            else {
View Full Code Here

Examples of org.jfree.chart.labels.CategoryItemLabelGenerator.generateLabel()

        if (generator != null) {
            Font labelFont = getItemLabelFont(row, column);
            Paint paint = getItemLabelPaint(row, column);
            g2.setFont(labelFont);
            g2.setPaint(paint);
            String label = generator.generateLabel(dataset, row, column);
            ItemLabelPosition position = null;
            if (!negative) {
                position = getPositiveItemLabelPosition(row, column);
            }
            else {
View Full Code Here

Examples of org.jfree.chart.labels.CategoryItemLabelGenerator.generateLabel()

        if (generator != null) {
            Font labelFont = getItemLabelFont(row, column);
            Paint paint = getItemLabelPaint(row, column);
            g2.setFont(labelFont);
            g2.setPaint(paint);
            String label = generator.generateLabel(dataset, row, column);
            ItemLabelPosition position = null;
            if (!negative) {
                position = getPositiveItemLabelPosition(row, column);
            }
            else {
View Full Code Here

Examples of org.jfree.chart.labels.CategoryLabelGenerator.generateLabel()

        if (generator != null) {
            Font labelFont = getItemLabelFont(row, column);
            Paint paint = getItemLabelPaint(row, column);
            g2.setFont(labelFont);
            g2.setPaint(paint);
            String label = generator.generateLabel(dataset, row, column);
            ItemLabelPosition position = null;
            if (!negative) {
                position = getPositiveItemLabelPosition(row, column);
            }
            else {
View Full Code Here

Examples of org.jfree.chart.labels.StandardCategoryItemLabelGenerator.generateLabel()

        DefaultCategoryDataset dataset = new DefaultCategoryDataset();
        dataset.addValue(1.0, "R0", "C0");
        dataset.addValue(2.0, "R0", "C1");
        dataset.addValue(3.0, "R1", "C0");
        dataset.addValue(null, "R1", "C1");
        String s = g.generateLabel(dataset, 0, 0);
        assertTrue(s.startsWith("1"));
        assertTrue(s.endsWith("000"));

        // try a null value
        s = g.generateLabel(dataset, 1, 1);
View Full Code Here

Examples of org.jfree.chart.labels.StandardCategoryItemLabelGenerator.generateLabel()

        String s = g.generateLabel(dataset, 0, 0);
        assertTrue(s.startsWith("1"));
        assertTrue(s.endsWith("000"));

        // try a null value
        s = g.generateLabel(dataset, 1, 1);
        assertEquals("-", s);
    }

    /**
     * Some checks for the equals() method.
View Full Code Here

Examples of org.jfree.chart.labels.StandardCategoryItemLabelGenerator.generateLabel()

        DefaultCategoryDataset dataset = new DefaultCategoryDataset();
        dataset.addValue(1.0, "R0", "C0");
        dataset.addValue(2.0, "R0", "C1");
        dataset.addValue(3.0, "R1", "C0");
        dataset.addValue(null, "R1", "C1");
        String s = g.generateLabel(dataset, 0, 0);
        assertTrue(s.startsWith("1"));
        assertTrue(s.endsWith("000"));

        // try a null value
        s = g.generateLabel(dataset, 1, 1);
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.