Examples of clone()


Examples of com.mxgraph.util.mxPoint.clone()

      }

      // Applies offset to the point
      if (offset != null)
      {
        pe = (mxPoint) pe.clone();
        pe.setX(pe.getX() + offset.getX());
        pe.setY(pe.getY() + offset.getY());

        offset = null;
      }
View Full Code Here

Examples of com.mxgraph.util.mxRectangle.clone()

    {
      mxRectangle bounds = state;

      if (center)
      {
        bounds = (mxRectangle) bounds.clone();

        bounds.setX(bounds.getCenterX() - getWidth() / 2);
        bounds.setWidth(getWidth());
        bounds.setY(bounds.getCenterY() - getHeight() / 2);
        bounds.setHeight(getHeight());
View Full Code Here

Examples of com.ngt.jopenmetaverse.shared.protocol.primitives.TextureEntryFace.clone()

      }

      // Need to adjust UV for spheres as they are sort of half-prim
      if (prim.PrimData.getProfileCurve() == ProfileCurve.HalfCircle)
      {
        teFace = (TextureEntryFace)teFace.clone();
        teFace.setRepeatV(teFace.getRepeatV() * 2);
        teFace.setOffsetV(teFace.getOffsetV() 0.5f);
      }

      // Sculpt UV vertically flipped compared to prims. Flip back
View Full Code Here

Examples of com.positive.charts.data.util.PublicCloneable.clone()

    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.projity.graphic.configuration.SpreadSheetFieldArray.clone()

        };
    spreadSheet.setSpreadSheetCategory(spreadsheetCategory); // for columns - must do first
   
    SpreadSheetFieldArray fields=getFields();
    if (((ResourcePool)document).isMaster()){
      fields=(SpreadSheetFieldArray)fields.clone();
      fields.removeField("Field.userRole"); //$NON-NLS-1$
    }
    spreadSheet.setCache(cache,fields,fields.getCellStyle(),fields.getActionList());
    ((SpreadSheetModel)spreadSheet.getModel()).setFieldContext(fieldContext);
    spreadSheet.setReadOnly(readOnly);
View Full Code Here

Examples of com.sissi.context.JID.clone()

  @Override
  public boolean input(JIDContext context, Protocol protocol) {
    JID group = super.build(protocol.getTo());
    // From = MUC JID
    protocol.setFrom(group.clone().resource(super.ourRelation(context.jid(), group).name()));
    JIDs jids = this.mapping.mapping(group);
    return jids.isEmpty() ? this.writeAndReturn(context, protocol) : this.writeAndReturn(protocol, jids);
  }

  private boolean writeAndReturn(Protocol protocol, JIDs jids) {
View Full Code Here

Examples of com.sun.enterprise.config.ConfigBean.clone()

            //lastModified Check
            if(isLastModifiedCheckEnabled()) {
                validateLastModified(parent, configChange);
            }
           
            childBean = (ConfigBean)childBean.clone();
            //System.out.println("++++++++++before add +++++++++++++++");
            //System.out.println("this childBean:");
            //System.out.println(childBean.dumpBeanNode());
            //System.out.println("++++++++++++++++++++++++++++++++");
            //System.out.println(childBean.dumpDomNode());
View Full Code Here

Examples of com.sun.enterprise.config.serverbeans.Config.clone()

        if (! exists(ConfigAPIHelper.getConfigsInDomain(tcc), tcn)) {
            final String msg = localStrings.getString("template.config.not.found", tcn, profileDomainXmlTemplate.getAbsolutePath());
            throw new IllegalArgumentException(msg);
        }
        final Config tc = ConfigAPIHelper.getConfigByName(tcc, tcn); // this has to exist
        return ( (Config)tc.clone() ); //cloning is required
    }

    private static boolean exists(final Config[] configs, final String configNamed) {
        boolean exists = false;
        for (final Config c : configs) {
View Full Code Here

Examples of com.sun.grid.jgdi.configuration.reflect.ClassDescriptor.clone()

        return ret;
    }
   
    public static Object clone(Object obj) {
        ClassDescriptor cd = getDescriptor(obj.getClass());
        return cd.clone(obj);
    }
   
    public static int nextObjectId() {
        synchronized (Util.class) {
            int ret = objectId;
View Full Code Here

Examples of com.sun.jersey.samples.storageservice.Container.clone()

        if (c == null)
            throw new NotFoundException("Container not found");
       
       
        if (search != null) {
            c = c.clone();
            Iterator<Item> i = c.getItem().iterator();
            byte[] searchBytes = search.getBytes();
            while (i.hasNext()) {
                if (!match(searchBytes, container, i.next().getName()))
                    i.remove();
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.