From 630a9ea52b16da6badb31a98b70893f8d294b4e8 Mon Sep 17 00:00:00 2001 From: Sven Gothel Date: Wed, 30 Mar 2011 15:25:18 +0200 Subject: Remove generics notion of Type, since Vertex _is_ the lowest denominator for our implementation and curve API --- src/jogamp/graph/curve/tess/GraphOutline.java | 24 ++++++++++++------------ 1 file changed, 12 insertions(+), 12 deletions(-) (limited to 'src/jogamp/graph/curve/tess/GraphOutline.java') diff --git a/src/jogamp/graph/curve/tess/GraphOutline.java b/src/jogamp/graph/curve/tess/GraphOutline.java index bb262ce5b..5dae296e5 100644 --- a/src/jogamp/graph/curve/tess/GraphOutline.java +++ b/src/jogamp/graph/curve/tess/GraphOutline.java @@ -32,27 +32,27 @@ import java.util.ArrayList; import com.jogamp.graph.geom.Outline; import com.jogamp.graph.geom.Vertex; -public class GraphOutline { - final private Outline outline; - final private ArrayList> controlpoints = new ArrayList>(3); +public class GraphOutline { + final private Outline outline; + final private ArrayList controlpoints = new ArrayList(3); public GraphOutline(){ - this.outline = new Outline(); + this.outline = new Outline(); } /**Create a control polyline of control vertices * the curve pieces can be identified by onCurve flag * of each cp the control polyline is open by default */ - public GraphOutline(Outline ol){ + public GraphOutline(Outline ol){ this.outline = ol; - ArrayList vertices = this.outline.getVertices(); - for(T v:vertices){ - this.controlpoints.add(new GraphVertex(v)); + ArrayList vertices = this.outline.getVertices(); + for(Vertex v:vertices){ + this.controlpoints.add(new GraphVertex(v)); } } - public Outline getOutline() { + public Outline getOutline() { return outline; } @@ -61,11 +61,11 @@ public class GraphOutline { }*/ - public ArrayList> getGraphPoint() { + public ArrayList getGraphPoint() { return controlpoints; } - public ArrayList getPoints() { + public ArrayList getPoints() { return outline.getVertices(); } @@ -73,7 +73,7 @@ public class GraphOutline { this.controlpoints = controlpoints; }*/ - public void addVertex(GraphVertex v) { + public void addVertex(GraphVertex v) { controlpoints.add(v); outline.addVertex(v.getPoint()); } -- cgit v1.2.3