Class RectangleShapeLayer
- java.lang.Object
-
- com.microej.layout.model.layers.Layer
-
- com.microej.layout.model.layers.ShapeLayer
-
- com.microej.layout.model.layers.shapes.RectangleShapeLayer
-
public class RectangleShapeLayer extends ShapeLayer
Represents a shape layer of shape typeShapeTypes.RECTANGLE.
-
-
Constructor Summary
Constructors Constructor Description RectangleShapeLayer(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, com.microej.script.ast.expressions.Expression width, com.microej.script.ast.expressions.Expression height)Creates a rectangle shape layer.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description com.microej.script.ast.expressions.ExpressiongetHeight()Returns the height of this layer.intgetShapeType()Returns the shape type of this layer.com.microej.script.ast.expressions.ExpressiongetWidth()Returns the width of this layer.-
Methods inherited from class com.microej.layout.model.layers.ShapeLayer
getColor, getShapeOpt, getStrokeSize, getType
-
Methods inherited from class com.microej.layout.model.layers.Layer
getExtraField, getOpacity, getR, getX, getY, isThemed
-
-
-
-
Constructor Detail
-
RectangleShapeLayer
public RectangleShapeLayer(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, com.microej.script.ast.expressions.Expression width, com.microej.script.ast.expressions.Expression height)Creates a rectangle 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 (seeShapeOptions).width- the width of the layer.height- the height of the layer.
-
-
Method Detail
-
getShapeType
public int getShapeType()
Description copied from class:ShapeLayerReturns the shape type of this layer.- Specified by:
getShapeTypein classShapeLayer- Returns:
- the shape type of this layer (see
ShapeTypes).
-
getWidth
public com.microej.script.ast.expressions.Expression getWidth()
Returns the width of this layer.- Returns:
- the width of this layer.
-
getHeight
public com.microej.script.ast.expressions.Expression getHeight()
Returns the height of this layer.- Returns:
- the height of this layer.
-
-