Class Layer

  • Direct Known Subclasses:
    ImageLayer, ShapeLayer, TextLayer

    public abstract class Layer
    extends java.lang.Object
    Represents a layer of a layout.
    • Constructor Summary

      Constructors 
      Modifier Constructor Description
      protected Layer​(com.microej.script.ast.expressions.Expression x, com.microej.script.ast.expressions.Expression y, com.microej.script.ast.expressions.Expression r, com.microej.script.ast.expressions.Expression opacity, boolean isThemed, java.lang.Object extraField)
      Creates a layer.
    • Method Summary

      All Methods Instance Methods Abstract Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.Object getExtraField()
      Returns the extra field of this layer.
      com.microej.script.ast.expressions.Expression getOpacity()
      Returns the opacity of this layer.
      com.microej.script.ast.expressions.Expression getR()
      Returns the rotation angle of this layer.
      abstract int getType()
      Returns the type of this layer.
      com.microej.script.ast.expressions.Expression getX()
      Returns the x coordinate of this layer.
      com.microej.script.ast.expressions.Expression getY()
      Returns the y coordinate of this layer.
      boolean isThemed()
      Returns whether this layer is themed.
      • Methods inherited from class java.lang.Object

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

      • Layer

        protected Layer​(com.microej.script.ast.expressions.Expression x,
                        com.microej.script.ast.expressions.Expression y,
                        com.microej.script.ast.expressions.Expression r,
                        com.microej.script.ast.expressions.Expression opacity,
                        boolean isThemed,
                        java.lang.Object extraField)
        Creates a layer.
        Parameters:
        x - the x coordinate of the layer.
        y - the y coordinate of the layer.
        r - the rotation angle of the layer.
        opacity - the opacity of the layer.
        isThemed - whether the layer is themed.
        extraField - the extra field of the layer.
    • Method Detail

      • getType

        public abstract int getType()
        Returns the type of this layer.
        Returns:
        the type of this layer (see LayerTypes).
      • getX

        public com.microej.script.ast.expressions.Expression getX()
        Returns the x coordinate of this layer.
        Returns:
        the x coordinate of this layer.
      • getY

        public com.microej.script.ast.expressions.Expression getY()
        Returns the y coordinate of this layer.
        Returns:
        the y coordinate of this layer.
      • getR

        public com.microej.script.ast.expressions.Expression getR()
        Returns the rotation angle of this layer.
        Returns:
        the rotation angle of this layer.
      • getOpacity

        public com.microej.script.ast.expressions.Expression getOpacity()
        Returns the opacity of this layer.
        Returns:
        the opacity of this layer.
      • isThemed

        public boolean isThemed()
        Returns whether this layer is themed.
        Returns:
        true if this layer is themed, false if it is not themed.
      • getExtraField

        public java.lang.Object getExtraField()
        Returns the extra field of this layer.
        Returns:
        the extra field of this layer.