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

📄 unarylink.java

📁 NetWar是一个实时策略游戏
💻 JAVA
字号:
/*
	Netwar
	Copyright (C) 2002  Daniel Grund, Kyle Kakligian, Jason Komutrattananon, & Brian Hibler.

	This file is part of Netwar.

	Netwar 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
	(at your option) any later version.

	Netwar 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 Netwar; if not, write to the Free Software
	Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
 */
package netwar.utils.vectorgraphics;

/** N_aryLink marking an endpoint of the link network.
 * The UnaryLink must have exactly one link.
 * It provides the public version of rebind.
 */
public class UnaryLink extends N_aryLink {

	/** Creates a new instance of UnaryLink */
    public UnaryLink() {
	    super(1);
    }
    /** Reconnects all the points in the link network, such that this link is the 'stable' point.
     * This will traverse all the N_aryLinks connected to this one and cause them to bind their
     * points together. The link this link connects to will adjust such that this link's
     * GraphicThing doesn't move, and the others will be connected on until everything is
     * reconnected without moving this one.
     */
    public void rebind() {
	adjacent[0].rebind(this);    
    }
}

⌨️ 快捷键说明

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