/Prototipo/PrototipoCommons/src/memoria/commons/structures/Polygon.java
http://prototipomemoria.googlecode.com/ · Java · 48 lines · 29 code · 11 blank · 8 comment · 0 complexity · 6d3bff14a7c596c9b221a97b0de2f1df MD5 · raw file
- /*
- * To change this template, choose Tools | Templates
- * and open the template in the editor.
- */
- package memoria.commons.structures;
- import java.util.ArrayList;
- import java.util.Arrays;
- import java.util.List;
- /**
- *
- * @author diego
- */
- public class Polygon extends Line {
- private Point center;
- public Point getCenter() {
- return center;
- }
- @Override
- public String getTypeRepresentation()
- {
- return "Polygon";
- }
- public void setCenter(Point center) {
- this.center = center;
- }
- public Polygon(Point center) {
- super();
- this.center = center;
- }
- public Polygon(){
- super();
- }
- @Override
- public List<Point> getCenterPoints() {
- return Arrays.asList(this.getCenter());
- }
- }