Package com.github.tadukoo.view
Class DrawUtil
java.lang.Object
com.github.tadukoo.view.DrawUtil
This class provides utility methods for drawing things to the screen.
- Version:
- 0.1-Alpha
- Author:
- Logan Ferree (Tadukoo)
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic voiddrawText(Graphics g, String text, int x, int y, Orientation orientation) Draws the given text aligned to the given coordinates according to the orientation.
-
Constructor Details
-
DrawUtil
private DrawUtil()Not allowed to create a DrawUtil
-
-
Method Details
-
drawText
Draws the given text aligned to the given coordinates according to the orientation.- Parameters:
g- The Graphics to use to drawtext- The text to be drawn to the screenx- The x position to align toy- The y position to align toorientation- The orientation to use in aligning the text
-