Package com.io7m.jptbox.core
Class JPTextBoxDrawing
java.lang.Object
com.io7m.jptbox.core.JPTextBoxDrawing
- All Implemented Interfaces:
JPTextBoxDrawingType
The default implementation of the
JPTextBoxDrawingType interface.-
Method Summary
Modifier and TypeMethodDescriptionvoiddrawBox(JPTextImageType image, int base_x, int base_y, int width, int height) Draw a box.voiddrawBoxSilent(JPTextImageType image, int base_x, int base_y, int width, int height) Draw a box without raising any exceptions if any part of the box is outside of the image.static JPTextBoxDrawingTypeget()
-
Method Details
-
get
- Returns:
- Access to the default instance
-
drawBox
Description copied from interface:JPTextBoxDrawingTypeDraw a box.- Specified by:
drawBoxin interfaceJPTextBoxDrawingType- Parameters:
image- The target imagebase_x- The X value of the top left cornerbase_y- The Y value of the top left cornerwidth- The width of the boxheight- The height of the box
-
drawBoxSilent
Description copied from interface:JPTextBoxDrawingTypeDraw a box without raising any exceptions if any part of the box is outside of the image.- Specified by:
drawBoxSilentin interfaceJPTextBoxDrawingType- Parameters:
image- The target imagebase_x- The X value of the top left cornerbase_y- The Y value of the top left cornerwidth- The width of the boxheight- The height of the box
-