thinwire.ui.style
Class Font

java.lang.Object
  extended by thinwire.ui.style.Font

public class Font
extends java.lang.Object


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

Field Detail

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
Method Detail

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)


ThinWire® is a registered of Custom Credit Systems  Copyright © 2007 All rights reserved.
ThinWire_is_Open_Source_under_the_terms_of_the_LGPLv2.1 SourceForge.net_Project_Page java.net_Member Support_ThinWire,_Digg_our_Story