Examples of XYAnnotation


Examples of org.jfree.chart.annotations.XYAnnotation

        }

        // process all annotations
        Iterator iter = plot.getAnnotations().iterator();
        while (iter.hasNext()) {
            XYAnnotation a = (XYAnnotation) iter.next();
            applyToXYAnnotation(a);
        }

        if (plot instanceof CombinedDomainXYPlot) {
            CombinedDomainXYPlot cp = (CombinedDomainXYPlot) plot;
View Full Code Here

Examples of org.jfree.chart.annotations.XYAnnotation

   @Override
   public void removeAnnotations()
   {
      for (int i = 0; i < this.foregroundAnnotations.size(); i++)
      {
         XYAnnotation annotation = (XYAnnotation) this.foregroundAnnotations.get(i);
         annotation.removeChangeListener(this);
      }
      for (int i = 0; i < this.backgroundAnnotations.size(); i++)
      {
         XYAnnotation annotation = (XYAnnotation) this.backgroundAnnotations.get(i);
         annotation.removeChangeListener(this);
      }
      this.foregroundAnnotations.clear();
      this.backgroundAnnotations.clear();
      fireChangeEvent();
   }
View Full Code Here

Examples of org.jfree.chart.annotations.XYAnnotation

         // should not get here
         throw new RuntimeException("Unknown layer.");
      }
      while (iterator.hasNext())
      {
         XYAnnotation annotation = (XYAnnotation) iterator.next();
         int index = this.plot.getIndexOf(this);
         annotation.draw(g2, this.plot, dataArea, domainAxis, rangeAxis,
                 index, info);
      }

   }
View Full Code Here

Examples of org.jfree.chart.annotations.XYAnnotation

        }

        // process all annotations
        Iterator iter = plot.getAnnotations().iterator();
        while (iter.hasNext()) {
            XYAnnotation a = (XYAnnotation) iter.next();
            applyToXYAnnotation(a);
        }

        if (plot instanceof CombinedDomainXYPlot) {
            CombinedDomainXYPlot cp = (CombinedDomainXYPlot) plot;
View Full Code Here

Examples of org.jfree.chart.annotations.XYAnnotation

     * Removes all annotations and sends a {@link RendererChangeEvent}
     * to all registered listeners.
     */
    public void removeAnnotations() {
        for(int i = 0; i < this.foregroundAnnotations.size(); i++){
            XYAnnotation annotation
                    = (XYAnnotation) this.foregroundAnnotations.get(i);
            annotation.removeChangeListener(this);
        }
         for(int i = 0; i < this.backgroundAnnotations.size(); i++){
            XYAnnotation annotation
                    = (XYAnnotation) this.backgroundAnnotations.get(i);
            annotation.removeChangeListener(this);
        }
        this.foregroundAnnotations.clear();
        this.backgroundAnnotations.clear();
        fireChangeEvent();
    }
View Full Code Here

Examples of org.jfree.chart.annotations.XYAnnotation

        else {
            // should not get here
            throw new RuntimeException("Unknown layer.");
        }
        while (iterator.hasNext()) {
            XYAnnotation annotation = (XYAnnotation) iterator.next();
            int index = this.plot.getIndexOf(this);
            annotation.draw(g2, this.plot, dataArea, domainAxis, rangeAxis,
                    index, info);
        }

    }
View Full Code Here

Examples of org.jfree.chart.annotations.XYAnnotation

     * Removes all annotations and sends a {@link RendererChangeEvent}
     * to all registered listeners.
     */
    public void removeAnnotations() {
        for(int i = 0; i < this.foregroundAnnotations.size(); i++){
            XYAnnotation annotation
                    = (XYAnnotation) this.foregroundAnnotations.get(i);
            annotation.removeChangeListener(this);
        }
         for(int i = 0; i < this.backgroundAnnotations.size(); i++){
            XYAnnotation annotation
                    = (XYAnnotation) this.backgroundAnnotations.get(i);
            annotation.removeChangeListener(this);
        }
        this.foregroundAnnotations.clear();
        this.backgroundAnnotations.clear();
        fireChangeEvent();
    }
View Full Code Here

Examples of org.jfree.chart.annotations.XYAnnotation

        else {
            // should not get here
            throw new RuntimeException("Unknown layer.");
        }
        while (iterator.hasNext()) {
            XYAnnotation annotation = (XYAnnotation) iterator.next();
            int index = this.plot.getIndexOf(this);
            annotation.draw(g2, this.plot, dataArea, domainAxis, rangeAxis,
                    index, info);
        }

    }
View Full Code Here

Examples of org.jfree.chart.annotations.XYAnnotation

     *
     * @see #addAnnotation(XYAnnotation)
     */
    public void clearAnnotations() {
        for(int i = 0; i < this.annotations.size(); i++){
            XYAnnotation annotation = (XYAnnotation) this.annotations.get(i);
            annotation.removeChangeListener(this);
        }
        this.annotations.clear();
        fireChangeEvent();
    }
View Full Code Here

Examples of org.jfree.chart.annotations.XYAnnotation

                                Rectangle2D dataArea,
                                PlotRenderingInfo info) {

        Iterator iterator = this.annotations.iterator();
        while (iterator.hasNext()) {
            XYAnnotation annotation = (XYAnnotation) iterator.next();
            ValueAxis xAxis = getDomainAxis();
            ValueAxis yAxis = getRangeAxis();
            annotation.draw(g2, this, dataArea, xAxis, yAxis, 0, info);
        }

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