Class T

java.lang.Object
drawing.letters.alphabet.T
All Implemented Interfaces:
Letter

public class T extends Object implements Letter
This is the object "T" which implements the Letter class.
Since:
2023
  • Constructor Summary

    Constructors
    Constructor
    Description
    T()
    The constructor assigns the letter "T" to character.
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    Draw method which takes in an integer to call the offset method.
    void
    draw(int offset)
    Draw method which takes in an integer to call the offset method.
    char
    This returns the character.
    void
    offset(int offset)
    Offset method which takes in an integer and is required in drawing the letter at the correct Horizontal axis.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • T

      public T()
      The constructor assigns the letter "T" to character.
  • Method Details

    • draw

      public void draw()
      Draw method which takes in an integer to call the offset method.
      Specified by:
      draw in interface Letter
    • draw

      public void draw(int offset)
      Draw method which takes in an integer to call the offset method.
      Specified by:
      draw in interface Letter
      Parameters:
      offset - drawing offset
    • offset

      public void offset(int offset)
      Offset method which takes in an integer and is required in drawing the letter at the correct Horizontal axis.
      Specified by:
      offset in interface Letter
      Parameters:
      offset - drawing offset
    • getChar

      public char getChar()
      This returns the character.
      Specified by:
      getChar in interface Letter
      Returns:
      char