Package com.microej.layout.model.layers
Class Layer
- java.lang.Object
-
- com.microej.layout.model.layers.Layer
-
- Direct Known Subclasses:
ImageLayer,ShapeLayer,TextLayer
public abstract class Layer extends java.lang.ObjectRepresents a layer of a layout.
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedLayer(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.ObjectgetExtraField()Returns the extra field of this layer.com.microej.script.ast.expressions.ExpressiongetOpacity()Returns the opacity of this layer.com.microej.script.ast.expressions.ExpressiongetR()Returns the rotation angle of this layer.abstract intgetType()Returns the type of this layer.com.microej.script.ast.expressions.ExpressiongetX()Returns the x coordinate of this layer.com.microej.script.ast.expressions.ExpressiongetY()Returns the y coordinate of this layer.booleanisThemed()Returns whether this layer is themed.
-
-
-
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:
trueif this layer is themed,falseif it is not themed.
-
getExtraField
public java.lang.Object getExtraField()
Returns the extra field of this layer.- Returns:
- the extra field of this layer.
-
-