Class Image


  • public class Image
    extends java.lang.Object
    Represents 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
      int getBottomMargin()
      Returns the bottom margin of this image.
      int getFormat()
      Returns the format of this image.
      java.lang.String getHash()
      Returns the resource ID of this image.
      int getLeftMargin()
      Returns the left margin of this image.
      int getMonochromeColor()
      Returns the color of this image.
      int getRightMargin()
      Returns the right margin of this image.
      int getTopMargin()
      Returns the top margin of this image.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • 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 (see ImageFormats).
        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.