Class UFont
java.lang.Object
net.sourceforge.plantuml.ugraphic.UFont
public class UFont
extends java.lang.Object
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbold()
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
int
getStyle()
final java.awt.Font
goTikz
(int delta) int
hashCode()
boolean
isBold()
boolean
isItalic()
italic()
static UFont
monospaced
(int size) static UFont
sansSerif
(int size) static UFont
serif
(int size) java.lang.String
toString()
java.lang.String
withSize
(float size) withStyle
(int style) Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Constructor Details
-
UFont
public UFont(java.lang.String fontFamily, int fontStyle, int fontSize)
-
-
Method Details
-
toStringDebug
public java.lang.String toStringDebug() -
serif
-
sansSerif
-
courier
-
byDefault
-
goTikz
-
monospaced
-
getUnderlayingFont
public final java.awt.Font getUnderlayingFont() -
withSize
-
withStyle
-
bold
-
italic
-
getStyle
public int getStyle() -
getSize
public int getSize() -
getSize2D
public double getSize2D() -
isBold
public boolean isBold() -
isItalic
public boolean isItalic() -
getFamily
-
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
-