Package jexer.backend

Class GlyphMaker


  • public class GlyphMaker
    extends java.lang.Object
    GlyphMaker presents unified interface to all of its supported fonts to clients.
    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.awt.image.BufferedImage getImage​(Cell cell, int cellWidth, int cellHeight)
      Get a glyph image.
      java.awt.image.BufferedImage getImage​(Cell cell, int cellWidth, int cellHeight, boolean blinkVisible)
      Get a glyph image.
      static GlyphMaker getInstance​(int fontSize)
      Obtain the GlyphMaker instance for a particular font size.
      • Methods inherited from class java.lang.Object

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

      • getInstance

        public static GlyphMaker getInstance​(int fontSize)
        Obtain the GlyphMaker instance for a particular font size.
        Parameters:
        fontSize - the size of these fonts in pixels
        Returns:
        the instance
      • getImage

        public java.awt.image.BufferedImage getImage​(Cell cell,
                                                     int cellWidth,
                                                     int cellHeight)
        Get a glyph image.
        Parameters:
        cell - the character to draw
        cellWidth - the width of the text cell to draw into
        cellHeight - the height of the text cell to draw into
        Returns:
        the glyph as an image
      • getImage

        public java.awt.image.BufferedImage getImage​(Cell cell,
                                                     int cellWidth,
                                                     int cellHeight,
                                                     boolean blinkVisible)
        Get a glyph image.
        Parameters:
        cell - the character to draw
        cellWidth - the width of the text cell to draw into
        cellHeight - the height of the text cell to draw into
        blinkVisible - if true, the cell is visible if it is blinking
        Returns:
        the glyph as an image