Package | com.adobe.portfolio.components.supportClasses |
Class | public class CanvasItemData |
Inheritance | CanvasItemData ![]() |
See also
Property | Defined By | ||
---|---|---|---|
bottom : Number | CanvasItemData | ||
height : Number
The desired heigth of the item rendering this data. | CanvasItemData | ||
horizontalCenter : Number | CanvasItemData | ||
imageOpacity : Number
The opacity of the image to be used by the item rendering this data. | CanvasItemData | ||
imageURL : String
The url of the image to be used by the item rendering this data. | CanvasItemData | ||
left : Number | CanvasItemData | ||
parent : CanvasList [read-only]
This CanvasList containing the CanvasItem rendering this data. | CanvasItemData | ||
right : Number | CanvasItemData | ||
styledText : XML
The styled text to be used by the item rendering this data. | CanvasItemData | ||
swfOpacity : Number
The opacity of the swf to be used by the item rendering this data. | CanvasItemData | ||
swfURL : String
The url of the swf to be used by the item rendering this data. | CanvasItemData | ||
top : Number | CanvasItemData | ||
type : String [read-only]
The type of this canvas item data. | CanvasItemData | ||
verticalCenter : Number | CanvasItemData | ||
visible : Boolean [read-only]
True if the item rendering this data should be visible. | CanvasItemData | ||
width : Number
The desired width of the item rendering this data. | CanvasItemData | ||
x : Number | CanvasItemData | ||
y : Number | CanvasItemData |
Method | Defined By | ||
---|---|---|---|
CanvasItemData(parent:CanvasList = null)
Default constructor
| CanvasItemData | ||
applyPositionAndSize(visual:IVisualElement):void
A function to copy the layout information this object into a visual element. | CanvasItemData | ||
generateXML():XML
Creates an XML representation of this data. | CanvasItemData | ||
loadFromXML(valueXML:XML):Boolean
A function to populate this data based on an XML representation. | CanvasItemData | ||
setValuesFromData(itemData:CanvasItemData):Boolean
A function to copy the layout information from another CanvasItemData into this object. | CanvasItemData |
Constant | Defined By | ||
---|---|---|---|
IMAGE_TYPE : String = image [static]
A string literal representing an image data type. | CanvasItemData | ||
SWF_TYPE : String = swf [static]
A string literal representing an swf data type. | CanvasItemData | ||
TEXT_TYPE : String = text [static]
A string literal representing a text data type. | CanvasItemData | ||
XML_ELEMENT_NAME : String = CanvasItem [static]
A string literal representing the element name used in the XML
representation of a CanvasList. | CanvasItemData |
bottom | property |
bottom:Number
This property can be used as the source for data binding.
public function get bottom():Number
public function set bottom(value:Number):void
height | property |
height:Number
The desired heigth of the item rendering this data.
This property can be used as the source for data binding.
public function get height():Number
public function set height(value:Number):void
horizontalCenter | property |
horizontalCenter:Number
This property can be used as the source for data binding.
public function get horizontalCenter():Number
public function set horizontalCenter(value:Number):void
imageOpacity | property |
imageOpacity:Number
The opacity of the image to be used by the item rendering this data.
This property can be used as the source for data binding.
public function get imageOpacity():Number
public function set imageOpacity(value:Number):void
imageURL | property |
imageURL:String
The url of the image to be used by the item rendering this data.
This property can be used as the source for data binding.
public function get imageURL():String
public function set imageURL(value:String):void
left | property |
left:Number
This property can be used as the source for data binding.
public function get left():Number
public function set left(value:Number):void
parent | property |
parent:CanvasList
[read-only] This CanvasList containing the CanvasItem rendering this data.
public function get parent():CanvasList
right | property |
right:Number
This property can be used as the source for data binding.
public function get right():Number
public function set right(value:Number):void
styledText | property |
styledText:XML
The styled text to be used by the item rendering this data.
This property can be used as the source for data binding.
public function get styledText():XML
public function set styledText(value:XML):void
swfOpacity | property |
swfOpacity:Number
The opacity of the swf to be used by the item rendering this data.
This property can be used as the source for data binding.
public function get swfOpacity():Number
public function set swfOpacity(value:Number):void
swfURL | property |
swfURL:String
The url of the swf to be used by the item rendering this data.
This property can be used as the source for data binding.
public function get swfURL():String
public function set swfURL(value:String):void
top | property |
top:Number
This property can be used as the source for data binding.
public function get top():Number
public function set top(value:Number):void
type | property |
type:String
[read-only] The type of this canvas item data.
This property can be used as the source for data binding.
public function get type():String
See also
verticalCenter | property |
verticalCenter:Number
This property can be used as the source for data binding.
public function get verticalCenter():Number
public function set verticalCenter(value:Number):void
visible | property |
visible:Boolean
[read-only] True if the item rendering this data should be visible.
This property can be used as the source for data binding.
public function get visible():Boolean
width | property |
width:Number
The desired width of the item rendering this data.
This property can be used as the source for data binding.
public function get width():Number
public function set width(value:Number):void
x | property |
x:Number
This property can be used as the source for data binding.
public function get x():Number
public function set x(value:Number):void
y | property |
y:Number
This property can be used as the source for data binding.
public function get y():Number
public function set y(value:Number):void
CanvasItemData | () | Constructor |
public function CanvasItemData(parent:CanvasList = null)
Default constructor
Parametersparent:CanvasList (default = null )
|
applyPositionAndSize | () | method |
public function applyPositionAndSize(visual:IVisualElement):void
A function to copy the layout information this object into a visual element.
Parameters
visual:IVisualElement |
generateXML | () | method |
public function generateXML():XML
Creates an XML representation of this data.
ReturnsXML |
See also
loadFromXML | () | method |
public function loadFromXML(valueXML:XML):Boolean
A function to populate this data based on an XML representation.
Parameters
valueXML:XML |
Boolean |
See also
setValuesFromData | () | method |
public function setValuesFromData(itemData:CanvasItemData):Boolean
A function to copy the layout information from another CanvasItemData into this object.
Parameters
itemData:CanvasItemData |
Boolean |
IMAGE_TYPE | Constant |
public static const IMAGE_TYPE:String = image
A string literal representing an image data type.
SWF_TYPE | Constant |
public static const SWF_TYPE:String = swf
A string literal representing an swf data type.
TEXT_TYPE | Constant |
public static const TEXT_TYPE:String = text
A string literal representing a text data type.
XML_ELEMENT_NAME | Constant |
public static const XML_ELEMENT_NAME:String = CanvasItem
A string literal representing the element name used in the XML representation of a CanvasList.