Skip to content

Text.java

Raphael Lutz edited this page Jul 10, 2018 · 2 revisions

Static class allowing of printing text in a fancy way.

Fields

  • None

Methods

  • static void drawString(Graphics g, String text, Color c, int xPos, int yPos, boolean center, Font font) : prints the given text onto g, with color c and font font, at position xPos and yPos. If center == false, the given position is the lower-left corner. If center == true, the given position is the center of the text.
Clone this wiki locally