Class Layout


  • public class Layout
    extends java.lang.Object
    Represents a layout.
    • Constructor Summary

      Constructors 
      Constructor Description
      Layout​(Image[] images, Layer[] layers, int defaultThemeColor)
      Creates a layout.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      int getDefaultThemeColor()
      Returns the default theme color of this layout.
      Image getImage​(int index)
      Returns the image at the given index of this layout.
      Layer getLayer​(int index)
      Returns the layer at the given index of this layout.
      int getNumImages()
      Returns the number of images of this layout.
      int getNumLayers()
      Returns the number of layers of this layout.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • Layout

        public Layout​(Image[] images,
                      Layer[] layers,
                      int defaultThemeColor)
        Creates a layout.
        Parameters:
        images - the images of the layout.
        layers - the layers of the layout.
        defaultThemeColor - the default theme color of the layout.
    • Method Detail

      • getNumImages

        public int getNumImages()
        Returns the number of images of this layout.
        Returns:
        the number of images of this layout.
      • getImage

        public Image getImage​(int index)
        Returns the image at the given index of this layout.
        Parameters:
        index - the index of the image.
        Returns:
        the image at the given index.
        Throws:
        java.lang.IndexOutOfBoundsException - if the given index is out of range (index < 0 || index >= getNumImages()).
      • getNumLayers

        public int getNumLayers()
        Returns the number of layers of this layout.
        Returns:
        the number of layers of this layout.
      • getLayer

        public Layer getLayer​(int index)
        Returns the layer at the given index of this layout.
        Parameters:
        index - the index of the layer.
        Returns:
        the layer at the given index.
        Throws:
        java.lang.IndexOutOfBoundsException - if the given index is out of range (index < 0 || index >= getNumLayers()).
      • getDefaultThemeColor

        public int getDefaultThemeColor()
        Returns the default theme color of this layout.
        Returns:
        the default theme color of this layout.