Package org.xhtmlrenderer.swing

Examples of org.xhtmlrenderer.swing.Java2DFontContext


    if ( renderingHints != null ) {
      newG.getRenderingHints().putAll(renderingHints);
    }
   
    RenderingContext rc = sharedContext.newRenderingContextInstance();
    rc.setFontContext(new Java2DFontContext(newG));
    rc.setOutputDevice(outputDevice);
    sharedContext.getTextRenderer().setup(rc.getFontContext());
    root.getLayer().paint(rc);
  }
View Full Code Here


    this.root = root;
  }

  private LayoutContext newLayoutContext() {
    LayoutContext result = sharedContext.newLayoutContextInstance();
    result.setFontContext(new Java2DFontContext(outputDevice.getGraphics()));

    sharedContext.getTextRenderer().setup(result.getFontContext());

    return result;
  }
View Full Code Here

TOP

Related Classes of org.xhtmlrenderer.swing.Java2DFontContext

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.