public class TextStyle
extends java.lang.Object
implements java.io.Serializable
Constructor and Description |
---|
TextStyle(float fontSize) |
TextStyle(float fontSize,
boolean bold,
boolean italic) |
Modifier and Type | Method and Description |
---|---|
TextStyle |
deriveBoldStyle(boolean bold)
Returns a derived style of this text style with a given bold style.
|
TextStyle |
deriveItalicStyle(boolean italic)
Returns a derived style of this text style with a given italic style.
|
TextStyle |
deriveStyle(float fontSize)
Returns a derived style of this text style with a given font size.
|
boolean |
equals(java.lang.Object object)
Returns
true if this text style is equal to object . |
float |
getFontSize()
Returns the font size of this text style.
|
int |
hashCode()
Returns a hash code for this text style.
|
boolean |
isBold()
Returns whether this text style is bold or not.
|
boolean |
isItalic()
Returns whether this text style is italic or not.
|
public TextStyle(float fontSize)
public TextStyle(float fontSize, boolean bold, boolean italic)
public float getFontSize()
public boolean isBold()
public boolean isItalic()
public TextStyle deriveStyle(float fontSize)
public TextStyle deriveBoldStyle(boolean bold)
public TextStyle deriveItalicStyle(boolean italic)
public boolean equals(java.lang.Object object)
true
if this text style is equal to object
.equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
© Copyrights 2006-2014 eTeks - All rights reserved
Distributed under GNU General Public License