/* * To change this license header, choose License Headers in Project Properties. * To change this template file, choose Tools | Templates * and open the template in the editor. */ package kommunikation.transmitter; import java.awt.Point; import java.io.Serializable; import java.util.ArrayList; import java.util.Collections; import java.util.List; /** * * @author nobody */ public class Figur implements Serializable { private ArrayList punkte; public Figur() { punkte = new ArrayList<>(); } public void addPoint(Point p) { punkte.add(p); } public List getPunkte() { return Collections.unmodifiableList(punkte); } }