<CANVAS> : Canvas

Java class : leon.view.LyCanvas

ROLE

A canvas is a drawing area fully controlled by an external component. It allows a simple integration of external graphical libraries in a Application Engine application.

ATTRIBUTES

<!ATTLIST CANVAS
	  id NMTOKEN #IMPLIED
	  template NMTOKEN #IMPLIED
	  javaName CDATA #REQUIRED
	  controller CDATA #IMPLIED
	  userData CDATA #IMPLIED>
Attribute Mand. Description Default
id no CANVAS.id  
template no CANVAS.template  
javaName yes Java full name of the class that manages the drawing on the canvas and interactions of the end-user on this drawing area.  
controller no Reference of the controller that manages this canvas (i.e. handles user demands and refresh content).  
userData no User data that can be used to give parameters for the management of the canvas encoded in a string.  

ELEMENTS

<!ELEMENT CANVAS 
	  (CONSTRAINT?,
	   DATA*)>
Element Mand. Mult. Description
CONSTRAINT no no Positioning constraint of the canvas.
DATA no yes CANVAS.DATA