/* * 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 mvcgrafik.model; import java.awt.Point; import java.util.ArrayList; import java.util.Collections; import java.util.List; /** * * @author chris, hd */ public class Figure { private ArrayList punkte; public Figure() { punkte = new ArrayList<>(); } public void addPoint(Point p) { punkte.add(p); } public List getPunkte() { return Collections.unmodifiableList(punkte); } }