⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 erdtabledependency.java

📁 eq跨平台查询工具源码 eq跨平台查询工具源码
💻 JAVA
字号:
/* * ErdTableDependency.java * * Copyright (C) 2002, 2003, 2004, 2005, 2006 Takis Diakoumis * * This program is free software; you can redistribute it and/or * modify it under the terms of the GNU General Public License * as published by the Free Software Foundation; either version 2 * of the License, or any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the Free Software * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA. * */package org.executequery.gui.erd;import java.io.Serializable;/* ---------------------------------------------------------- * CVS NOTE: Changes to the CVS repository prior to the  *           release of version 3.0.0beta1 has meant a  *           resetting of CVS revision numbers. * ---------------------------------------------------------- *//** * * @author   Takis Diakoumis * @version  $Revision: 1.4 $ * @date     $Date: 2006/05/14 06:56:52 $ */public class ErdTableDependency implements Serializable {        private ErdTable table_1;    private ErdTable table_2;        /** Start x position */    private int xPosn_1;    /** Middle x position */    private int xPosn_2;    /** Final x position */    private int xPosn_3;    /** Start y position */    private int yPosn_1;    /** Middle y position */    private int yPosn_2;    /** Final y position */    private int yPosn_3;    /** The relative position of each table */    private int position;        protected static final int POSITION_1 = 0;    protected static final int POSITION_2 = 1;    protected static final int POSITION_3 = 2;    protected static final int POSITION_4 = 3;    protected static final int POSITION_5 = 4;    protected static final int POSITION_6 = 5;        public ErdTableDependency(ErdTable table_1, ErdTable table_2) {        this.table_1 = table_1;        this.table_2 = table_2;        reset();    }        public void reset() {        xPosn_1 = -1;        xPosn_2 = -1;        xPosn_3 = -1;        yPosn_1 = -1;        yPosn_2 = -1;        yPosn_3 = -1;        position = -1;    }        public int getPosition() {        return position;    }        public void setPosition(int position) {        this.position = position;    }        public ErdTable getTable_2() {        return table_2;    }        public ErdTable getTable_1() {        return table_1;    }        public int getXPosn_1() {        return xPosn_1;    }        public int getXPosn_2() {        return xPosn_2;    }        public int getXPosn_3() {        return xPosn_3;    }        public int getYPosn_1() {        return yPosn_1;    }        public int getYPosn_2() {        return yPosn_2;    }        public int getYPosn_3() {        return yPosn_3;    }        public void setXPosn_1(int xPosn_1) {        this.xPosn_1 = xPosn_1;    }        public void setXPosn_2(int xPosn_2) {        this.xPosn_2 = xPosn_2;    }        public void setXPosn_3(int xPosn_3) {        this.xPosn_3 = xPosn_3;    }        public void setYPosn_1(int yPosn_1) {        this.yPosn_1 = yPosn_1;    }        public void setYPosn_2(int yPosn_2) {        this.yPosn_2 = yPosn_2;    }        public void setYPosn_3(int yPosn_3) {        this.yPosn_3 = yPosn_3;    }        public void clean() {        table_1 = null;        table_2 = null;    }    } // class

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -