LineView.js
资源名称:WorkFlow.rar [点击查看]
上传用户:ahit0551
上传日期:2009-04-15
资源大小:2345k
文件大小:1k
源码类别:
xml/soap/webservice
开发平台:
Java
- /**
- * <p>Title: </p>
- * <p>Description: </p>
- * <p>Copyright: Copyright (c) xio.name 2006</p>
- * @author xio
- */ 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; };