Packageimpression.players
Classpublic class CanvasElementShapeTypes
InheritanceCanvasElementShapeTypes Inheritance Object

The CanvasElementShapeTypes class defines known values for the ShapeType persisted property of a CanvasElement.



Public Properties
 PropertyDefined 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
Public Methods
 MethodDefined By
  
getShapeType(shape:String):String
[static] Returns the CanvasElementShapeTypes constant value associated with a string.
CanvasElementShapeTypes
Property Detail
CIRCLEproperty
public static var CIRCLE:String = circle

The shape should be rendered as a circle (or ellipse).

LINEproperty 
public static var LINE:String = line

The shape should be rendered as a line.

NONEproperty 
public static var NONE:String

The element does not specify how it should be rendered.

RECTANGLEproperty 
public static var RECTANGLE:String = rectangle

The shape should be rendered as a rectangle.

Method Detail
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.

Returns
String — A CanvasElementShapeTypes constant value, or shape.