Packageimpression.players
Classpublic class CanvasElementDisplayTypes
InheritanceCanvasElementDisplayTypes Inheritance Object

The CanvasElementDisplayTypes class defines known values for the DisplayType persisted property of a CanvasElement.



Public Properties
 PropertyDefined By
  GRAPHIC : String = graphic
[static] The element should be rendered as a graphic.
CanvasElementDisplayTypes
  NONE : String
[static] The element does not specify how it should be rendered.
CanvasElementDisplayTypes
  SHAPE : String = shape
[static] The element should be rendered as a shape.
CanvasElementDisplayTypes
  TEXT : String = text
[static] The element should be rendered as text.
CanvasElementDisplayTypes
Public Methods
 MethodDefined By
  
getDisplayType(display:String):String
[static] Returns the CanvasElementDisplayTypes constant value associated with a string.
CanvasElementDisplayTypes
Property Detail
GRAPHICproperty
public static var GRAPHIC:String = graphic

The element should be rendered as a graphic.

The Graphic persisted property will specify the graphic to render.

NONEproperty 
public static var NONE:String

The element does not specify how it should be rendered.

SHAPEproperty 
public static var SHAPE:String = shape

The element should be rendered as a shape.

The ShapeType persisted property will specify the type of shape.

TEXTproperty 
public static var TEXT:String = text

The element should be rendered as text.

The Text persisted property will specify the text to render.

Method Detail
getDisplayType()method
public static function getDisplayType(display:String):String

Returns the CanvasElementDisplayTypes constant value associated with a string.

Parameters

display:String — The value to get the constant value of. If the value is a case-insensitive version of one of the CanvasElementDisplayTypes constant values, the constant value is returned; otherwise, display is returned.

Returns
String — A CanvasElementDisplayTypes constant value, or display.