thinwire.ui.style
Class Font
java.lang.Object
thinwire.ui.style.Font
public class Font
- extends java.lang.Object
Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
PROPERTY_FONT_FAMILY
public static final java.lang.String PROPERTY_FONT_FAMILY
- See Also:
- Constant Field Values
PROPERTY_FONT_COLOR
public static final java.lang.String PROPERTY_FONT_COLOR
- See Also:
- Constant Field Values
PROPERTY_FONT_SIZE
public static final java.lang.String PROPERTY_FONT_SIZE
- See Also:
- Constant Field Values
PROPERTY_FONT_BOLD
public static final java.lang.String PROPERTY_FONT_BOLD
- See Also:
- Constant Field Values
PROPERTY_FONT_ITALIC
public static final java.lang.String PROPERTY_FONT_ITALIC
- See Also:
- Constant Field Values
PROPERTY_FONT_UNDERLINE
public static final java.lang.String PROPERTY_FONT_UNDERLINE
- See Also:
- Constant Field Values
PROPERTY_FONT_STRIKE
public static final java.lang.String PROPERTY_FONT_STRIKE
- See Also:
- Constant Field Values
toString
public java.lang.String toString()
- Overrides:
toString
in class java.lang.Object
hashCode
public int hashCode()
- Overrides:
hashCode
in class java.lang.Object
equals
public boolean equals(java.lang.Object o)
- Overrides:
equals
in class java.lang.Object
getStringWidth
public int getStringWidth(java.lang.String s)
getStringHeight
public int getStringHeight(java.lang.String s)
copy
public void copy(Font font)
copy
public void copy(Font font,
boolean onlyIfDefault)
setProperty
public void setProperty(java.lang.String name,
java.lang.Object value)
getProperty
public java.lang.Object getProperty(java.lang.String name)
getParent
public Style getParent()
getFamily
public Font.Family getFamily()
setFamily
public void setFamily(Font.Family family)
getColor
public Color getColor()
setColor
public void setColor(Color color)
getSize
public double getSize()
setSize
public void setSize(double size)
isBold
public boolean isBold()
setBold
public void setBold(boolean bold)
isItalic
public boolean isItalic()
setItalic
public void setItalic(boolean italic)
isUnderline
public boolean isUnderline()
setUnderline
public void setUnderline(boolean underline)
isStrike
public boolean isStrike()
setStrike
public void setStrike(boolean strike)