📄 station.java
字号:
//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 + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -