Class ShapeLayer

    • Constructor Summary

      Constructors 
      Modifier Constructor Description
      protected ShapeLayer​(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, int color, com.microej.script.ast.expressions.Expression strokeSize, int shapeOpt)
      Creates a shape layer.
    • Constructor Detail

      • ShapeLayer

        protected ShapeLayer​(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,
                             int color,
                             com.microej.script.ast.expressions.Expression strokeSize,
                             int shapeOpt)
        Creates a shape 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.
        color - the color of the layer.
        strokeSize - the stroke size of the layer.
        shapeOpt - the option of the layer (see ShapeOptions).
    • Method Detail

      • getType

        public int getType()
        Description copied from class: Layer
        Returns the type of this layer.
        Specified by:
        getType in class Layer
        Returns:
        the type of this layer (see LayerTypes).
      • getShapeType

        public abstract int getShapeType()
        Returns the shape type of this layer.
        Returns:
        the shape type of this layer (see ShapeTypes).
      • getColor

        public int getColor()
        Returns the color of this layer.
        Returns:
        the color of this layer.
      • getStrokeSize

        public com.microej.script.ast.expressions.Expression getStrokeSize()
        Returns the stroke size of this layer.
        Returns:
        the stroke size of this layer.
      • getShapeOpt

        public int getShapeOpt()
        Returns the option of this layer.
        Returns:
        the option of this layer (see ShapeOptions).