Package org.fluxtream.core.mvc.models

Examples of org.fluxtream.core.mvc.models.DimensionModel


    Collection<JSONObject> sortedThumbnails = getSortedThumbnails();
    List<DimensionModel> dimensions = new ArrayList<DimensionModel>();
    Iterator<JSONObject> eachThumbnail = sortedThumbnails.iterator();
    while (eachThumbnail.hasNext()) {
      JSONObject jsonThumbnail = eachThumbnail.next();
      dimensions.add(new DimensionModel(jsonThumbnail.getInt("width"),
          jsonThumbnail.getInt("height")));
    }
    return dimensions;
  }
View Full Code Here


    @Override
    public List<DimensionModel> getThumbnailSizes() {
        List<DimensionModel> dimensions = new ArrayList<DimensionModel>();
        for (Dimension dimension : thumbnailSizes.values()) {
            dimensions.add(new DimensionModel(dimension.width, dimension.height));
        }
        return dimensions;
    }
View Full Code Here

                channelName = "sms";
                thumbnailUrls = new HashMap<Integer,String>();
                thumbnailSizes = new HashMap<Integer,DimensionModel>();
                for (int i = 0; i < thumbnailSideLengths.length; i++){
                    thumbnailUrls.put(i,photoUrl + "?s=" +  thumbnailSideLengths[i]);
                    thumbnailSizes.put(i,new DimensionModel(thumbnailSideLengths[i],thumbnailSideLengths[i]));
                }

            }
            if (audioFiles.size() > 0)
                audioUrls = audioFiles.toArray(new String[]{});
View Full Code Here

    @Override
    public List<DimensionModel> getThumbnailSizes() {
        List<DimensionModel> sizes = new ArrayList<DimensionModel>();
        for (final Dimension dimension : thumbnailSizes.values()) {
            sizes.add(new DimensionModel(dimension.width, dimension.height)); // create a copy so the caller can't modify this instance
        }
        return sizes;
    }
View Full Code Here

TOP

Related Classes of org.fluxtream.core.mvc.models.DimensionModel

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.