Package edu.wisc.game.formatter
Class Fmter
java.lang.Object
edu.wisc.game.formatter.Fmter
- Direct Known Subclasses:
HTMLFmter
Auxiliary class for formatting output as plain text of HTML.
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbr()brHtml()Generates a BR in HTML mode, and a space otherwise.final Stringfinal Stringfinal StringFont emphasis for texts that are "CHEETA inference"final Stringfinal Stringfinal Stringfinal Stringfinal Stringfinal Stringhr()hrThin()final StringGenerates a table row (a TR element).voidsetColor(boolean _color) This only affects HTML, not plain textfinal Stringspace()space(int n) final StringFont emphasis for text directly sourced from the rap sheetfinal Stringstyle()final StringGenerates a TABLE ...final Stringfinal Stringfinal Stringfinal Stringfinal Stringfinal Stringfinal String
-
Field Details
-
html
public boolean html -
color
public boolean color -
dummy
A dummy plain text formatter. This can be used whenever you want plain-text formatting
-
-
Constructor Details
-
Fmter
public Fmter()
-
-
Method Details
-
style
-
setColor
public void setColor(boolean _color) This only affects HTML, not plain text -
br
-
brHtml
Generates a BR in HTML mode, and a space otherwise. Handy for breaks in table headers. -
hr
-
hrThin
-
space
-
space
-
wrap
-
wrap
-
wrap2
-
wrap2
-
code
-
tt
-
em
-
strong
-
small
-
ei
Font emphasis for texts that are "CHEETA inference" -
src
Font emphasis for text directly sourced from the rap sheet -
button
-
para
-
paraEi
-
td
-
th
-
th
-
td
-
tr
-
table
Generates a TABLE ... /TABLE structure.- Parameters:
extra- E.g. "border=\"1\""rows- Each one is a TR ... /TR
-
table
-
h1
-
h2
-
h3
-
h4
-
h5
-
pre
-
a
-
a
-
colored
-
row
-
rowExtra
-
row
Generates a table row (a TR element).- Parameters:
cols- The content of columns (without the TD wrapping; the wrapping will be done in this method)
-
rowTh
-
rowTh
-
rowExtra
-
html
-
html2
-
sprintf
-