package graph; import java.awt.Color; public abstract class Vertex{ // ATTRIBUTE private String name; private Color color; private int distance; private int xCoordinate; private int yCoordinate; // KONSTRUKTOREN public Vertex() { } public Vertex(int xCoordinate, int yCoordinate, String name, Color color) { this.xCoordinate = xCoordinate; this.yCoordinate = yCoordinate; this.name = name; this.color = color; } // GET-ER public String getName() { return this.name; } public Color getColor() { return this.color; } public int getDistance() { return this.distance; } public int getXCoordinate(){ return this.xCoordinate; } public int getYCoordinate(){ return this.yCoordinate; } // SET-ER public void setName(String s) { this.name = s; } public void setColor(Color s) { this.color = s; } public void setDistance(int s) { this.distance = s; } public void setXCoordinate(int xCoordinate){ this.xCoordinate=xCoordinate; } public void setYCoordinate(int yCoordinate){ this.yCoordinate=yCoordinate; } }