Examples of clone()


Examples of org.zkoss.openlayers.layer.WMS.clone()

               
        // A clone of the above layer that we will use as overview for map2.
        // We need to clone jpl before the it gets added to a map, so the
        // clone can have its own maxExtent and maxResolution instead of
        // getting these settings initialized from map1.
    Layer jplOverview = (Layer)jpl.clone();
       
        // A more detailled layer of Manhattan for map2
        Layer ny = new WMS(
            "Manhattan",
            "http://demo.opengeo.org/geoserver/wms",
View Full Code Here

Examples of orxanimeditor.data.v1.Frame.clone()

    }
    if(parent instanceof Animation) {
      try {
        Frame[] frames = (Frame[]) support.getTransferable().getTransferData(FrameFlavor);
        if(support.getDropAction() == COPY)
          for(Frame frame:frames) ((Animation) parent).addFrame(frame.clone(),index++);
        else if (support.getDropAction() == MOVE) {
          index--;
          for(Frame frame:frames) index = frame.move(parent,index);                   
        }
        return true;
View Full Code Here

Examples of pdp.scrabble.game.Letter.clone()

  boardCase.setMultUsed(this.multUsed);
  boardCase.setState(this.getState());

  Letter l = this.getLetter();
  if (l != null) {
      boardCase.setLetter(l.clone());
  }

  return boardCase;
    }
}
View Full Code Here

Examples of pdp.scrabble.game.Location.clone()

      while (!model.isFree(currentSquare)) {
    currentNode = dawg.getChild(currentNode, model.getCharAt(currentSquare));
    dir.applyTo(currentSquare);
      }
      for (Character c : Bag.AVAILABLE_LETTERS) {
    computeSquareForLetter(currentSquare.clone(), dir, currentNode, c);
      }
     
  }
    }
   
View Full Code Here

Examples of projectatlast.tracking.Activity.clone()

      boolean isAppended = activity.addSlice(slice);
      if (!isAppended) {
        // The slice could not be added to the activity
        // Clone the activity and make it match
        // the time span of the slice
        activity = (Activity) activity.clone();
        activity.setStart(slice.getDate());
        activity.setDuration(slice.getDuration());
        activities.add(activity);
      }
    }
View Full Code Here

Examples of ptolemy.kernel.util.Attribute.clone()

                    // requests, but more importantly, we need to execute
                    // any change requests that may have been queued
                    // during cloning. The following call does that.
                    newModel.setDeferringChangeRequests(false);
                } else if (attribute != null) {
                    newModel = (NamedObj) attribute.clone(new Workspace());

                    // The cloning process results an object that defers change
                    // requests.  By default, we do not want to defer change
                    // requests, but more importantly, we need to execute
                    // any change requests that may have been queued
View Full Code Here

Examples of soot.Value.clone()

      List<ValueBox> boxes = u.getUseAndDefBoxes();
      for(ValueBox box : boxes){
        Value v = box.getValue();
        if(v instanceof Local == false)
          continue;
        Local local = (Local) v.clone();
        if(m_localMap.containsKey(local.toString()) == false){
          m_localMap.put(local.toString(), local);
          m_outputLocals.add(local);
        }
        local = m_localMap.get(local.toString());
View Full Code Here

Examples of sun.font.FontLineMetrics.clone()

            flm = new FontLineMetrics(0, cm, frc);
            flmref = new SoftReference<FontLineMetrics>(flm);
        }

        return (FontLineMetrics)flm.clone();
    }

    /**
     * Returns a {@link LineMetrics} object created with the specified
     * <code>String</code> and {@link FontRenderContext}.
View Full Code Here

Examples of sun.security.x509.NameConstraintsExtension.clone()

                return newConstraints;
            } else {
                // Make sure we do a clone here, because we're probably
                // going to modify this object later and we don't want to
                // be sharing it with a Certificate object!
                return (NameConstraintsExtension) newConstraints.clone();
            }
        } else {
            try {
                // after merge, prevNC should contain the merged constraints
                prevNC.merge(newConstraints);
View Full Code Here

Examples of testGenerator.testMethodModel.TestPath.clone()

    {
        TestPath currBranch = controller.getCurrMethod().testBranches.get(selectedRow);

        try
        {
            controller.getCurrMethod().testBranches.add((TestPath) currBranch.clone());
            this.fireTableStructureChanged();
        }
        catch (Exception error)
        {
            error.printStackTrace();
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.