yu.ac.bg.etf.javaqx.qswing.styles
Class CustomFontSet

java.lang.Object
  extended byyu.ac.bg.etf.javaqx.qswing.styles.FontSet
      extended byyu.ac.bg.etf.javaqx.qswing.styles.CustomFontSet

public class CustomFontSet
extends FontSet

Custom Font Set.

Version:
0.2.0
Author:
Slobodan Vrkacevic (slobodan.vrkacevic@gmail.com)

Field Summary
protected  Font buttonFont
           
protected  Font componentFont
           
protected  Font defaultFont
           
protected  Font fixedFont
           
protected  Font menuBarFont
           
protected  Font menuFont
           
protected  java.lang.String name
           
protected  Font textFont
           
protected  Font toolTipFont
           
 
Constructor Summary
CustomFontSet()
          Constructs new CustomFontSet object.
CustomFontSet(Font defaultFont)
          Constructs new CustomFontSet object.
CustomFontSet(java.lang.String name)
          Constructs new CustomFontSet object.
CustomFontSet(java.lang.String name, Font defaultFont)
          Constructs new CustomFontSet object.
 
Method Summary
 Font getButtonFont()
          Returns button font.
 Font getComponentFont()
          Returns component font.
 Font getDefaultFont()
          Returns default font.
 Font getFixedFont()
          Returns fixed font.
 Font getMenuBarFont()
          Returns menu bar font.
 Font getMenuFont()
          Returns menu font.
 java.lang.String getName()
          Returns the name of the font set.
 Font getTextFont()
          Returns text font.
 Font getToolTipFont()
          Returns tool tip font.
 int hashCode()
          
 void setButtonFont(Font buttonFont)
          Sets button font.
 void setComponentFont(Font componentFont)
          Sets component font.
 void setDefaultFont(Font defaultFont)
          Sets default font.
 void setFixedFont(Font fixedFont)
          Sets fixed font.
 void setMenuBarFont(Font menuBarFont)
          Sets menu bar font.
 void setMenuFont(Font menuFont)
          Sets menu font.
 void setTextFont(Font textFont)
          Sets text font.
 void setToolTipFont(Font toolTipFont)
          Sets tool tip font.
 
Methods inherited from class yu.ac.bg.etf.javaqx.qswing.styles.FontSet
equals, toString
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

name

protected java.lang.String name

defaultFont

protected Font defaultFont

fixedFont

protected Font fixedFont

componentFont

protected Font componentFont

buttonFont

protected Font buttonFont

menuFont

protected Font menuFont

menuBarFont

protected Font menuBarFont

textFont

protected Font textFont

toolTipFont

protected Font toolTipFont
Constructor Detail

CustomFontSet

public CustomFontSet()
Constructs new CustomFontSet object.


CustomFontSet

public CustomFontSet(java.lang.String name)
Constructs new CustomFontSet object.

Parameters:
name - the name

CustomFontSet

public CustomFontSet(Font defaultFont)
Constructs new CustomFontSet object.

Parameters:
defaultFont - the default font

CustomFontSet

public CustomFontSet(java.lang.String name,
                     Font defaultFont)
Constructs new CustomFontSet object.

Parameters:
name - the name
defaultFont - the default font
Method Detail

setDefaultFont

public void setDefaultFont(Font defaultFont)
Sets default font.

Parameters:
defaultFont - the default font

setFixedFont

public void setFixedFont(Font fixedFont)
Sets fixed font.

Parameters:
fixedFont - the fixed font

setComponentFont

public void setComponentFont(Font componentFont)
Sets component font.

Parameters:
componentFont - the component font

setButtonFont

public void setButtonFont(Font buttonFont)
Sets button font.

Parameters:
buttonFont - the button font

setMenuFont

public void setMenuFont(Font menuFont)
Sets menu font.

Parameters:
menuFont - the menu font

setMenuBarFont

public void setMenuBarFont(Font menuBarFont)
Sets menu bar font.

Parameters:
menuBarFont - the menu bar font

setTextFont

public void setTextFont(Font textFont)
Sets text font.

Parameters:
textFont - the text font

setToolTipFont

public void setToolTipFont(Font toolTipFont)
Sets tool tip font.

Parameters:
toolTipFont - the tool tip font

hashCode

public int hashCode()

Overrides:
hashCode in class FontSet

getName

public java.lang.String getName()
Returns the name of the font set.

Specified by:
getName in class FontSet
Returns:
the name of the font set

getDefaultFont

public Font getDefaultFont()
Returns default font.

Specified by:
getDefaultFont in class FontSet
Returns:
default font

getFixedFont

public Font getFixedFont()
Returns fixed font.

Specified by:
getFixedFont in class FontSet
Returns:
fixed font

getComponentFont

public Font getComponentFont()
Returns component font.

Specified by:
getComponentFont in class FontSet
Returns:
component font

getButtonFont

public Font getButtonFont()
Returns button font.

Specified by:
getButtonFont in class FontSet
Returns:
button font

getMenuFont

public Font getMenuFont()
Returns menu font.

Specified by:
getMenuFont in class FontSet
Returns:
menu font

getMenuBarFont

public Font getMenuBarFont()
Returns menu bar font.

Specified by:
getMenuBarFont in class FontSet
Returns:
menu bar font

getTextFont

public Font getTextFont()
Returns text font.

Specified by:
getTextFont in class FontSet
Returns:
text font

getToolTipFont

public Font getToolTipFont()
Returns tool tip font.

Specified by:
getToolTipFont in class FontSet
Returns:
tool tip font


Copyright © 2007 ETF and contributors. All Rights Reserved.