public class ImageInfo extends Object implements Serializable
Modifier and Type | Field and Description |
---|---|
static String |
COLOR_SPACE |
protected String |
colorSpace |
protected int |
depth |
static String |
DEPTH |
protected String |
filePath |
protected String |
format |
static String |
FORMAT |
protected int |
height |
static String |
HEIGHT |
protected int |
width |
static String |
WIDTH |
Constructor and Description |
---|
ImageInfo() |
ImageInfo(String width,
String height,
String format,
String filePath) |
ImageInfo(String width,
String height,
String format,
String depth,
String filePath) |
ImageInfo(String width,
String height,
String format,
String depth,
String colorSpace,
String filePath) |
Modifier and Type | Method and Description |
---|---|
static ImageInfo |
fromMap(Map<String,Serializable> map) |
String |
getColorSpace() |
int |
getDepth() |
File |
getFile() |
String |
getFilePath() |
String |
getFormat() |
int |
getHeight() |
int |
getWidth() |
void |
setColorSpace(String colorSpace) |
void |
setDepth(int depth) |
void |
setFormat(String format) |
void |
setHeight(int height) |
void |
setWidth(int width) |
Map<String,Serializable> |
toMap()
Returns a
Map of attributes for this ImageInfo . |
String |
toString() |
public static final String WIDTH
public static final String HEIGHT
public static final String DEPTH
public static final String FORMAT
public static final String COLOR_SPACE
protected int width
protected int height
protected int depth
protected String colorSpace
public ImageInfo()
public ImageInfo(String width, String height, String format, String depth, String filePath)
public static ImageInfo fromMap(Map<String,Serializable> map)
public int getWidth()
public void setWidth(int width)
public int getHeight()
public void setHeight(int height)
public String getFilePath()
public int getDepth()
public void setDepth(int depth)
public String getColorSpace()
public void setColorSpace(String colorSpace)
public Map<String,Serializable> toMap()
Map
of attributes for this ImageInfo
.
Used when saving this ImageInfo
to a DocumentModel
property.
Copyright © 2018 Nuxeo. All rights reserved.