Package org.jfree.data.xy

Examples of org.jfree.data.xy.XYDataset


    line3DRenderer.setURLGenerator(lineRenderer.getURLGenerator());
    line3DRenderer.setBaseStroke(new BasicStroke(2, BasicStroke.CAP_ROUND, BasicStroke.JOIN_ROUND));
    line3DRenderer.setBaseLinesVisible(lineRenderer.getBaseLinesVisible());
    line3DRenderer.setBaseShapesVisible(lineRenderer.getBaseShapesVisible());
    Stroke stroke = new BasicStroke(2f, BasicStroke.CAP_ROUND, BasicStroke.JOIN_ROUND);
    XYDataset xyDataset = xyPlot.getDataset();
    if(xyDataset != null)
    {
      for(int i = 0; i < xyDataset.getSeriesCount(); i++)
      {
        line3DRenderer.setSeriesStroke(i, stroke);
        line3DRenderer.setSeriesLinesVisible(i, lineRenderer.getBaseLinesVisible());
        line3DRenderer.setSeriesShapesVisible(i, lineRenderer.getBaseShapesVisible());
      }
View Full Code Here


              final Number max = (Number) nav.where(NumberAnalyzer.DIMENSION_MEASURE,
                  NumberAnalyzer.MEASURE_HIGHEST_VALUE).get();

              final NormalDistributionFunction2D normalDistributionFunction = new NormalDistributionFunction2D(
                  mean.doubleValue(), standardDeviation.doubleValue());
              final XYDataset dataset = DatasetUtilities.sampleFunction2D(normalDistributionFunction,
                  min.doubleValue(), max.doubleValue(), 100, "Normal");

              final JFreeChart chart = ChartFactory.createXYLineChart(
                  "Normal distribution of " + column.getName(), column.getName(), "", dataset,
                  PlotOrientation.VERTICAL, false, true, false);
View Full Code Here

    if (plot == null)
    {
      return null;
    }

    final XYDataset dataset = plot.getDataset(datasetIndex);
    if (dataset == null)
    {
      return null;
    }

    LegendItem result = null;
    if (getItemVisible(series, 0))
    {
      final String label = getLegendItemLabelGenerator().generateLabel(dataset,
          series);
      String toolTipText = null;
      if (getLegendItemToolTipGenerator() != null)
      {
        toolTipText = getLegendItemToolTipGenerator().generateLabel(
            dataset, series);
      }
      String urlText = null;
      if (getLegendItemURLGenerator() != null)
      {
        urlText = getLegendItemURLGenerator().generateLabel(
            dataset, series);
      }
      final Paint fillPaint = lookupSeriesPaint(series);
      result = new LegendItem(label, label, toolTipText, urlText,
          getLegendShape(), fillPaint);
      result.setSeriesKey(dataset.getSeriesKey(series));
      result.setSeriesIndex(series);
      result.setDataset(dataset);
      result.setDatasetIndex(datasetIndex);
    }
View Full Code Here

    if (dataset instanceof XYDataset == false)
    {
      return computeXYChart(null);
    }

    final XYDataset xyDataset = (XYDataset) dataset;
    return computeXYChart(xyDataset);
  }
View Full Code Here

    {
      dataset = null;
    }


    final XYDataset linesDataset;
    if (dataset instanceof XYDataset)
    {
      linesDataset = (XYDataset) dataset;
    }
    else
View Full Code Here

    return chart;
  }

  protected void configureLineChart(final XYPlot plot)
  {
    final XYDataset linesDataset = createLinesDataset();
    if (linesDataset == null || linesDataset.getSeriesCount() == 0)
    {
      return;
    }

    //Create Axis Objects
View Full Code Here

        XYPlot plot = getPlot();
        if (plot == null) {
            return null;
        }

        XYDataset dataset = plot.getDataset(datasetIndex);
        if (dataset == null) {
            return null;
        }
       
        if (!getItemVisible(series, 0)) {
            return null;
        }
       
       
        String label = getLegendItemLabelGenerator().generateLabel(dataset,
                series);

        String description = label;
        String toolTipText = null;
        if (getLegendItemToolTipGenerator() != null) {
            toolTipText = getLegendItemToolTipGenerator().generateLabel(
                    dataset, series);
        }
        String urlText = null;
        if (getLegendItemURLGenerator() != null) {
            urlText = getLegendItemURLGenerator().generateLabel(dataset,
                    series);
        }
        boolean shapeIsVisible = getItemShapeVisible(series, 0);
        Shape shape = lookupLegendShape(series);
        boolean shapeIsFilled = getItemShapeFilled(series, 0);
        Paint fillPaint = (this.useFillPaint ? lookupSeriesFillPaint(series)
                : lookupSeriesPaint(series));
        boolean shapeOutlineVisible = this.drawOutlines;
        Paint outlinePaint = (this.useOutlinePaint ? lookupSeriesOutlinePaint(
                series) : lookupSeriesPaint(series));
        Stroke outlineStroke = lookupSeriesOutlineStroke(series);
        boolean lineVisible = getItemLineVisible(series, 0);
        Stroke lineStroke = lookupSeriesStroke(series);
        Paint linePaint = lookupSeriesPaint(series);
        LegendItem result = new LegendItem(label, description, toolTipText,
                urlText, shapeIsVisible, shape, shapeIsFilled, fillPaint,
                shapeOutlineVisible, outlinePaint, outlineStroke, lineVisible,
                this.legendLine, lineStroke, linePaint);
        result.setLabelFont(lookupLegendTextFont(series));
        Paint labelPaint = lookupLegendTextPaint(series);
        if (labelPaint != null) {
            result.setLabelPaint(labelPaint);
        }
        result.setSeriesKey(dataset.getSeriesKey(series));
        result.setSeriesIndex(series);
        result.setDataset(dataset);
        result.setDatasetIndex(datasetIndex);
       
        return result;
View Full Code Here

{  
  
   @Override
   public boolean addVariableLog(String strId) throws Exception
   {
        XYDataset dst = super.getDataset();
   
        if (((IHandlerContainerVariableLog) dst).addVariableLog(strId))
        {
            _update();
            return true;
View Full Code Here

   }

   @Override
   public boolean removeVariableLog(String strId) throws Exception
   {
        XYDataset dst = super.getDataset();
       
        if (((IHandlerContainerVariableLog) dst).removeVariableLog(strId))
        {
            _update();
            return true;
View Full Code Here

   }
  
   @Override
   public void setUnitDepthMeter(boolean bln)
   {
      XYDataset dst = super.getDataset();

      if (dst != null)
      { 
         if (dst instanceof IGfrDepthMetersAndFeet)
            ((IGfrDepthMetersAndFeet) dst).setUnitDepthMeter(bln);
View Full Code Here

TOP

Related Classes of org.jfree.data.xy.XYDataset

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.