Package com.microej.layout.model
Class Image
- java.lang.Object
-
- com.microej.layout.model.Image
-
public class Image extends java.lang.ObjectRepresents an image of a layout.
-
-
Constructor Summary
Constructors Constructor Description Image(java.lang.String hash, int format, int monochromeColor, int leftMargin, int topMargin, int rightMargin, int bottomMargin)Creates an image.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intgetBottomMargin()Returns the bottom margin of this image.intgetFormat()Returns the format of this image.java.lang.StringgetHash()Returns the resource ID of this image.intgetLeftMargin()Returns the left margin of this image.intgetMonochromeColor()Returns the color of this image.intgetRightMargin()Returns the right margin of this image.intgetTopMargin()Returns the top margin of this image.
-
-
-
Constructor Detail
-
Image
public Image(java.lang.String hash, int format, int monochromeColor, int leftMargin, int topMargin, int rightMargin, int bottomMargin)Creates an image.- Parameters:
hash- the resource ID of the image.format- the format of the image (seeImageFormats).monochromeColor- the color of the image (only relevant if the format is monochrome).leftMargin- the left margin of the image.topMargin- the top margin of the image.rightMargin- the right margin of the image.bottomMargin- the bottom margin of the image.
-
-
Method Detail
-
getHash
public java.lang.String getHash()
Returns the resource ID of this image.- Returns:
- the resource ID of this image.
-
getFormat
public int getFormat()
Returns the format of this image.- Returns:
- the format of this image (see
ImageFormats).
-
getMonochromeColor
public int getMonochromeColor()
Returns the color of this image.- Returns:
- the color of this image (only relevant if the format is monochrome).
-
getLeftMargin
public int getLeftMargin()
Returns the left margin of this image.- Returns:
- the left margin of this image.
-
getTopMargin
public int getTopMargin()
Returns the top margin of this image.- Returns:
- the top margin of this image.
-
getRightMargin
public int getRightMargin()
Returns the right margin of this image.- Returns:
- the right margin of this image.
-
getBottomMargin
public int getBottomMargin()
Returns the bottom margin of this image.- Returns:
- the bottom margin of this image.
-
-