diff options
Diffstat (limited to 'platform/java/src/com/artifex/mupdf/fitz/Text.java')
-rw-r--r-- | platform/java/src/com/artifex/mupdf/fitz/Text.java | 43 |
1 files changed, 43 insertions, 0 deletions
diff --git a/platform/java/src/com/artifex/mupdf/fitz/Text.java b/platform/java/src/com/artifex/mupdf/fitz/Text.java new file mode 100644 index 00000000..5bbe8abe --- /dev/null +++ b/platform/java/src/com/artifex/mupdf/fitz/Text.java @@ -0,0 +1,43 @@ +package com.artifex.mupdf.fitz; + +public class Text implements TextWalker +{ + private long pointer; + + protected native void finalize(); + + public void destroy() { + finalize(); + pointer = 0; + } + + private native long newNative(); + private native long cloneNative(Text old); + + private Text(long p) { + pointer = p; + } + + public Text(Text old) { + pointer = cloneNative(old); + } + + public Text() { + pointer = newNative(); + } + + public native void showGlyph(Font font, Matrix trm, int glyph, int unicode, boolean wmode); + public native void showString(Font font, Matrix trm, String str, boolean wmode); + + public native Rect getBounds(StrokeState stroke, Matrix ctm); + + public void showGlyph(Font font, Matrix trm, int glyph, int unicode) { + showGlyph(font, trm, glyph, unicode, false); + } + + public void showString(Font font, Matrix trm, String str) { + showString(font, trm, str, false); + } + + public native void walk(TextWalker walker); +} |