Package jexer.backend
Class GlyphMaker
- java.lang.Object
-
- jexer.backend.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.
-
-
-
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 drawcellWidth
- the width of the text cell to draw intocellHeight
- 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 drawcellWidth
- the width of the text cell to draw intocellHeight
- the height of the text cell to draw intoblinkVisible
- if true, the cell is visible if it is blinking- Returns:
- the glyph as an image
-
-