Java Code Examples for org.jfree.chart.util.Layer#equals()
The following examples show how to use
org.jfree.chart.util.Layer#equals() .
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: JGenProg2017_0044_s.java From coming with MIT License | 6 votes |
/** * Adds an annotation to the specified layer. * * @param annotation the annotation (<code>null</code> not permitted). * @param layer the layer (<code>null</code> not permitted). * * @since 1.2.0 */ public void addAnnotation(CategoryAnnotation annotation, Layer layer) { if (annotation == null) { throw new IllegalArgumentException("Null 'annotation' argument."); } if (layer.equals(Layer.FOREGROUND)) { this.foregroundAnnotations.add(annotation); notifyListeners(new RendererChangeEvent(this)); } else if (layer.equals(Layer.BACKGROUND)) { this.backgroundAnnotations.add(annotation); notifyListeners(new RendererChangeEvent(this)); } else { // should never get here throw new RuntimeException("Unknown layer."); } }
Example 2
Source File: Chart_1_AbstractCategoryItemRenderer_s.java From coming with MIT License | 6 votes |
/** * Adds an annotation to the specified layer. * * @param annotation the annotation (<code>null</code> not permitted). * @param layer the layer (<code>null</code> not permitted). * * @since 1.2.0 */ public void addAnnotation(CategoryAnnotation annotation, Layer layer) { if (annotation == null) { throw new IllegalArgumentException("Null 'annotation' argument."); } if (layer.equals(Layer.FOREGROUND)) { this.foregroundAnnotations.add(annotation); notifyListeners(new RendererChangeEvent(this)); } else if (layer.equals(Layer.BACKGROUND)) { this.backgroundAnnotations.add(annotation); notifyListeners(new RendererChangeEvent(this)); } else { // should never get here throw new RuntimeException("Unknown layer."); } }
Example 3
Source File: jKali_0031_s.java From coming with MIT License | 6 votes |
/** * Draws all the annotations for the specified layer. * * @param g2 the graphics device. * @param dataArea the data area. * @param domainAxis the domain axis. * @param rangeAxis the range axis. * @param layer the layer. * @param info the plot rendering info. * * @since 1.2.0 */ public void drawAnnotations(Graphics2D g2, Rectangle2D dataArea, CategoryAxis domainAxis, ValueAxis rangeAxis, Layer layer, PlotRenderingInfo info) { Iterator iterator = null; if (layer.equals(Layer.FOREGROUND)) { iterator = this.foregroundAnnotations.iterator(); } else if (layer.equals(Layer.BACKGROUND)) { iterator = this.backgroundAnnotations.iterator(); } else { // should not get here throw new RuntimeException("Unknown layer."); } while (iterator.hasNext()) { CategoryAnnotation annotation = (CategoryAnnotation) iterator.next(); annotation.draw(g2, this.plot, dataArea, domainAxis, rangeAxis, 0, info); } }
Example 4
Source File: jKali_0019_t.java From coming with MIT License | 6 votes |
/** * Adds an annotation to the specified layer. * * @param annotation the annotation (<code>null</code> not permitted). * @param layer the layer (<code>null</code> not permitted). * * @since 1.2.0 */ public void addAnnotation(CategoryAnnotation annotation, Layer layer) { if (annotation == null) { throw new IllegalArgumentException("Null 'annotation' argument."); } if (layer.equals(Layer.FOREGROUND)) { this.foregroundAnnotations.add(annotation); notifyListeners(new RendererChangeEvent(this)); } else if (layer.equals(Layer.BACKGROUND)) { this.backgroundAnnotations.add(annotation); notifyListeners(new RendererChangeEvent(this)); } else { // should never get here throw new RuntimeException("Unknown layer."); } }
Example 5
Source File: Cardumen_00139_s.java From coming with MIT License | 6 votes |
/** * Adds an annotation to the specified layer. * * @param annotation the annotation (<code>null</code> not permitted). * @param layer the layer (<code>null</code> not permitted). * * @since 1.2.0 */ public void addAnnotation(CategoryAnnotation annotation, Layer layer) { if (annotation == null) { throw new IllegalArgumentException("Null 'annotation' argument."); } if (layer.equals(Layer.FOREGROUND)) { this.foregroundAnnotations.add(annotation); notifyListeners(new RendererChangeEvent(this)); } else if (layer.equals(Layer.BACKGROUND)) { this.backgroundAnnotations.add(annotation); notifyListeners(new RendererChangeEvent(this)); } else { // should never get here throw new RuntimeException("Unknown layer."); } }
Example 6
Source File: jKali_000_t.java From coming with MIT License | 6 votes |
/** * Adds an annotation to the specified layer. * * @param annotation the annotation (<code>null</code> not permitted). * @param layer the layer (<code>null</code> not permitted). * * @since 1.2.0 */ public void addAnnotation(CategoryAnnotation annotation, Layer layer) { if (annotation == null) { throw new IllegalArgumentException("Null 'annotation' argument."); } if (layer.equals(Layer.FOREGROUND)) { this.foregroundAnnotations.add(annotation); notifyListeners(new RendererChangeEvent(this)); } else if (layer.equals(Layer.BACKGROUND)) { this.backgroundAnnotations.add(annotation); notifyListeners(new RendererChangeEvent(this)); } else { // should never get here throw new RuntimeException("Unknown layer."); } }
Example 7
Source File: JGenProg2017_0078_t.java From coming with MIT License | 6 votes |
/** * Draws all the annotations for the specified layer. * * @param g2 the graphics device. * @param dataArea the data area. * @param domainAxis the domain axis. * @param rangeAxis the range axis. * @param layer the layer. * @param info the plot rendering info. * * @since 1.2.0 */ public void drawAnnotations(Graphics2D g2, Rectangle2D dataArea, CategoryAxis domainAxis, ValueAxis rangeAxis, Layer layer, PlotRenderingInfo info) { Iterator iterator = null; if (layer.equals(Layer.FOREGROUND)) { iterator = this.foregroundAnnotations.iterator(); } else if (layer.equals(Layer.BACKGROUND)) { iterator = this.backgroundAnnotations.iterator(); } else { // should not get here throw new RuntimeException("Unknown layer."); } while (iterator.hasNext()) { CategoryAnnotation annotation = (CategoryAnnotation) iterator.next(); annotation.draw(g2, this.plot, dataArea, domainAxis, rangeAxis, 0, info); } }
Example 8
Source File: Cardumen_0075_t.java From coming with MIT License | 6 votes |
/** * Draws all the annotations for the specified layer. * * @param g2 the graphics device. * @param dataArea the data area. * @param domainAxis the domain axis. * @param rangeAxis the range axis. * @param layer the layer. * @param info the plot rendering info. * * @since 1.2.0 */ public void drawAnnotations(Graphics2D g2, Rectangle2D dataArea, CategoryAxis domainAxis, ValueAxis rangeAxis, Layer layer, PlotRenderingInfo info) { Iterator iterator = null; if (layer.equals(Layer.FOREGROUND)) { iterator = this.foregroundAnnotations.iterator(); } else if (layer.equals(Layer.BACKGROUND)) { iterator = this.backgroundAnnotations.iterator(); } else { // should not get here throw new RuntimeException("Unknown layer."); } while (iterator.hasNext()) { CategoryAnnotation annotation = (CategoryAnnotation) iterator.next(); annotation.draw(g2, this.plot, dataArea, domainAxis, rangeAxis, 0, info); } }
Example 9
Source File: JGenProg2017_00102_s.java From coming with MIT License | 6 votes |
/** * Adds an annotation to the specified layer. * * @param annotation the annotation (<code>null</code> not permitted). * @param layer the layer (<code>null</code> not permitted). * * @since 1.2.0 */ public void addAnnotation(CategoryAnnotation annotation, Layer layer) { if (annotation == null) { throw new IllegalArgumentException("Null 'annotation' argument."); } if (layer.equals(Layer.FOREGROUND)) { this.foregroundAnnotations.add(annotation); notifyListeners(new RendererChangeEvent(this)); } else if (layer.equals(Layer.BACKGROUND)) { this.backgroundAnnotations.add(annotation); notifyListeners(new RendererChangeEvent(this)); } else { // should never get here throw new RuntimeException("Unknown layer."); } }
Example 10
Source File: JGenProg2017_000_s.java From coming with MIT License | 6 votes |
/** * Adds an annotation to the specified layer. * * @param annotation the annotation (<code>null</code> not permitted). * @param layer the layer (<code>null</code> not permitted). * * @since 1.2.0 */ public void addAnnotation(CategoryAnnotation annotation, Layer layer) { if (annotation == null) { throw new IllegalArgumentException("Null 'annotation' argument."); } if (layer.equals(Layer.FOREGROUND)) { this.foregroundAnnotations.add(annotation); notifyListeners(new RendererChangeEvent(this)); } else if (layer.equals(Layer.BACKGROUND)) { this.backgroundAnnotations.add(annotation); notifyListeners(new RendererChangeEvent(this)); } else { // should never get here throw new RuntimeException("Unknown layer."); } }
Example 11
Source File: 1_AbstractCategoryItemRenderer.java From SimFix with GNU General Public License v2.0 | 6 votes |
/** * Adds an annotation to the specified layer. * * @param annotation the annotation (<code>null</code> not permitted). * @param layer the layer (<code>null</code> not permitted). * * @since 1.2.0 */ public void addAnnotation(CategoryAnnotation annotation, Layer layer) { if (annotation == null) { throw new IllegalArgumentException("Null 'annotation' argument."); } if (layer.equals(Layer.FOREGROUND)) { this.foregroundAnnotations.add(annotation); notifyListeners(new RendererChangeEvent(this)); } else if (layer.equals(Layer.BACKGROUND)) { this.backgroundAnnotations.add(annotation); notifyListeners(new RendererChangeEvent(this)); } else { // should never get here throw new RuntimeException("Unknown layer."); } }
Example 12
Source File: Arja_000_t.java From coming with MIT License | 6 votes |
/** * Draws all the annotations for the specified layer. * * @param g2 the graphics device. * @param dataArea the data area. * @param domainAxis the domain axis. * @param rangeAxis the range axis. * @param layer the layer. * @param info the plot rendering info. * * @since 1.2.0 */ public void drawAnnotations(Graphics2D g2, Rectangle2D dataArea, CategoryAxis domainAxis, ValueAxis rangeAxis, Layer layer, PlotRenderingInfo info) { Iterator iterator = null; if (layer.equals(Layer.FOREGROUND)) { iterator = this.foregroundAnnotations.iterator(); } else if (layer.equals(Layer.BACKGROUND)) { iterator = this.backgroundAnnotations.iterator(); } else { // should not get here throw new RuntimeException("Unknown layer."); } while (iterator.hasNext()) { CategoryAnnotation annotation = (CategoryAnnotation) iterator.next(); annotation.draw(g2, this.plot, dataArea, domainAxis, rangeAxis, 0, info); } }
Example 13
Source File: Arja_0089_s.java From coming with MIT License | 6 votes |
/** * Adds an annotation to the specified layer. * * @param annotation the annotation (<code>null</code> not permitted). * @param layer the layer (<code>null</code> not permitted). * * @since 1.2.0 */ public void addAnnotation(CategoryAnnotation annotation, Layer layer) { if (annotation == null) { throw new IllegalArgumentException("Null 'annotation' argument."); } if (layer.equals(Layer.FOREGROUND)) { this.foregroundAnnotations.add(annotation); notifyListeners(new RendererChangeEvent(this)); } else if (layer.equals(Layer.BACKGROUND)) { this.backgroundAnnotations.add(annotation); notifyListeners(new RendererChangeEvent(this)); } else { // should never get here throw new RuntimeException("Unknown layer."); } }
Example 14
Source File: Elixir_000_t.java From coming with MIT License | 6 votes |
/** * Draws all the annotations for the specified layer. * * @param g2 the graphics device. * @param dataArea the data area. * @param domainAxis the domain axis. * @param rangeAxis the range axis. * @param layer the layer. * @param info the plot rendering info. * * @since 1.2.0 */ public void drawAnnotations(Graphics2D g2, Rectangle2D dataArea, CategoryAxis domainAxis, ValueAxis rangeAxis, Layer layer, PlotRenderingInfo info) { Iterator iterator = null; if (layer.equals(Layer.FOREGROUND)) { iterator = this.foregroundAnnotations.iterator(); } else if (layer.equals(Layer.BACKGROUND)) { iterator = this.backgroundAnnotations.iterator(); } else { // should not get here throw new RuntimeException("Unknown layer."); } while (iterator.hasNext()) { CategoryAnnotation annotation = (CategoryAnnotation) iterator.next(); annotation.draw(g2, this.plot, dataArea, domainAxis, rangeAxis, 0, info); } }
Example 15
Source File: Arja_000_s.java From coming with MIT License | 6 votes |
/** * Adds an annotation to the specified layer. * * @param annotation the annotation (<code>null</code> not permitted). * @param layer the layer (<code>null</code> not permitted). * * @since 1.2.0 */ public void addAnnotation(CategoryAnnotation annotation, Layer layer) { if (annotation == null) { throw new IllegalArgumentException("Null 'annotation' argument."); } if (layer.equals(Layer.FOREGROUND)) { this.foregroundAnnotations.add(annotation); notifyListeners(new RendererChangeEvent(this)); } else if (layer.equals(Layer.BACKGROUND)) { this.backgroundAnnotations.add(annotation); notifyListeners(new RendererChangeEvent(this)); } else { // should never get here throw new RuntimeException("Unknown layer."); } }
Example 16
Source File: JGenProg2017_0078_s.java From coming with MIT License | 6 votes |
/** * Adds an annotation to the specified layer. * * @param annotation the annotation (<code>null</code> not permitted). * @param layer the layer (<code>null</code> not permitted). * * @since 1.2.0 */ public void addAnnotation(CategoryAnnotation annotation, Layer layer) { if (annotation == null) { throw new IllegalArgumentException("Null 'annotation' argument."); } if (layer.equals(Layer.FOREGROUND)) { this.foregroundAnnotations.add(annotation); notifyListeners(new RendererChangeEvent(this)); } else if (layer.equals(Layer.BACKGROUND)) { this.backgroundAnnotations.add(annotation); notifyListeners(new RendererChangeEvent(this)); } else { // should never get here throw new RuntimeException("Unknown layer."); } }
Example 17
Source File: Cardumen_00191_s.java From coming with MIT License | 6 votes |
/** * Adds an annotation to the specified layer. * * @param annotation the annotation (<code>null</code> not permitted). * @param layer the layer (<code>null</code> not permitted). * * @since 1.2.0 */ public void addAnnotation(CategoryAnnotation annotation, Layer layer) { if (annotation == null) { throw new IllegalArgumentException("Null 'annotation' argument."); } if (layer.equals(Layer.FOREGROUND)) { this.foregroundAnnotations.add(annotation); notifyListeners(new RendererChangeEvent(this)); } else if (layer.equals(Layer.BACKGROUND)) { this.backgroundAnnotations.add(annotation); notifyListeners(new RendererChangeEvent(this)); } else { // should never get here throw new RuntimeException("Unknown layer."); } }
Example 18
Source File: JGenProg2017_00124_s.java From coming with MIT License | 6 votes |
/** * Draws all the annotations for the specified layer. * * @param g2 the graphics device. * @param dataArea the data area. * @param domainAxis the domain axis. * @param rangeAxis the range axis. * @param layer the layer. * @param info the plot rendering info. * * @since 1.2.0 */ public void drawAnnotations(Graphics2D g2, Rectangle2D dataArea, CategoryAxis domainAxis, ValueAxis rangeAxis, Layer layer, PlotRenderingInfo info) { Iterator iterator = null; if (layer.equals(Layer.FOREGROUND)) { iterator = this.foregroundAnnotations.iterator(); } else if (layer.equals(Layer.BACKGROUND)) { iterator = this.backgroundAnnotations.iterator(); } else { // should not get here throw new RuntimeException("Unknown layer."); } while (iterator.hasNext()) { CategoryAnnotation annotation = (CategoryAnnotation) iterator.next(); annotation.draw(g2, this.plot, dataArea, domainAxis, rangeAxis, 0, info); } }
Example 19
Source File: Cardumen_000_s.java From coming with MIT License | 6 votes |
/** * Draws all the annotations for the specified layer. * * @param g2 the graphics device. * @param dataArea the data area. * @param domainAxis the domain axis. * @param rangeAxis the range axis. * @param layer the layer. * @param info the plot rendering info. * * @since 1.2.0 */ public void drawAnnotations(Graphics2D g2, Rectangle2D dataArea, CategoryAxis domainAxis, ValueAxis rangeAxis, Layer layer, PlotRenderingInfo info) { Iterator iterator = null; if (layer.equals(Layer.FOREGROUND)) { iterator = this.foregroundAnnotations.iterator(); } else if (layer.equals(Layer.BACKGROUND)) { iterator = this.backgroundAnnotations.iterator(); } else { // should not get here throw new RuntimeException("Unknown layer."); } while (iterator.hasNext()) { CategoryAnnotation annotation = (CategoryAnnotation) iterator.next(); annotation.draw(g2, this.plot, dataArea, domainAxis, rangeAxis, 0, info); } }
Example 20
Source File: Cardumen_00191_t.java From coming with MIT License | 6 votes |
/** * Draws all the annotations for the specified layer. * * @param g2 the graphics device. * @param dataArea the data area. * @param domainAxis the domain axis. * @param rangeAxis the range axis. * @param layer the layer. * @param info the plot rendering info. * * @since 1.2.0 */ public void drawAnnotations(Graphics2D g2, Rectangle2D dataArea, CategoryAxis domainAxis, ValueAxis rangeAxis, Layer layer, PlotRenderingInfo info) { Iterator iterator = null; if (layer.equals(Layer.FOREGROUND)) { iterator = this.foregroundAnnotations.iterator(); } else if (layer.equals(Layer.BACKGROUND)) { iterator = this.backgroundAnnotations.iterator(); } else { // should not get here throw new RuntimeException("Unknown layer."); } while (iterator.hasNext()) { CategoryAnnotation annotation = (CategoryAnnotation) iterator.next(); annotation.draw(g2, this.plot, dataArea, domainAxis, rangeAxis, 0, info); } }