ReferenceGlyphGrid

class ReferenceGlyphGrid(grid: Array<Array<BufferedImage?>>, val glyphWidth: Int, val glyphHeight: Int) : MutableGlyphGrid<BufferedImage>

A mutable GlyphGrid implementation that just stores references to BufferedImages.

Constructors

Link copied to clipboard
constructor(gridWidth: Int, gridHeight: Int, glyphWidth: Int, glyphHeight: Int)
constructor(grid: Array<Array<BufferedImage?>>, glyphWidth: Int, glyphHeight: Int)

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard
open override val glyphHeight: Int

The height of each glyph

Link copied to clipboard
open override val glyphWidth: Int

The width of each glyph.

Link copied to clipboard
open override var gridHeight: Int

The height of this grid, i.e. the number of rows.

Link copied to clipboard
open override var gridWidth: Int

The width of this grid, i.e. the number of columns.

Functions

Link copied to clipboard
open override fun create(x: Int, y: Int): BufferedImage

Creates a new glyph at the specified x and y and returns it. Changes made to the returned glyph will be reflected in this grid.

Link copied to clipboard
open operator override fun get(x: Int, y: Int): BufferedImage

Gets the glyph at the specified x and y coordinates.

Link copied to clipboard
open operator override fun set(x: Int, y: Int, value: BufferedImage?)

Sets the glyph at the specified x and y coordinates, or removes it if value is null.

Link copied to clipboard
open override fun toImage(): BufferedImage

Creates a BufferedImage of this grid.