Package com.microej.layout.model
Class Layout
- java.lang.Object
-
- com.microej.layout.model.Layout
-
public class Layout extends java.lang.ObjectRepresents a layout.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intgetDefaultThemeColor()Returns the default theme color of this layout.ImagegetImage(int index)Returns the image at the given index of this layout.LayergetLayer(int index)Returns the layer at the given index of this layout.intgetNumImages()Returns the number of images of this layout.intgetNumLayers()Returns the number of layers of this 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.
-
-