Class ArcShapeLayer
- java.lang.Object
-
- com.microej.layout.model.layers.Layer
-
- com.microej.layout.model.layers.ShapeLayer
-
- com.microej.layout.model.layers.shapes.ArcShapeLayer
-
public class ArcShapeLayer extends ShapeLayer
Represents a shape layer of shape typeShapeTypes.ARC.
-
-
Constructor Summary
Constructors Constructor Description ArcShapeLayer(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 radius, com.microej.script.ast.expressions.Expression innerRadius, com.microej.script.ast.expressions.Expression chartFill, boolean reverseChartFill)Creates an arc shape layer.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description com.microej.script.ast.expressions.ExpressiongetChartFill()Returns the fill ratio of this layer.com.microej.script.ast.expressions.ExpressiongetInnerRadius()Returns the inner radius of this layer.com.microej.script.ast.expressions.ExpressiongetRadius()Returns the radius of this layer.booleangetReverseChartFill()Returns whether the fill of this layer is reversed.intgetShapeType()Returns the shape type 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
-
ArcShapeLayer
public ArcShapeLayer(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 radius, com.microej.script.ast.expressions.Expression innerRadius, com.microej.script.ast.expressions.Expression chartFill, boolean reverseChartFill)Creates an arc 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).radius- the radius of the layer.innerRadius- the inner radius of the layer.chartFill- the fill ratio of the layer.reverseChartFill- whether the fill of the layer is reversed.
-
-
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).
-
getRadius
public com.microej.script.ast.expressions.Expression getRadius()
Returns the radius of this layer.- Returns:
- the radius of this layer.
-
getInnerRadius
public com.microej.script.ast.expressions.Expression getInnerRadius()
Returns the inner radius of this layer.- Returns:
- the inner radius of this layer.
-
getChartFill
public com.microej.script.ast.expressions.Expression getChartFill()
Returns the fill ratio of this layer.- Returns:
- the fill ratio of this layer.
-
getReverseChartFill
public boolean getReverseChartFill()
Returns whether the fill of this layer is reversed.- Returns:
trueif the fill of this layer is reversed,falseif it is regular.
-
-