Package com.csse3200.game.ui
Class TypographyFactory
java.lang.Object
com.csse3200.game.ui.TypographyFactory
Factory class for creating standardized typography using the Jersey10-Regular TTF font.
-
Method Summary
Modifier and TypeMethodDescriptionstatic 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
createParagraph
(String text) 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
createSubtitle
(String text) 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
createTitle
(String text) 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.
-
Method Details
-
createTitle
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 displaycolor
- The text color- Returns:
- A Label with title styling
-
createSubtitle
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 displaycolor
- The text color- Returns:
- A Label with subtitle styling
-
createParagraph
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 displaycolor
- The text color- Returns:
- A Label with paragraph styling
-
createCustomSize
Creates a label with custom font size.- Parameters:
text
- The text to displayfontSize
- 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 displayfontSize
- The font size in pixelscolor
- The text color- Returns:
- A Label with custom font size and color
-