Class UFont
- java.lang.Object
-
- net.sourceforge.plantuml.ugraphic.UFont
-
public class UFont extends java.lang.Object
-
-
Constructor Summary
Constructors Constructor Description UFont(java.lang.String fontFamily, int fontStyle, int fontSize)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description UFont
bold()
static UFont
byDefault(int size)
static UFont
courier(int size)
boolean
equals(java.lang.Object obj)
java.lang.String
getFamily(UFontContext context)
int
getSize()
double
getSize2D()
int
getStyle()
java.awt.Font
getUnderlayingFont()
UFont
goTikz(int delta)
int
hashCode()
boolean
isBold()
boolean
isItalic()
UFont
italic()
static UFont
monospaced(int size)
static UFont
sansSerif(int size)
static UFont
serif(int size)
java.lang.String
toString()
java.lang.String
toStringDebug()
UFont
withSize(float size)
UFont
withStyle(int style)
-
-
-
Method Detail
-
toStringDebug
public java.lang.String toStringDebug()
-
serif
public static UFont serif(int size)
-
sansSerif
public static UFont sansSerif(int size)
-
courier
public static UFont courier(int size)
-
byDefault
public static UFont byDefault(int size)
-
goTikz
public UFont goTikz(int delta)
-
monospaced
public static UFont monospaced(int size)
-
getUnderlayingFont
public final java.awt.Font getUnderlayingFont()
-
withSize
public UFont withSize(float size)
-
withStyle
public UFont withStyle(int style)
-
bold
public UFont bold()
-
italic
public UFont italic()
-
getStyle
public int getStyle()
-
getSize
public int getSize()
-
getSize2D
public double getSize2D()
-
isBold
public boolean isBold()
-
isItalic
public boolean isItalic()
-
getFamily
public java.lang.String getFamily(UFontContext context)
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classjava.lang.Object
-
equals
public boolean equals(java.lang.Object obj)
- Overrides:
equals
in classjava.lang.Object
-
-