Class VectorFontTextPainter

  • All Implemented Interfaces:
    com.microej.layout.painters.TextPainter

    public class VectorFontTextPainter
    extends java.lang.Object
    implements com.microej.layout.painters.TextPainter
    Implementation of TextPainter using VectorFont and VectorGraphicsPainter.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void drawText​(ej.microui.display.GraphicsContext gc, java.lang.String text, java.io.Closeable fontCloseable, float size, float x, float y, int alignment, float angle, int alpha)  
      java.io.Closeable loadFont​(java.lang.String path)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Method Detail

      • loadFont

        public java.io.Closeable loadFont​(java.lang.String path)
                                   throws java.io.IOException
        Specified by:
        loadFont in interface com.microej.layout.painters.TextPainter
        Throws:
        java.io.IOException
      • drawText

        public void drawText​(ej.microui.display.GraphicsContext gc,
                             java.lang.String text,
                             java.io.Closeable fontCloseable,
                             float size,
                             float x,
                             float y,
                             int alignment,
                             float angle,
                             int alpha)
        Specified by:
        drawText in interface com.microej.layout.painters.TextPainter