station.java
来自「公交信息查询」· Java 代码 · 共 42 行
JAVA
42 行
//station.java
//该类用于描述公交车站
import java.util.*;
import java.awt.*;
public class Station extends Spot
{
Vector nextpoint; //到下一站过程中,所经历的拐弯点的坐标
//元素为 Point类型
public Station ()
{
nextpoint=new Vector();
}
public Station ( String name, Point location,Vector nextpoint )
{
super(name,location );
// this.nextpoint=new Vector();
this.nextpoint=nextpoint;
}
public Station ( String name)
{
super(name);
}
public void setnextpoint( Vector nextpoint )
{
this.nextpoint=nextpoint;
}
public Vector getnextpoint()
{
return nextpoint;
}
}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?