public class TextCanvas extends TexturedRectangle
  • Field Details

    • FONT_CHAR_WIDTH

      public static final int FONT_CHAR_WIDTH
      Font character width in world coordinates.
      See Also:
    • FONT_CHAR_HEIGHT

      public static final int FONT_CHAR_HEIGHT
      Font character height in world coordinates.
      See Also:
    • FONT_CHAR_WIDTH_TEXTURE_PIXELS

      public static final int FONT_CHAR_WIDTH_TEXTURE_PIXELS
      Font character width in texture pixels.
      See Also:
    • FONT_CHAR_HEIGHT_TEXTURE_PIXELS

      public static final int FONT_CHAR_HEIGHT_TEXTURE_PIXELS
      Font character height in texture pixels.
      See Also:
    • FONT

      public static final Font FONT
  • Constructor Details

  • Method Details

    • getTextDimensions

      public static TextPointer getTextDimensions(String text)
    • beforeTransformHook

      public void beforeTransformHook(TransformsStack transformPipe, RenderingContext context)
      Description copied from class: AbstractCompositeShape
      This method should be overridden by anyone wanting to customize shape before it is rendered.
      Overrides:
      beforeTransformHook in class AbstractCompositeShape
    • clear

      public void clear()
    • getCharLocation

      public Point3D getCharLocation(int row, int column)
    • getSize

      public TextPointer getSize()
    • locate

      public void locate(int row, int column)
    • print

      public void print(String text)
    • putChar

      public void putChar(char character)
    • putChar

      public void putChar(int row, int column, char character)
    • putChar

      public void putChar(TextPointer location, char character)
    • setBackgroundColor

      public void setBackgroundColor(Color backgroundColor)
    • setForegroundColor

      public void setForegroundColor(Color foregroundColor)
    • setText

      public void setText(String text)
    • setTextColor

      public void setTextColor(Color color)