Package | impression.players |
Class | public class CanvasElementShapeTypes |
Inheritance | CanvasElementShapeTypes ![]() |
ShapeType
persisted property of a CanvasElement.
Property | Defined By | ||
---|---|---|---|
CIRCLE : String = circle [static]
The shape should be rendered as a circle (or ellipse). | CanvasElementShapeTypes | ||
LINE : String = line [static]
The shape should be rendered as a line. | CanvasElementShapeTypes | ||
NONE : String [static]
The element does not specify how it should be rendered. | CanvasElementShapeTypes | ||
RECTANGLE : String = rectangle [static]
The shape should be rendered as a rectangle. | CanvasElementShapeTypes |
Method | Defined By | ||
---|---|---|---|
getShapeType(shape:String):String [static]
Returns the CanvasElementShapeTypes constant value associated with a string. | CanvasElementShapeTypes |
CIRCLE | property |
public static var CIRCLE:String = circle
The shape should be rendered as a circle (or ellipse).
LINE | property |
public static var LINE:String = line
The shape should be rendered as a line.
NONE | property |
public static var NONE:String
The element does not specify how it should be rendered.
RECTANGLE | property |
public static var RECTANGLE:String = rectangle
The shape should be rendered as a rectangle.
getShapeType | () | method |
public static function getShapeType(shape:String):String
Returns the CanvasElementShapeTypes constant value associated with a string.
Parameters
shape:String — The value to get the constant value of. If the value is a case-insensitive version of one of the
CanvasElementShapeTypes constant values, the constant value is returned; otherwise, shape is returned.
|
String — A CanvasElementShapeTypes constant value, or shape .
|