Package org.wicketstuff.yui.markup.html.animation.thumbnail

Examples of org.wicketstuff.yui.markup.html.animation.thumbnail.AnimatedThumbnailSettings


//     
//    };
//    add(testLabel);
   
    // thumbnail 2
    AnimatedThumbnailSettings settings = new AnimatedThumbnailSettings("images/neuschwanstein_tn.jpg", "images/neuschwanstein.jpg" , "Neuschwanstein Castle" );
    settings.setOpacity(0.7f);
    settings.setPictureDimension(800, 583);
    settings.setThumbnailDimension(100, 74);
    AnimatedItem a;
    add(a = new AnimatedThumbnail("thumbnail2", settings));
    a.getOnunselectAnimation().addTrigger("test");
  }
View Full Code Here


    add(ellipsePanel = new EllipsePanel("ep1", new ThumbnailProvider())
    {
      @Override
      public Component newEllipseItem(String id, IModel model, int left, int top)
      {
        AnimatedThumbnailSettings settings = (AnimatedThumbnailSettings) model.getObject();
        settings.setThumbnailDimension(getItemWidth(), getItemHeight());
        settings.setPictureDimension(PIC_WIDTH, PIC_HEIGHT);
        settings.setPicturePosition(PIC_LEFT - left, PIC_TOP - top);
       
        AnimatedItem item = new MyAnimatedThumbnail(id, tf, settings);
        items.add(item);
       
        return item;
View Full Code Here

  {
    List<AnimatedThumbnailSettings> listOfThumbnails = new ArrayList<AnimatedThumbnailSettings>();
   
    public ThumbnailProvider()
    {
      listOfThumbnails.add(new AnimatedThumbnailSettings("images/singapore.png",   "images/sgp.jpg",      "Singapore""sg"));
      listOfThumbnails.add(new AnimatedThumbnailSettings("images/malaysia.png",   "images/kl.jpg",     "Malaysia",   "my"));
      listOfThumbnails.add(new AnimatedThumbnailSettings("images/indonesia.png",   "images/jakarta.jpg", "Indonesia""in"));
      listOfThumbnails.add(new AnimatedThumbnailSettings("images/philippines.png","images/makati.jpg""Philippines","ph"));
      listOfThumbnails.add(new AnimatedThumbnailSettings("images/thailand.png",   "images/bangkok.jpg", "Thailand",   "th"));
      listOfThumbnails.add(new AnimatedThumbnailSettings("images/hongkong.png",   "images/hk.jpg",      "Hong Kong""hk"));     
    }
View Full Code Here

 
  public AnimationPage4()
  {
    // a gallery of AnimatedThumbnails
    List<AnimatedThumbnailSettings> listOfThumbnails = new ArrayList<AnimatedThumbnailSettings>();
    listOfThumbnails.add(new AnimatedThumbnailSettings("images/singapore.png",   "images/sgp.jpg",     "Singapore"));
    listOfThumbnails.add(new AnimatedThumbnailSettings("images/malaysia.png",   "images/kl.jpg",     "Malaysia"));
    listOfThumbnails.add(new AnimatedThumbnailSettings("images/indonesia.png",   "images/jakarta.jpg",   "Indonesia"));
    listOfThumbnails.add(new AnimatedThumbnailSettings("images/philippines.png","images/makati.jpg",   "Philippines"));
    listOfThumbnails.add(new AnimatedThumbnailSettings("images/thailand.png",   "images/bangkok.jpg",   "Thailand"));
    listOfThumbnails.add(new AnimatedThumbnailSettings("images/hongkong.png",   "images/hk.jpg",     "Hong Kong"));
   
    AnimatedThumbnailGallery gallery;
    add(gallery = new AnimatedThumbnailGallery("gallery", listOfThumbnails, COLS, ROWS));
    gallery.setThumbnailSize(TN_WIDTH, TN_HEIGHT);
    gallery.setPictureSize(TN_WIDTH * COLS, TN_HEIGHT * ROWS);
 
View Full Code Here

TOP

Related Classes of org.wicketstuff.yui.markup.html.animation.thumbnail.AnimatedThumbnailSettings

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.