If you think the Android project image-loader listed in this page is inappropriate, such as containing malicious code/tools or violating the copyright, please email info at java2s dot com, thanks.
Java Source Code
/**
* Copyright 2012 Novoda Ltd/*www.java2s.com*/
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/package com.novoda.imageloader.core.model;
import android.view.animation.Animation;
/**
* Model class for information of an image. The model is attached via the tag property of the ImageView.
*
* @author Novoda
*/publicclass ImageTag {
private String url;
private String previewUrl;
privatefinalint loadingResourceId;
privatefinalint notFoundResourceId;
privatefinalint height;
privatefinalint width;
privateint previewHeight;
privateint previewWidth;
privateboolean useOnlyCache;
privateboolean saveThumbnail;
private Animation animation;
private String description;
public ImageTag(String url, int loadingResourceId, int notFoundResourceId, int width, int height) {
this.url = url;
this.loadingResourceId = loadingResourceId;
this.notFoundResourceId = notFoundResourceId;
this.width = width;
this.height = height;
}
public String getUrl() {
return url;
}
publicint getNotFoundResourceId() {
return notFoundResourceId;
}
publicint getLoadingResourceId() {
return loadingResourceId;
}
publicint getHeight() {
return height;
}
publicint getWidth() {
return width;
}
publicboolean isUseOnlyCache() {
return useOnlyCache;
}
publicvoid setUseOnlyCache(boolean useOnlyCache) {
this.useOnlyCache = useOnlyCache;
}
publicboolean isSaveThumbnail() {
return saveThumbnail;
}
publicvoid setSaveThumbnail(boolean saveThumbnail) {
this.saveThumbnail = saveThumbnail;
}
public String getPreviewUrl() {
return previewUrl;
}
publicvoid setPreviewUrl(String previewUrl) {
this.previewUrl = previewUrl;
}
publicint getPreviewWidth() {
return previewWidth;
}
publicvoid setPreviewWidth(int previewWidth) {
this.previewWidth = previewWidth;
}
publicint getPreviewHeight() {
return previewHeight;
}
publicvoid setPreviewHeight(int previewHeight) {
this.previewHeight = previewHeight;
}
public Animation getAnimation() {
return animation;
}
publicvoid setAnimation(Animation animation) {
this.animation = animation;
}
public String getDescription() {
return description;
}
publicvoid setDescription(String description) {
this.description = description;
}
}