diff options
author | Rami Santina <[email protected]> | 2011-03-30 13:25:54 +0300 |
---|---|---|
committer | Rami Santina <[email protected]> | 2011-03-30 13:25:54 +0300 |
commit | 2d7cc275ccea2e11deeaf02f63c7984a6c09bf4f (patch) | |
tree | aae869046fc5c98d17831a2709ed93c48a0c57db /src/jogamp | |
parent | e952e7dbac7a6b746b8465aa63423f1aa138ca27 (diff) |
Added inclass comments to OutlineShape
Diffstat (limited to 'src/jogamp')
-rw-r--r-- | src/jogamp/graph/curve/text/GlyphShape.java | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/src/jogamp/graph/curve/text/GlyphShape.java b/src/jogamp/graph/curve/text/GlyphShape.java index 712633f4b..16983fed9 100644 --- a/src/jogamp/graph/curve/text/GlyphShape.java +++ b/src/jogamp/graph/curve/text/GlyphShape.java @@ -70,7 +70,7 @@ public class GlyphShape { shape.transformOutlines(OutlineShape.QUADRATIC_NURBS); } - public final Vertex.Factory<? extends Vertex> pointFactory() { return shape.pointFactory(); } + public final Vertex.Factory<? extends Vertex> vertexFactory() { return shape.vertexFactory(); } private void addVertexToLastOutline(Vertex vertex){ shape.addVertex(vertex); @@ -81,40 +81,40 @@ public class GlyphShape { if(!shape.getLastOutline().isEmpty()){ shape.addEmptyOutline(); } - Vertex vert = pointFactory().create(coords[0],coords[1]); + Vertex vert = vertexFactory().create(coords[0],coords[1]); vert.setOnCurve(true); addVertexToLastOutline(vert); numVertices++; } else if(segmentType == PathIterator.SEG_LINETO){ - Vertex vert1 = pointFactory().create(coords[0],coords[1]); + Vertex vert1 = vertexFactory().create(coords[0],coords[1]); vert1.setOnCurve(true); addVertexToLastOutline(vert1); numVertices++; } else if(segmentType == PathIterator.SEG_QUADTO){ - Vertex vert1 = pointFactory().create(coords[0],coords[1]); + Vertex vert1 = vertexFactory().create(coords[0],coords[1]); vert1.setOnCurve(false); addVertexToLastOutline(vert1); - Vertex vert2 = pointFactory().create(coords[2],coords[3]); + Vertex vert2 = vertexFactory().create(coords[2],coords[3]); vert2.setOnCurve(true); addVertexToLastOutline(vert2); numVertices+=2; } else if(segmentType == PathIterator.SEG_CUBICTO){ - Vertex vert1 = pointFactory().create(coords[0],coords[1]); + Vertex vert1 = vertexFactory().create(coords[0],coords[1]); vert1.setOnCurve(false); addVertexToLastOutline(vert1); - Vertex vert2 = pointFactory().create(coords[2],coords[3]); + Vertex vert2 = vertexFactory().create(coords[2],coords[3]); vert2.setOnCurve(false); addVertexToLastOutline(vert2); - Vertex vert3 = pointFactory().create(coords[4],coords[5]); + Vertex vert3 = vertexFactory().create(coords[4],coords[5]); vert3.setOnCurve(true); addVertexToLastOutline(vert3); |