Class TypographyFactory

java.lang.Object
com.csse3200.game.ui.TypographyFactory

public class TypographyFactory extends Object
Factory class for creating standardized typography using the Jersey10-Regular TTF font.
  • Method Summary

    Modifier and Type
    Method
    Description
    static com.badlogic.gdx.scenes.scene2d.ui.Label
    createCustomSize(String text, int fontSize)
    Creates a label with custom font size.
    static com.badlogic.gdx.scenes.scene2d.ui.Label
    createCustomSize(String text, int fontSize, com.badlogic.gdx.graphics.Color color)
    Creates a label with custom font size and color.
    static com.badlogic.gdx.scenes.scene2d.ui.Label
    Creates a paragraph label with standard text size.
    static com.badlogic.gdx.scenes.scene2d.ui.Label
    createParagraph(String text, com.badlogic.gdx.graphics.Color color)
    Creates a paragraph label with standard text size and custom color.
    static com.badlogic.gdx.scenes.scene2d.ui.Label
    Creates a subtitle label with medium text size.
    static com.badlogic.gdx.scenes.scene2d.ui.Label
    createSubtitle(String text, com.badlogic.gdx.graphics.Color color)
    Creates a subtitle label with medium text size and custom color.
    static com.badlogic.gdx.scenes.scene2d.ui.Label
    Creates a title label with large text size.
    static com.badlogic.gdx.scenes.scene2d.ui.Label
    createTitle(String text, com.badlogic.gdx.graphics.Color color)
    Creates a title label with large text size and custom color.

    Methods inherited from class java.lang.Object

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

    • createTitle

      public static com.badlogic.gdx.scenes.scene2d.ui.Label createTitle(String text)
      Creates a title label with large text size.
      Parameters:
      text - The text to display
      Returns:
      A Label with title styling
    • createTitle

      public static com.badlogic.gdx.scenes.scene2d.ui.Label createTitle(String text, com.badlogic.gdx.graphics.Color color)
      Creates a title label with large text size and custom color.
      Parameters:
      text - The text to display
      color - The text color
      Returns:
      A Label with title styling
    • createSubtitle

      public static com.badlogic.gdx.scenes.scene2d.ui.Label createSubtitle(String text)
      Creates a subtitle label with medium text size.
      Parameters:
      text - The text to display
      Returns:
      A Label with subtitle styling
    • createSubtitle

      public static com.badlogic.gdx.scenes.scene2d.ui.Label createSubtitle(String text, com.badlogic.gdx.graphics.Color color)
      Creates a subtitle label with medium text size and custom color.
      Parameters:
      text - The text to display
      color - The text color
      Returns:
      A Label with subtitle styling
    • createParagraph

      public static com.badlogic.gdx.scenes.scene2d.ui.Label createParagraph(String text)
      Creates a paragraph label with standard text size.
      Parameters:
      text - The text to display
      Returns:
      A Label with paragraph styling
    • createParagraph

      public static com.badlogic.gdx.scenes.scene2d.ui.Label createParagraph(String text, com.badlogic.gdx.graphics.Color color)
      Creates a paragraph label with standard text size and custom color.
      Parameters:
      text - The text to display
      color - The text color
      Returns:
      A Label with paragraph styling
    • createCustomSize

      public static com.badlogic.gdx.scenes.scene2d.ui.Label createCustomSize(String text, int fontSize)
      Creates a label with custom font size.
      Parameters:
      text - The text to display
      fontSize - The font size in pixels
      Returns:
      A Label with custom font size
    • createCustomSize

      public static com.badlogic.gdx.scenes.scene2d.ui.Label createCustomSize(String text, int fontSize, com.badlogic.gdx.graphics.Color color)
      Creates a label with custom font size and color.
      Parameters:
      text - The text to display
      fontSize - The font size in pixels
      color - The text color
      Returns:
      A Label with custom font size and color