|
1234567891011121314151617181920212223242526272829303132333435363738 |
- /*
- * 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<Point> punkte;
-
- public Figur()
- {
- punkte = new ArrayList<>();
- }
-
- public void addPoint(Point p)
- {
- punkte.add(p);
- }
-
- public List<Point> getPunkte()
- {
- return Collections.unmodifiableList(punkte);
- }
-
- }
|