Package com.illumon.iris.db.plot
Class Font
java.lang.Object
com.illumon.iris.db.plot.Font
- All Implemented Interfaces:
Serializable
public class Font extends Object implements Serializable
A font used to represent text.
- See Also:
- Serialized Form
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classFont.FontStyleStyle of font. -
Constructor Summary
-
Method Summary
Modifier and Type Method Description booleanequals(Object obj)static Fontfont(String family, Font.FontStyle style, int size)Returns a font.static Fontfont(String family, String style, int size)Returns a font.static String[]fontFamilyNames()Returns the names of available Font families.static Font.FontStylefontStyle(String style)Returns a font style.static String[]fontStyleNames()Returns the names of available font styles.inthashCode()FontjavaFont()Returns the Java object representative of this Font.Fontrefamily(String family)Returns an instance of this Font with the family changed to the specifiedfamilyFontresize(int size)Returns an instance of this Font with the size changed to the specifiedsizeFontrestyle(Font.FontStyle style)Gets an instance of this Font with the style changed to the specifiedstyleFontrestyle(String style)Returns an instance of this Font with the style changed to the specifiedstyleStringtoString()
-
Constructor Details
-
Font
Creates a new instance of the Font with the specifiedfamily,style, andsize.- Parameters:
family- font family; if null, set to Arialstyle- font style; if null, set toFont.FontStylePLAINsize- the point size of the Font
-
Font
Creates a new instance of the Font with the specifiedfamily,style, andsize.- Parameters:
family- font family; if null, set to Arialstyle- font style; if null, set toFont.FontStylePLAINsize- the point size of the Font
-
-
Method Details
-
fontStyle
Returns a font style.- Parameters:
style- case insensitive font style descriptor- Returns:
- FontStyle corresponding to
style - Throws:
IllegalArgumentException-stylemust not be null
-
fontStyleNames
Returns the names of available font styles.- Returns:
- array of available FontStyle names
-
toString
-
font
Returns a font.- Parameters:
family- font family; if null, set to Arialstyle- font style; if null, set toFont.FontStylePLAINsize- the point size of the Font- Returns:
- font with the specified family, style and size
-
font
Returns a font.- Parameters:
family- font family; if null, set to Arialstyle- font style; if null, set toFont.FontStylePLAINsize- the point size of the Font- Returns:
- font with the specified family, style and size
-
fontFamilyNames
Returns the names of available Font families.- Returns:
- array of available Font family names
-
refamily
Returns an instance of this Font with the family changed to the specifiedfamily- Parameters:
family- font family; if null, set to Arial- Returns:
- Font with
familyand this Font's style and size
-
restyle
Gets an instance of this Font with the style changed to the specifiedstyle- Parameters:
style- font style; if null, set toFont.FontStylePLAIN- Returns:
- Font with
styleand this Font's family and size
-
restyle
Returns an instance of this Font with the style changed to the specifiedstyle- Parameters:
style- font style; if null, set toFont.FontStylePLAIN- Returns:
- Font with
styleand this Font's family and size
-
resize
Returns an instance of this Font with the size changed to the specifiedsize- Parameters:
size- point size of the font- Returns:
- Font with
sizeand this Font's family and style
-
javaFont
Returns the Java object representative of this Font.- Returns:
- Java object representative of this Font
-
equals
-
hashCode
public int hashCode()
-