Class DrawUtil

java.lang.Object
com.github.tadukoo.view.DrawUtil

public class DrawUtil extends Object
This class provides utility methods for drawing things to the screen.
Version:
0.1-Alpha
Author:
Logan Ferree (Tadukoo)
  • Constructor Details

    • DrawUtil

      private DrawUtil()
      Not allowed to create a DrawUtil
  • Method Details

    • drawText

      public static void drawText(Graphics g, String text, int x, int y, Orientation orientation)
      Draws the given text aligned to the given coordinates according to the orientation.
      Parameters:
      g - The Graphics to use to draw
      text - The text to be drawn to the screen
      x - The x position to align to
      y - The y position to align to
      orientation - The orientation to use in aligning the text