Package org.jfree.util

Examples of org.jfree.util.PublicCloneable.clone()


     */
    public Object clone() throws CloneNotSupportedException {
        XYBarDataset clone = (XYBarDataset) super.clone();
        if (this.underlying instanceof PublicCloneable) {
            PublicCloneable pc = (PublicCloneable) this.underlying;
            clone.underlying = (XYDataset) pc.clone();
        }
        return clone;
    }

}
View Full Code Here


      if (this.itemLabelGenerator != null
              && this.itemLabelGenerator instanceof PublicCloneable)
      {
         PublicCloneable pc = (PublicCloneable) this.itemLabelGenerator;
         clone.itemLabelGenerator = (XYItemLabelGenerator) pc.clone();
      }
      clone.itemLabelGeneratorList = (ObjectList) this.itemLabelGeneratorList.clone();
      if (this.baseItemLabelGenerator != null
              && this.baseItemLabelGenerator instanceof PublicCloneable)
      {
View Full Code Here

      clone.itemLabelGeneratorList = (ObjectList) this.itemLabelGeneratorList.clone();
      if (this.baseItemLabelGenerator != null
              && this.baseItemLabelGenerator instanceof PublicCloneable)
      {
         PublicCloneable pc = (PublicCloneable) this.baseItemLabelGenerator;
         clone.baseItemLabelGenerator = (XYItemLabelGenerator) pc.clone();
      }

      if (this.toolTipGenerator != null
              && this.toolTipGenerator instanceof PublicCloneable)
      {
View Full Code Here

      if (this.toolTipGenerator != null
              && this.toolTipGenerator instanceof PublicCloneable)
      {
         PublicCloneable pc = (PublicCloneable) this.toolTipGenerator;
         clone.toolTipGenerator = (XYToolTipGenerator) pc.clone();
      }
      clone.toolTipGeneratorList = (ObjectList) this.toolTipGeneratorList.clone();
      if (this.baseToolTipGenerator != null
              && this.baseToolTipGenerator instanceof PublicCloneable)
      {
View Full Code Here

      clone.toolTipGeneratorList = (ObjectList) this.toolTipGeneratorList.clone();
      if (this.baseToolTipGenerator != null
              && this.baseToolTipGenerator instanceof PublicCloneable)
      {
         PublicCloneable pc = (PublicCloneable) this.baseToolTipGenerator;
         clone.baseToolTipGenerator = (XYToolTipGenerator) pc.clone();
      }

      if (this.legendItemLabelGenerator instanceof PublicCloneable)
      {
         clone.legendItemLabelGenerator = (XYSeriesLabelGenerator) ObjectUtilities.clone(this.legendItemLabelGenerator);
View Full Code Here

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

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

        }

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

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

        }

        if (this.itemURLGenerator != null) {
            if (this.itemURLGenerator instanceof PublicCloneable) {
                PublicCloneable pc = (PublicCloneable) this.itemURLGenerator;
                clone.itemURLGenerator = (CategoryURLGenerator) pc.clone();
            }
            else {
                throw new CloneNotSupportedException(
                        "Item URL generator not cloneable.");
            }
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.