diff options
author | Rami Santina <rami.santina@gmail.com> | 2011-05-02 19:30:30 +0300 |
---|---|---|
committer | Rami Santina <rami.santina@gmail.com> | 2011-05-02 19:30:30 +0300 |
commit | 8578860e5f9f1b98651373accc53b0bfe6f07ba2 (patch) | |
tree | a2f02876eefbfa6af717db47991afc36d7000634 /src/jogl | |
parent | 307ba4ea320a91d5731274ed3191bea840d1fe70 (diff) |
Refactor getOutline --> getPaths (actual behaviour)
Diffstat (limited to 'src/jogl')
3 files changed, 6 insertions, 4 deletions
diff --git a/src/jogl/classes/jogamp/graph/font/FontInt.java b/src/jogl/classes/jogamp/graph/font/FontInt.java index 4d9390da2..f915d57f0 100644 --- a/src/jogl/classes/jogamp/graph/font/FontInt.java +++ b/src/jogl/classes/jogamp/graph/font/FontInt.java @@ -30,6 +30,7 @@ package jogamp.graph.font; import jogamp.graph.geom.plane.AffineTransform; import jogamp.graph.geom.plane.Path2D; +import com.jogamp.graph.curve.OutlineShape; import com.jogamp.graph.font.Font; public interface FontInt extends Font { @@ -45,6 +46,7 @@ public interface FontInt extends Font { public Path2D getPath(float pixelSize); } - public void getOutline(String string, float pixelSize, + public void getPaths(String string, float pixelSize, AffineTransform transform, Path2D[] result); + //TODO: Rami - ADD getOutlines without path2D } diff --git a/src/jogl/classes/jogamp/graph/font/typecast/TypecastFont.java b/src/jogl/classes/jogamp/graph/font/typecast/TypecastFont.java index 6292c8826..dae5b3333 100644 --- a/src/jogl/classes/jogamp/graph/font/typecast/TypecastFont.java +++ b/src/jogl/classes/jogamp/graph/font/typecast/TypecastFont.java @@ -199,8 +199,8 @@ class TypecastFont implements FontInt { return result; } - public void getOutline(String string, float pixelSize, AffineTransform transform, Path2D[] result) { - TypecastRenderer.getOutline(this, string, pixelSize, transform, result); + public void getPaths(String string, float pixelSize, AffineTransform transform, Path2D[] result) { + TypecastRenderer.getPaths(this, string, pixelSize, transform, result); } public float getStringWidth(String string, float pixelSize) { diff --git a/src/jogl/classes/jogamp/graph/font/typecast/TypecastRenderer.java b/src/jogl/classes/jogamp/graph/font/typecast/TypecastRenderer.java index ab5e673db..c8861d744 100644 --- a/src/jogl/classes/jogamp/graph/font/typecast/TypecastRenderer.java +++ b/src/jogl/classes/jogamp/graph/font/typecast/TypecastRenderer.java @@ -40,7 +40,7 @@ import com.jogamp.graph.font.Font; */ public class TypecastRenderer { - public static void getOutline(TypecastFont font, + public static void getPaths(TypecastFont font, String string, float pixelSize, AffineTransform transform, Path2D[] p) { if (string == null) { |