Examples of XYDataset


Examples of org.jfree.data.xy.XYDataset

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

Examples of org.jfree.data.xy.XYDataset

   }

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

Examples of org.jfree.data.xy.XYDataset

   }
  
   @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

Examples of org.jfree.data.xy.XYDataset

      }

      super.clearAnnotations();

      // ---
      XYDataset dst = super.getDataset();

      if (dst == null)
         return;

      if (dst instanceof IGfrHandlerLifeCycleObject)
View Full Code Here

Examples of org.jfree.data.xy.XYDataset

      for (int i = 0; i < lstPlot.size(); i++)
      {
         XYPlot pltCur = (XYPlot) super.getSubplots().get(i);

         XYDataset dst = pltCur.getDataset();

         if (! (dst instanceof XYSeriesCollection))
            continue;

         XYSeriesCollection serCollection = (XYSeriesCollection) dst;
View Full Code Here

Examples of org.jfree.data.xy.XYDataset

   public void setUnitDepthMeter(boolean bln)
   {
      ValueAxis vas = super.getDomainAxis(0);
      ((GfrAxsLinDstAbs) vas).setUnitMeter(bln);

      XYDataset dst = super.getDataset();

      if (dst != null)
      { 
         if (dst instanceof IGfrDepthMetersAndFeet)
            ((IGfrDepthMetersAndFeet) dst).setUnitDepthMeter(bln);
        
         else if (dst instanceof GfrEmptyDataSet)
         {
            //ignore
         }
         else
         {
            System.out.println("Uncaught dataset" + dst.toString());
            System.exit(1);
         }
      }
     
      List<Annotation> lstAnnotations = super.getAnnotations();
View Full Code Here

Examples of org.jfree.data.xy.XYDataset

     * @see #setDataset(int, XYDataset)
     *
     * @since 1.0.14
     */
    public XYDataset getDataset(int index) {
        XYDataset result = null;
        if (index < this.datasets.size()) {
            result = (XYDataset) this.datasets.get(index);
        }
        return result;
    }
View Full Code Here

Examples of org.jfree.data.xy.XYDataset

     * @see #getDataset(int)
     *
     * @since 1.0.14
     */
    public void setDataset(int index, XYDataset dataset) {
        XYDataset existing = getDataset(index);
        if (existing != null) {
            existing.removeChangeListener(this);
        }
        this.datasets.set(index, dataset);
        if (dataset != null) {
            dataset.addChangeListener(this);
        }
View Full Code Here

Examples of org.jfree.data.xy.XYDataset

        // now get the data and plot it (the visual representation will depend
        // on the m_Renderer that has been set)...
        boolean hasData = false;
        int datasetCount = this.datasets.size();
        for (int i = datasetCount - 1; i >= 0; i--) {
            XYDataset dataset = getDataset(i);
            if (dataset == null) {
                continue;
            }
            PolarItemRenderer renderer = getRenderer(i);
            if (renderer == null) {
                continue;
            }
            if (!DatasetUtilities.isEmptyOrNull(dataset)) {
                hasData = true;
                int seriesCount = dataset.getSeriesCount();
                for (int series = 0; series < seriesCount; series++) {
                    renderer.drawSeries(g2, dataArea, info, this, dataset,
                            series);
                }
            }
View Full Code Here

Examples of org.jfree.data.xy.XYDataset

        // of the ranges.
        Iterator iterator = mappedDatasets.iterator();
        int datasetIdx = -1;
        while (iterator.hasNext()) {
            datasetIdx++;
            XYDataset d = (XYDataset) iterator.next();
            if (d != null) {
                // FIXME better ask the renderer instead of DatasetUtilities
                result = Range.combine(result,
                        DatasetUtilities.findRangeBounds(d));
            }
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.