public final class TextStyle extends Object
Constructor and Description |
---|
TextStyle(String name,
String fontName,
double fontSize,
boolean bold,
boolean italic)
Initializes a new instance of the
TextStyle class. |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object o) |
String |
getFontName()
Gets the font name.
|
double |
getFontSize()
Gets the font size.
|
String |
getName()
Gets the style name.
|
int |
hashCode() |
boolean |
isBold()
Gets the value that indicates whether the font is bold.
|
boolean |
isItalic()
Gets the value that indicates whether the font is italic.
|
public TextStyle(String name, String fontName, double fontSize, boolean bold, boolean italic)
TextStyle
class.name
- The name of the style.fontName
- The name of the font.fontSize
- The size of the font.bold
- The value that indicates whether the font is bold.italic
- The value that indicates whether the font is italic.public String getName()
public String getFontName()
public double getFontSize()
public boolean isBold()
true
if the font is bold; otherwise, false
.public boolean isItalic()
true
if the font is italic; otherwise, false
.