|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectde.muntjak.tinylookandfeel.util.ColoredFont
public class ColoredFont
ColoredFont describes a (mutable) font and an optional (text) color. The class is used to specify, for example, the font and text color used by buttons.
| Constructor Summary | |
|---|---|
ColoredFont()
Construcor for Plain Fonts without a color reference. |
|
ColoredFont(ColoredFont other)
Copy constructor. |
|
ColoredFont(SBReference ref)
Construcor for Plain Fonts. |
|
ColoredFont(java.lang.String fontFamily,
int style,
int size)
Constructs a new ColoredFont using the passed arguments. |
|
| Method Summary | |
|---|---|
javax.swing.plaf.FontUIResource |
getFont()
|
SBReference |
getSBReference()
|
boolean |
isBoldFont()
|
boolean |
isPlainFont()
|
void |
load(java.io.DataInputStream in)
|
static void |
loadDummyData(java.io.DataInputStream in)
|
void |
save(java.io.DataOutputStream out)
|
void |
setBoldFont(boolean b)
|
void |
setFont(java.awt.Font font)
|
void |
setFont(javax.swing.plaf.FontUIResource font)
|
void |
setFont(java.lang.String fontFamily,
int style,
int size)
|
void |
setPlainFont(boolean b)
|
void |
setSBReference(SBReference sbReference)
|
java.lang.String |
toString()
|
void |
update(ColoredFont other)
Sets up this ColoredFont to be identical to argument. |
void |
update(ColoredFont other,
java.util.Vector referenceColors)
|
void |
update(SBReference sbReference)
Updates a ColoredFont to be a Plain Font, |
void |
update(java.lang.String fontFamily,
int style,
int size)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public ColoredFont(ColoredFont other)
other -
public ColoredFont(java.lang.String fontFamily,
int style,
int size)
fontFamily - style - size - public ColoredFont()
public ColoredFont(SBReference ref)
ref - the color reference of this font| Method Detail |
|---|
public void update(java.lang.String fontFamily,
int style,
int size)
public void update(SBReference sbReference)
sbReference - public void update(ColoredFont other)
other -
public void update(ColoredFont other,
java.util.Vector referenceColors)
public void setPlainFont(boolean b)
public void setBoldFont(boolean b)
public boolean isPlainFont()
public boolean isBoldFont()
public void setFont(java.lang.String fontFamily,
int style,
int size)
public void setFont(java.awt.Font font)
public void setFont(javax.swing.plaf.FontUIResource font)
public javax.swing.plaf.FontUIResource getFont()
public SBReference getSBReference()
public void setSBReference(SBReference sbReference)
public void save(java.io.DataOutputStream out)
throws java.io.IOException
java.io.IOException
public void load(java.io.DataInputStream in)
throws java.io.IOException
java.io.IOException
public static void loadDummyData(java.io.DataInputStream in)
throws java.io.IOException
java.io.IOExceptionpublic java.lang.String toString()
toString in class java.lang.Object
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||