Class Tile


  • public class Tile
    extends Object
    An Image API tile.
    • Constructor Detail

      • Tile

        public Tile​(int aWidth,
                    int aHeight,
                    int... aScaleFactorsArray)
        Creates a new Image API tile.
        Parameters:
        aWidth - A tile width
        aHeight - A tile height
        aScaleFactorsArray - A tile's scale factors
      • Tile

        public Tile()
        Creates a new Image API tile.
    • Method Detail

      • setHeight

        public Tile setHeight​(int aHeight)
        Sets the tile's height.
        Parameters:
        aHeight - A tile height
        Returns:
        This tile
      • getHeight

        public int getHeight()
        Gets the tile's height.
        Returns:
        The tile height
      • setWidth

        public Tile setWidth​(int aWidth)
        Sets the tile's width.
        Parameters:
        aWidth - A tile width
        Returns:
        This tile
      • getWidth

        public int getWidth()
        Gets the tile's width.
        Returns:
        A tile width
      • setScaleFactors

        public Tile setScaleFactors​(int... aScaleFactorsArray)
        Sets the tile's scale factors.
        Parameters:
        aScaleFactorsArray - A tile's scale factors
        Returns:
        This tile
      • getScaleFactors

        public int[] getScaleFactors()
        Gets the tile's scale factors.
        Returns:
        The tile's scale factors