Examples of clone()


Examples of com.jme3.material.Material.clone()

            Material m = (Material)mat.getBaseAsset();
            if(m != null){
              //prepare rim light shader for selection highlighting
              m.setColor("RimLighting", ColorRGBA.BlackNoAlpha);//new ColorRGBA(1f, 0f, 0f, 12f));//this was for a test had to set the value to 12 for a really good noticable look
              //this must be a clone for hardware skinning
              ((Geometry)n).setMaterial(m.clone());
            } else
              log.severe("Material "+mat.getLocation()+" not found is missing for "+a.getLocation());
          }else
            log.severe("Material is missing for "+a.getLocation());
         
View Full Code Here

Examples of com.jme3.math.Vector2f.clone()

                        break
                    }
                }
            }
            if (!found) {
                VertexInfo vertexInfo = new VertexInfo(position.clone(), normal.clone(), texCoord.clone());
                vertexInfo.indices.add(i);
                vertexMap.add(vertexInfo);
            }
        }
       
View Full Code Here

Examples of com.jme3.math.Vector3f.clone()

      Material mat = new Material(assetManager, "Common/MatDefs/Misc/Unshaded.j3md");
        mat.setColor("Color", ColorRGBA.Red);
        walker.setMaterial(mat);
//        269.5173, -284.07605, 87.175156 to 476.54184, -171.21466, 454.62576
        //Entity e = placeObject(new Vector3f(-9969.057f, 15.097652f, 8429.296f), new Vector3f(-9979.581f, 28.097652f, 8420.083f));
        Entity e = placeObject(new Vector3f(-9890.341f, 14.610833f, 8302.891f), p.clone());
        if(e != null){
          e.attachChild(walker);
          rootNode.attachChild(e);
          this.walker = e;
        }
View Full Code Here

Examples of com.jme3.scene.Spatial.clone()

   */
  protected Node createVisuals() {
    if (vis == null) { 
      Spatial s = Singleton.get().getAssetManager().getJmeAssetMan().loadModel("items/bottle/HealthFlask.j3o");
      if(s instanceof Node ){
        vis = (Node) s.clone(false);
        vis.setName(name);
//        vis.setLocalTranslation(0f, 1f, 0f);
      }
    }
   
View Full Code Here

Examples of com.jolbox.bonecp.BoneCPConfig.clone()

    expect(mockConfig.getIdleConnectionTestPeriodInMinutes()).andReturn(100L).anyTimes();
    expect(mockConfig.getUsername()).andReturn(USERNAME).anyTimes();
    expect(mockConfig.getPassword()).andReturn(PASSWORD).anyTimes();
    expect(mockConfig.getJdbcUrl()).andReturn(URL).anyTimes();
    expect(mockConfig.isLazyInit()).andReturn(false).anyTimes();
    expect(mockConfig.clone()).andReturn(mockConfig).anyTimes();
    
    replay(mockConfig);
   
    try{
      testClass.createPool(mockConfig);
View Full Code Here

Examples of com.liferay.portlet.PortletPreferencesImpl.clone()

        companyId, pk, portletPreferences.getPreferences());

      prefsPool.put(pk, prefs);
    }

    return (PortletPreferencesImpl)prefs.clone();
  }

  public PortletPreferences updatePreferences(
      PortletPreferencesPK pk, PortletPreferencesImpl prefs)
    throws PortalException, SystemException {
View Full Code Here

Examples of com.lightcrafts.mediax.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 com.lightcrafts.mediax.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 com.mucommander.bookmark.Bookmark.clone()

        Bookmark selectedBookmark = bookmarks.elementAt(selectedIndex);

        if(currentBookmarkSave==null) {
            // Create a clone of the current bookmark in order to cancel any modifications made to it if the dialog
            // is cancelled.
            try { currentBookmarkSave = (Bookmark)selectedBookmark.clone(); }
            catch(CloneNotSupportedException ex) {}

            this.currentListIndex = selectedIndex;
        }
View Full Code Here

Examples of com.mxgraph.model.mxGeometry.clone()

          boolean horizontal = isCellHorizontal(swimlane);

          if ((horizontal && geo.getHeight() != h)
              || (!horizontal && geo.getWidth() != w))
          {
            geo = (mxGeometry) geo.clone();

            if (horizontal)
            {
              geo.setHeight(h);
            }
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.