You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@xmlgraphics.apache.org by je...@apache.org on 2006/04/04 12:02:55 UTC

svn commit: r391268 - in /xmlgraphics/commons/trunk/src/java/org/apache/xmlgraphics/java2d/ps: PSDocumentGraphics2D.java PSGraphics2D.java

Author: jeremias
Date: Tue Apr  4 03:02:53 2006
New Revision: 391268

URL: http://svn.apache.org/viewcvs?rev=391268&view=rev
Log:
Provide access to the TextHandlers.
Made a couple of methods public (necessary since this stuff is now distributed in various packages)

Modified:
    xmlgraphics/commons/trunk/src/java/org/apache/xmlgraphics/java2d/ps/PSDocumentGraphics2D.java
    xmlgraphics/commons/trunk/src/java/org/apache/xmlgraphics/java2d/ps/PSGraphics2D.java

Modified: xmlgraphics/commons/trunk/src/java/org/apache/xmlgraphics/java2d/ps/PSDocumentGraphics2D.java
URL: http://svn.apache.org/viewcvs/xmlgraphics/commons/trunk/src/java/org/apache/xmlgraphics/java2d/ps/PSDocumentGraphics2D.java?rev=391268&r1=391267&r2=391268&view=diff
==============================================================================
--- xmlgraphics/commons/trunk/src/java/org/apache/xmlgraphics/java2d/ps/PSDocumentGraphics2D.java (original)
+++ xmlgraphics/commons/trunk/src/java/org/apache/xmlgraphics/java2d/ps/PSDocumentGraphics2D.java Tue Apr  4 03:02:53 2006
@@ -48,7 +48,7 @@
      * @param textAsShapes set this to true so that text will be rendered
      * using curves and not the font.
      */
-    PSDocumentGraphics2D(boolean textAsShapes) {
+    public PSDocumentGraphics2D(boolean textAsShapes) {
         super(textAsShapes);
     }
 

Modified: xmlgraphics/commons/trunk/src/java/org/apache/xmlgraphics/java2d/ps/PSGraphics2D.java
URL: http://svn.apache.org/viewcvs/xmlgraphics/commons/trunk/src/java/org/apache/xmlgraphics/java2d/ps/PSGraphics2D.java?rev=391268&r1=391267&r2=391268&view=diff
==============================================================================
--- xmlgraphics/commons/trunk/src/java/org/apache/xmlgraphics/java2d/ps/PSGraphics2D.java (original)
+++ xmlgraphics/commons/trunk/src/java/org/apache/xmlgraphics/java2d/ps/PSGraphics2D.java Tue Apr  4 03:02:53 2006
@@ -138,6 +138,26 @@
         //setPrivateHints();
     }
 
+    /** @return the fallback TextHandler implementation */
+    public TextHandler getFallbackTextHandler() {
+        return this.fallbackTextHandler;
+    }
+
+    /** @return the custom TextHandler implementation */
+    public TextHandler getCustomTextHandler() {
+        return this.customTextHandler;
+    }
+
+    /**
+     * Sets a custom TextHandler implementation that is reponsible for painting text. The default
+     * TextHandler paints all text as shapes. A custom implementation can implement text painting
+     * using text painting operators.
+     * @param handler the custom TextHandler implementation
+     */
+    public void setCustomTextHandler(TextHandler handler) {
+        this.customTextHandler = handler;
+    }
+    
     /* TODO Add me back at the right place!!!
     private void setPrivateHints() {
         setRenderingHint(RenderingHintsKeyExt.KEY_AVOID_TILE_PAINTING, 
@@ -158,7 +178,7 @@
      * Central handler for IOExceptions for this class.
      * @param ioe IOException to handle
      */
-    protected void handleIOException(IOException ioe) {
+    public void handleIOException(IOException ioe) {
         //TODO Surely, there's a better way to do this.
         ioe.printStackTrace();
     }



---------------------------------------------------------------------
Apache XML Graphics Project URL: http://xmlgraphics.apache.org/
To unsubscribe, e-mail: commits-unsubscribe@xmlgraphics.apache.org
For additional commands, e-mail: commits-help@xmlgraphics.apache.org