Package com.microej.layout.model.layers
Class ShapeLayer
- java.lang.Object
-
- com.microej.layout.model.layers.Layer
-
- com.microej.layout.model.layers.ShapeLayer
-
- Direct Known Subclasses:
ArcShapeLayer,CircleShapeLayer,RectangleShapeLayer,TriangleShapeLayer
public abstract class ShapeLayer extends Layer
Represents a layer of typeLayerTypes.SHAPE.
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedShapeLayer(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.
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description intgetColor()Returns the color of this layer.intgetShapeOpt()Returns the option of this layer.abstract intgetShapeType()Returns the shape type of this layer.com.microej.script.ast.expressions.ExpressiongetStrokeSize()Returns the stroke size of this layer.intgetType()Returns the type of this layer.-
Methods inherited from class com.microej.layout.model.layers.Layer
getExtraField, getOpacity, getR, getX, getY, isThemed
-
-
-
-
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 (seeShapeOptions).
-
-
Method Detail
-
getType
public int getType()
Description copied from class:LayerReturns the type of this layer.- Specified by:
getTypein classLayer- 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).
-
-