<virtualdrawview>

JavaScript: lz.virtualdrawview
extends <drawview> » <view> » <node> » lz.Eventable »

Methods

clear()
virtualdrawview.clear();

lineTo()
virtualdrawview.lineTo(x, y);
lineTo in virtual coordinate
Parameter Name Type Description
x    
y    

moveTo()
virtualdrawview.moveTo(x, y);
moveTo in virtual coordinate
Parameter Name Type Description
x    
y    

quadraticCurveTo()
virtualdrawview.quadraticCurveTo(cx, cy, x, y);
quadriaticCurveTo in virtual coordinate
Parameter Name Type Description
cx    
cy    
x    
y    

setDataBound()
virtualdrawview.setDataBound(minx : Number, miny : Number, maxx : Number, maxy : Number);
set boundary for the virtual coordinate
Parameter Name Type Description
minx Number min x of the boundary
miny Number min y of the boundary
maxx Number max y of the boundary
maxy Number max y of the boundary

toDeviceX()
virtualdrawview.toDeviceX(x : Number);
virtual coordinate to physical coordinate for x
Parameter Name Type Description
x Number x in virtual coordinate
Returns Type Description
  Number x in physical coordinate

toDeviceY()
virtualdrawview.toDeviceY(y : Number);
virtual coordinate to physical coordinate for y
Parameter Name Type Description
y Number y in virtual coordinate
Returns Type Description
  Number y in physical coordinate

toVirtualX()
virtualdrawview.toVirtualX(x : Number);
physical coordinate to virtual coordinate for x
Parameter Name Type Description
x Number x in physical coordinate
Returns Type Description
  Number x in virtual coordinate

toVirtualY()
virtualdrawview.toVirtualY(y : Number);
physical coordinate to virtual coordinate for y
Parameter Name Type Description
y Number y in physical coordinate
Returns Type Description
  Number y in virtual coordinate

Methods inherited from lz.Eventable

destroy, setAttribute

Events

Events inherited from <drawview>

oncontext

Events inherited from <node>

onconstruct, ondata, oninit

Events inherited from lz.Eventable

ondestroy