created mirror
This commit is contained in:
47
Modules/vob/Connection.java
Normal file
47
Modules/vob/Connection.java
Normal file
@@ -0,0 +1,47 @@
|
||||
/*
|
||||
Vob.java
|
||||
*
|
||||
* Copyright (c) 2000, Ted Nelson and Tuomas Lukka
|
||||
*
|
||||
* You may use and distribute under the terms of either the GNU Lesser
|
||||
* General Public License, either version 2 of the license or,
|
||||
* at your choice, any later version. Alternatively, you may use and
|
||||
* distribute under the terms of the XPL.
|
||||
*
|
||||
* See the LICENSE.lgpl and LICENSE.xpl files for the specific terms of
|
||||
* the licenses.
|
||||
*
|
||||
* This software 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 README
|
||||
* file for more details.
|
||||
*
|
||||
*/
|
||||
/*
|
||||
* Written by Tuomas Lukka
|
||||
*/
|
||||
package org.gzigzag;
|
||||
import java.util.*;
|
||||
import java.awt.*;
|
||||
|
||||
/** A connection to draw between two vobs.
|
||||
* This doesn't need to store the vob coordinates, so the same Connection
|
||||
* object can actually be used to draw many connections.
|
||||
*/
|
||||
|
||||
public abstract class Vob extends Renderable {
|
||||
public static final String rcsid = "$Id: Connection.java,v 1.1 2001/01/20 08:56:19 bfallenstein Exp $";
|
||||
|
||||
/** Render this connection between the given vobs.
|
||||
* Default: render nothing.
|
||||
*/
|
||||
public void render(Graphics g, Vob v1, int x1, int y1,
|
||||
Vob v2, int x2, int y2) {
|
||||
}
|
||||
|
||||
/** Returns an object telling what was hit.
|
||||
* Default implementation: returns null.
|
||||
* XXX interaction with coords?
|
||||
*/
|
||||
public Object hit(Vob v1, Vob v2) { return null; }
|
||||
}
|
||||
Reference in New Issue
Block a user