LineView.js
上传用户:ahit0551
上传日期:2009-04-15
资源大小:2345k
文件大小:1k
源码类别:

xml/soap/webservice

开发平台:

Java

  1. /**
  2.  * <p>Title:  </p>
  3.  * <p>Description: </p>
  4.  * <p>Copyright: Copyright (c) xio.name 2006</p>
  5.  * @author xio
  6.  */ function LineView() {     this.base = Component;     this.base(Toolkit.newElement("v:line"));     this.setPosition("absolute");     this.setLeft("0px");     this.setTop("0px"); } LineView.prototype = new Component(); // LineView.prototype.setFrom = function (point) {     if (!point) {         return;     }     this.fromPoint = point;     this.getUI().from = point.getX() + "," + point.getY(); }; LineView.prototype.setTo = function (point) {     if (!point) {         return;     }     this.toPoint = point;     this.getUI().to = point.getX() + "," + point.getY(); }; // LineView.prototype.getFromPoint = function () {     return this.fromPoint; }; LineView.prototype.getToPoint = function () {     return this.toPoint; };