Package com.positive.charts.plot

Examples of com.positive.charts.plot.CategoryPlot


    if (tooltips) {
      renderer
          .setBaseToolTipGenerator(new StandardCategoryToolTipGenerator());
    }

    final CategoryPlot plot = new CategoryPlot(dataset, categoryAxis,
        valueAxis, renderer);
    plot.setOrientation(orientation);
    final Chart chart = new Chart(plot, true);
    chart.setTitle(title);
    return chart;

  }
View Full Code Here


   *
   * @return The drawing supplier (possibly <code>null</code>).
   */
  public DrawingSupplier getDrawingSupplier() {
    DrawingSupplier result = null;
    final CategoryPlot cp = this.getPlot();
    if (cp != null) {
      result = cp.getDrawingSupplier();
    }
    return result;
  }
View Full Code Here

   *
   * @return The legend item.
   */
  public LegendItem getLegendItem(final int datasetIndex, final int series) {

    final CategoryPlot p = this.getPlot();
    if (p == null) {
      return null;
    }

    CategoryDataset dataset;
    dataset = p.getDataset(datasetIndex);
    final String label = this.legendItemLabelGenerator.generateLabel(
        dataset, series);
    final String description = label;
    String toolTipText = null;
    if (this.legendItemToolTipGenerator != null) {
View Full Code Here

   *
   * @return The legend item.
   */
  public LegendItem getLegendItem(final int datasetIndex, final int series) {

    final CategoryPlot cp = this.getPlot();
    if (cp == null) {
      return null;
    }

    CategoryDataset dataset;
    dataset = cp.getDataset(datasetIndex);
    final String label = this.getLegendItemLabelGenerator().generateLabel(
        dataset, series);
    final String description = label;
    String toolTipText = null;
    if (this.getLegendItemToolTipGenerator() != null) {
View Full Code Here

    // sanity check for data area...
    if ((dataArea.height <= 0.0) || (dataArea.width < 0.0)) {
      return ticks;
    }

    final CategoryPlot plot = (CategoryPlot) this.getPlot();
    final List categories = plot.getCategoriesForAxis(this);
    double max = 0.0;

    if (categories != null) {
      final CategoryLabelPosition position = this.categoryLabelPositions
          .getLabelPosition(edge);
View Full Code Here

      throw new IllegalArgumentException("Null 'state' argument.");
    }

    g2.setFont(this.subLabelFont);
    g2.setForeground(this.getSubLabelPaint());
    final CategoryPlot plot = (CategoryPlot) this.getPlot();
    final CategoryDataset dataset = plot.getDataset();
    final int categoryCount = dataset.getColumnCount();

    final double maxdim = this.getMaxDim(g2, edge);
    for (int categoryIndex = 0; categoryIndex < categoryCount; categoryIndex++) {
View Full Code Here

TOP

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

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.