Return-Path: Delivered-To: apmail-xmlgraphics-commits-archive@www.apache.org Received: (qmail 15053 invoked from network); 4 Apr 2006 10:03:38 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 4 Apr 2006 10:03:38 -0000 Received: (qmail 24255 invoked by uid 500); 4 Apr 2006 10:03:37 -0000 Mailing-List: contact commits-help@xmlgraphics.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: general@xmlgraphics.apache.org Delivered-To: mailing list commits@xmlgraphics.apache.org Received: (qmail 24244 invoked by uid 99); 4 Apr 2006 10:03:37 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 04 Apr 2006 03:03:37 -0700 X-ASF-Spam-Status: No, hits=-9.4 required=10.0 tests=ALL_TRUSTED,NO_REAL_NAME X-Spam-Check-By: apache.org Received: from [209.237.227.194] (HELO minotaur.apache.org) (209.237.227.194) by apache.org (qpsmtpd/0.29) with SMTP; Tue, 04 Apr 2006 03:03:36 -0700 Received: (qmail 14634 invoked by uid 65534); 4 Apr 2006 10:02:56 -0000 Message-ID: <20060404100256.14633.qmail@minotaur.apache.org> Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: svn commit: r391268 - in /xmlgraphics/commons/trunk/src/java/org/apache/xmlgraphics/java2d/ps: PSDocumentGraphics2D.java PSGraphics2D.java Date: Tue, 04 Apr 2006 10:02:55 -0000 To: commits@xmlgraphics.apache.org From: jeremias@apache.org X-Mailer: svnmailer-1.0.7 X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N 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