Class JPTextBoxDrawing

java.lang.Object
com.io7m.jptbox.core.JPTextBoxDrawing
All Implemented Interfaces:
JPTextBoxDrawingType

public final class JPTextBoxDrawing extends Object implements JPTextBoxDrawingType
The default implementation of the JPTextBoxDrawingType interface.
  • Method Details

    • get

      public static JPTextBoxDrawingType get()
      Returns:
      Access to the default instance
    • drawBox

      public void drawBox(JPTextImageType image, int base_x, int base_y, int width, int height)
      Description copied from interface: JPTextBoxDrawingType
      Draw a box.
      Specified by:
      drawBox in interface JPTextBoxDrawingType
      Parameters:
      image - The target image
      base_x - The X value of the top left corner
      base_y - The Y value of the top left corner
      width - The width of the box
      height - The height of the box
    • drawBoxSilent

      public void drawBoxSilent(JPTextImageType image, int base_x, int base_y, int width, int height)
      Description copied from interface: JPTextBoxDrawingType
      Draw a box without raising any exceptions if any part of the box is outside of the image.
      Specified by:
      drawBoxSilent in interface JPTextBoxDrawingType
      Parameters:
      image - The target image
      base_x - The X value of the top left corner
      base_y - The Y value of the top left corner
      width - The width of the box
      height - The height of the box