MCPcopy Create free account
hub / github.com/dumbledore/AlbiteREADER / draw

Method draw

src/org/albite/book/view/TextRegion.java:33–45  ·  view source on GitHub ↗
(
            final Graphics g,
            final ColorScheme cp,
            final AlbiteFont fontPlain,
            final AlbiteFont fontItalic,
            final char[] chapterBuffer)

Source from the content-addressed store, hash-verified

31 }
32
33 public void draw(
34 final Graphics g,
35 final ColorScheme cp,
36 final AlbiteFont fontPlain,
37 final AlbiteFont fontItalic,
38 final char[] chapterBuffer) {
39
40 AlbiteFont font =
41 TextPage.chooseFont(fontPlain, fontItalic, style);
42
43 font.drawChars(g, cp.colors[color], chapterBuffer,
44 x, y, position, length);
45 }
46
47 public void drawSelected(
48 final Graphics g,

Callers

nothing calls this directly

Calls 2

chooseFontMethod · 0.95
drawCharsMethod · 0.95

Tested by

no test coverage detected