Package | impression.players |
Class | public class CanvasElementDisplayTypes |
Inheritance | CanvasElementDisplayTypes ![]() |
DisplayType
persisted property of a CanvasElement.
Property | Defined 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 |
Method | Defined By | ||
---|---|---|---|
getDisplayType(display:String):String [static]
Returns the CanvasElementDisplayTypes constant value associated with a string. | CanvasElementDisplayTypes |
GRAPHIC | property |
public static var GRAPHIC:String = graphic
The element should be rendered as a graphic.
The Graphic
persisted property will specify the graphic to render.
NONE | property |
public static var NONE:String
The element does not specify how it should be rendered.
SHAPE | property |
public static var SHAPE:String = shape
The element should be rendered as a shape.
The ShapeType
persisted property will specify the type of shape.
TEXT | property |
public static var TEXT:String = text
The element should be rendered as text.
The Text
persisted property will specify the text to render.
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.
|
String — A CanvasElementDisplayTypes constant value, or display .
|