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