public class TextStyle extends AnchorBean<TextStyle>
The size and style of text as it should appear in an image.
Author:
Owen Feehan
  • Constructor Details

    • TextStyle

      public TextStyle()
  • Method Details

    • drawText

      public void drawText(String textToDraw, BufferedImage image, Extent extent)
      Draws text on a BufferedImage.
      Parameters:
      textToDraw - the text to draw.
      image - the image.
      extent - the size of the image.
    • getFontSize

      public int getFontSize()
      Font-size of drawn text
    • setFontSize

      public void setFontSize(int fontSize)
      Font-size of drawn text
    • getFontName

      public String getFontName()
      Font-name of drawn text
    • setFontName

      public void setFontName(String fontName)
      Font-name of drawn text
    • getFontColor

      public RGBColorBean getFontColor()
      Font-color of drawn text
    • setFontColor

      public void setFontColor(RGBColorBean fontColor)
      Font-color of drawn text
    • isBold

      public boolean isBold()
      Whether to bold the drawn text
    • setBold

      public void setBold(boolean bold)
      Whether to bold the drawn text