Examples of clone()


Examples of javax.media.format.JPEGFormat.clone()

    // equal and match:
    {
      final JPEGFormat[] f2s = new JPEGFormat[]{
          new JPEGFormat(new Dimension(1, 1), 1000, Format.shortArray, 1.f, 2, 3),
            (JPEGFormat) f1.clone(),
            (JPEGFormat) f1.intersects(f1)
      };
      for (int i = 0; i < f2s.length; ++i)
      {
        JPEGFormat f2 = f2s[i];
View Full Code Here

Examples of javax.media.format.RGBFormat.clone()

   
    // RGBFormat - equal and match:
    {
      final RGBFormat[] f2s = new RGBFormat[]{
            new RGBFormat(new Dimension(1, 1), 2000, Format.byteArray, 2.f, 1, 2, 3, 4, 5, 6, 7, 8),
            (RGBFormat) f1.clone(),
            (RGBFormat) f1.intersects(f1)
      };
      for (int i = 0; i < f2s.length; ++i)
      {
        RGBFormat f2 = f2s[i];
View Full Code Here

Examples of javax.media.format.VideoFormat.clone()

    // equal and match:
    {
      final VideoFormat[] f2s = new VideoFormat[]{
          new VideoFormat(VideoFormat.MPEG, new Dimension(0, 0), 1000, Format.byteArray, 1.f),
            (VideoFormat) f1.clone(),
            (VideoFormat) f1.intersects(f1)
      };
      for (int i = 0; i < f2s.length; ++i)
      {
        VideoFormat f2 = f2s[i];
View Full Code Here

Examples of javax.media.format.YUVFormat.clone()

   
    // YUVFormat - equal and match:
    {
      final YUVFormat[] f2s = new YUVFormat[]{
            new YUVFormat(new java.awt.Dimension(120, 200), 1000, YUVFormat.byteArray, 1.f, YUVFormat.YUV_111, 2, 3, 4, 5, 6),
            (YUVFormat) f1.clone(),
            (YUVFormat) f1.intersects(f1)
      };
      for (int i = 0; i < f2s.length; ++i)
      {
        YUVFormat f2 = f2s[i];
View Full Code Here

Examples of javax.media.jai.ImageLayout.clone()

        // Create or clone the ImageLayout.
        if(layout == null) {
            layout = new ImageLayout(src);
        } else {
            layout = (ImageLayout)layout.clone();
        }

  boolean isDataTypeChange = false;

        // Get prospective destination SampleModel.
View Full Code Here

Examples of javax.media.jai.util.CaselessStringKey.clone()

            for(int i = 0; i < length; i++) {
                key.setName(localNames[i]);

                // Check for duplicates being inserted
                if (!names.contains(key)) {
                    names.add(key.clone());
                }
            }
        }

        // Return an array.
View Full Code Here

Examples of javax.naming.CompositeName.clone()

    // Go upward the naming path in order to find out which name is missing.
    CompositeName parentName = name;
    NamingContext parentNc = null;
    int unresolvedIndex = 0;
    for (int i = 0; i < name.size(); i++) {
      parentName = (CompositeName)parentName.clone();
      parentName.remove(parentName.size() - 1);
      parentNc = getNamingContextFromName(parentName);
      if (parentNc != null) {
        unresolvedIndex = name.size() - 1 - i;
        break;
View Full Code Here

Examples of javax.naming.CompoundName.clone()

  public void testClone() throws InvalidNameException {
    log.setMethod("testClone()");
    CompoundName name, name2;

    name = new CompoundName("a/b", props);
    name2 = (CompoundName) name.clone();
    assertNameEquals(name2, "a", "b");

    name.add("c");
    assertNameEquals(name, "a", "b", "c");
    assertNameEquals(name2, "a", "b");
View Full Code Here

Examples of javax.naming.directory.Attribute.clone()

            {
                String id = ( String ) list.next();

                Attribute attr = rootDSE.get( id );

                retval.put( ( Attribute ) attr.clone() );
            }

            retval.setLocked( true );

            return retval;
View Full Code Here

Examples of javax.servlet.http.Cookie.clone()

      if (existingCookie == null) {
        cookie = new Cookie(name, value);
      }
      else {
        result = existingCookie.getValue();
        cookie = (Cookie)existingCookie.clone();
        cookie.setValue(value);
      }
     
      if (expirationDate != null) {
        cookie.setMaxAge((int)((expirationDate.getTime() -
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.