Examples of PublicCloneable


Examples of com.positive.charts.data.util.PublicCloneable

  public Object clone() throws CloneNotSupportedException {
    final AbstractBlock clone = (AbstractBlock) super.clone();
    clone.bounds = new Rectangle(this.bounds.x, this.bounds.y,
        this.bounds.width, this.bounds.height);
    if (this.frame instanceof PublicCloneable) {
      final PublicCloneable pc = (PublicCloneable) this.frame;
      clone.frame = (BlockFrame) pc.clone();
    }
    return clone;
  }
View Full Code Here

Examples of com.positive.charts.data.util.PublicCloneable

    final AbstractCategoryItemRenderer clone = (AbstractCategoryItemRenderer) super
        .clone();

    if (this.itemLabelGenerator != null) {
      if (this.itemLabelGenerator instanceof PublicCloneable) {
        final PublicCloneable pc = (PublicCloneable) this.itemLabelGenerator;
        clone.itemLabelGenerator = (CategoryItemLabelGenerator) pc
            .clone();
      } else {
        throw new CloneNotSupportedException(
            "ItemLabelGenerator not cloneable.");
      }
    }

    if (this.itemLabelGeneratorList != null) {
      clone.itemLabelGeneratorList = (ObjectList) this.itemLabelGeneratorList
          .clone();
    }

    if (this.baseItemLabelGenerator != null) {
      if (this.baseItemLabelGenerator instanceof PublicCloneable) {
        final PublicCloneable pc = (PublicCloneable) this.baseItemLabelGenerator;
        clone.baseItemLabelGenerator = (CategoryItemLabelGenerator) pc
            .clone();
      } else {
        throw new CloneNotSupportedException(
            "ItemLabelGenerator not cloneable.");
      }
    }

    if (this.toolTipGenerator != null) {
      if (this.toolTipGenerator instanceof PublicCloneable) {
        final PublicCloneable pc = (PublicCloneable) this.toolTipGenerator;
        clone.toolTipGenerator = (CategoryToolTipGenerator) pc.clone();
      } else {
        throw new CloneNotSupportedException(
            "Tool tip generator not cloneable.");
      }
    }

    if (this.toolTipGeneratorList != null) {
      clone.toolTipGeneratorList = (ObjectList) this.toolTipGeneratorList
          .clone();
    }

    if (this.baseToolTipGenerator != null) {
      if (this.baseToolTipGenerator instanceof PublicCloneable) {
        final PublicCloneable pc = (PublicCloneable) this.baseToolTipGenerator;
        clone.baseToolTipGenerator = (CategoryToolTipGenerator) pc
            .clone();
      } else {
        throw new CloneNotSupportedException(
            "Base tool tip generator not cloneable.");
      }
    }

    if (this.itemURLGenerator != null) {
      if (this.itemURLGenerator instanceof PublicCloneable) {
        final PublicCloneable pc = (PublicCloneable) this.itemURLGenerator;
        clone.itemURLGenerator = (CategoryURLGenerator) pc.clone();
      } else {
        throw new CloneNotSupportedException(
            "Item URL generator not cloneable.");
      }
    }

    if (this.itemURLGeneratorList != null) {
      clone.itemURLGeneratorList = (ObjectList) this.itemURLGeneratorList
          .clone();
    }

    if (this.baseItemURLGenerator != null) {
      if (this.baseItemURLGenerator instanceof PublicCloneable) {
        final PublicCloneable pc = (PublicCloneable) this.baseItemURLGenerator;
        clone.baseItemURLGenerator = (CategoryURLGenerator) pc.clone();
      } else {
        throw new CloneNotSupportedException(
            "Base item URL generator not cloneable.");
      }
    }
View Full Code Here

Examples of org.jfree.chart.util.PublicCloneable

        ChartRenderingInfo clone = (ChartRenderingInfo) super.clone();
        if (this.chartArea != null) {
            clone.chartArea = (Rectangle2D) this.chartArea.clone();
        }
        if (this.entities instanceof PublicCloneable) {
            PublicCloneable pc = (PublicCloneable) this.entities;
            clone.entities = (EntityCollection) pc.clone();
        }
        return clone;
    }
View Full Code Here

Examples of org.jfree.util.PublicCloneable

   public Object clone() throws CloneNotSupportedException
   {
      LegendItem clone = (LegendItem) super.clone();
      if (this.seriesKey instanceof PublicCloneable)
      {
         PublicCloneable pc = (PublicCloneable) this.seriesKey;
         clone.seriesKey = (Comparable) pc.clone();
      }
      // FIXME: Clone the attributed string if it is not null
      clone.shape = ShapeUtilities.clone(this.shape);
      if (this.fillPaintTransformer instanceof PublicCloneable)
      {
         PublicCloneable pc = (PublicCloneable) this.fillPaintTransformer;
         clone.fillPaintTransformer = (GradientPaintTransformer) pc.clone();

      }
      clone.line = ShapeUtilities.clone(this.line);
      return clone;
   }
View Full Code Here

Examples of org.jfree.util.PublicCloneable

     */
    public Object clone() throws CloneNotSupportedException {
        AbstractBlock clone = (AbstractBlock) super.clone();
        clone.bounds = (Rectangle2D) ShapeUtilities.clone(this.bounds);
        if (this.frame instanceof PublicCloneable) {
            PublicCloneable pc = (PublicCloneable) this.frame;
            clone.frame = (BlockFrame) pc.clone();
        }
        return clone;
    }
View Full Code Here

Examples of org.jfree.util.PublicCloneable

        while (iterator.hasNext()) {
            Object key = iterator.next();
            Object entry = this.seriesLabelLists.get(key);
            Object toAdd = entry;
            if (entry instanceof PublicCloneable) {
                PublicCloneable pc = (PublicCloneable) entry;
                toAdd = pc.clone();
            }
            clone.seriesLabelLists.put(key, toAdd);
        }
        return clone;
    }
View Full Code Here

Examples of org.jfree.util.PublicCloneable

     * @return A clone of the drawing supplier.
     */
    public DrawingSupplier getDrawingSupplier() {
        DrawingSupplier result = null;
        if (this.drawingSupplier instanceof PublicCloneable) {
            PublicCloneable pc = (PublicCloneable) this.drawingSupplier;
              try {
                result = (DrawingSupplier) pc.clone();
            }
            catch (CloneNotSupportedException e) {
                e.printStackTrace();
            }
        }
View Full Code Here

Examples of org.jfree.util.PublicCloneable

        ChartRenderingInfo clone = (ChartRenderingInfo) super.clone();
        if (this.chartArea != null) {
            clone.chartArea = (Rectangle2D) this.chartArea.clone();
        }
        if (this.entities instanceof PublicCloneable) {
            PublicCloneable pc = (PublicCloneable) this.entities;
            clone.entities = (EntityCollection) pc.clone();
        }
        return clone;
    }
View Full Code Here

Examples of org.jfree.util.PublicCloneable

        clone.renderers = (ObjectList) this.renderers.clone();
        for (int i = 0; i < this.renderers.size(); i++) {
            CategoryItemRenderer renderer2 = (CategoryItemRenderer)
                    this.renderers.get(i);
            if (renderer2 instanceof PublicCloneable) {
                PublicCloneable pc = (PublicCloneable) renderer2;
                CategoryItemRenderer rc = (CategoryItemRenderer) pc.clone();
                clone.renderers.set(i, rc);
                rc.setPlot(clone);
                rc.addChangeListener(clone);
            }
        }
View Full Code Here

Examples of org.jfree.util.PublicCloneable

        clone.renderers = (ObjectList) ObjectUtilities.clone(this.renderers);
        for (int i = 0; i < this.renderers.size(); i++) {
            PolarItemRenderer renderer2 = (PolarItemRenderer) this.renderers.get(i);
            if (renderer2 instanceof PublicCloneable) {
                PublicCloneable pc = (PublicCloneable) renderer2;
                PolarItemRenderer rc = (PolarItemRenderer) pc.clone();
                clone.renderers.set(i, rc);
                rc.setPlot(clone);
                rc.addChangeListener(clone);
            }
        }
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.