Package org.mt4j.components.visibleComponents.widgets

Examples of org.mt4j.components.visibleComponents.widgets.MTImage


//    String fotoUrl = foto.getMediumUrl();
   
    String fotoName = foto.getTitle();
   
    //Create image object
    MTImage photo = new MTImage(pa.loadImage(fotoUrl), pa);
    photo.setName(fotoName);
//    mtFotos[i] = photo;
    mtFotos.add(photo);
  }
View Full Code Here


                      //avoid threading problems
                      registerPreDrawAction(new IPreDrawAction(){
                        public void processAction() {
                          MTImage[] fotos = flickrLoader.getMtFotos();
                          for (int i = 0; i < fotos.length; i++) {
                            MTImage card = fotos[i];
                            card.setUseDirectGL(true);
                            card.setDisplayCloseButton(true);
                            card.setPositionGlobal(new Vector3D(ToolsMath.getRandom(10, MT4jSettings.getInstance().getWindowWidth()-100), ToolsMath.getRandom(10, MT4jSettings.getInstance().getWindowHeight()-50),0 )  );
                            card.scale(0.6f, 0.6f, 0.6f, card.getCenterPointLocal(), TransformSpace.LOCAL);
                            card.addGestureListener(DragProcessor.class, new InertiaDragAction());
                            lassoProcessor.addClusterable(card); //make fotos lasso-able
                            pictureLayer.addChild(card);
                          }
                          progressBar.setVisible(false);
                        }
View Full Code Here

      } catch (InterruptedException e) {
        e.printStackTrace();
      }
//      String fotoUrl = foto.getSmallUrl();
      String fotoUrl = foto.getMediumUrl(); //Get the bigger photo
      image = new MTImage(p.loadImage(fotoUrl), p);

      this.addProgressFinishedListener(new IMTEventListener(){
        public void processMTEvent(MTEvent mtEvent) {
          p.getCurrentScene().registerPreDrawAction(new IPreDrawAction(){
            public boolean isLoop() {
View Full Code Here

TOP

Related Classes of org.mt4j.components.visibleComponents.widgets.MTImage

Copyright © 2018 www.massapicom. 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.