Package sc2002.FCS1.grp2.builders
Class Style
Object
Style
Build text that is styled with colour and attributes like bold, italic, etc.
Why settle for boring white on black, or black on white text? Use colour to express yourself!
Example:
new Style.Builder()
.text("Bold Text\n")
.bold()
.text("Italics")
.code(Style.Code.BACK_YELLOW)
.italic()
.text("Hello")
.add256Colour(50, true)
.code(Style.Code.TEXT_BLUE)
.text(" World")
.print(); // or .toString() if preferred.
- Author:
- Vincent Neo
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classThe fancy formatted text builder.static enumDefault ANSI Codes I will not write documentation for each case, as it's pretty self-explanatory based on the enum name. -
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
Style
public Style()
-