yu.ac.bg.etf.javaqx.qswing.text
Class CharacterFormat

java.lang.Object
  extended byyu.ac.bg.etf.javaqx.qswing.text.CharacterFormat

public class CharacterFormat
extends java.lang.Object

Character Format.

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

Constructor Summary
CharacterFormat()
          Constructs new CharacterFormat object.
CharacterFormat(Color color)
          Constructs new CharacterFormat object.
CharacterFormat(Font font)
          Constructs new CharacterFormat object.
 
Method Summary
 Color getColor()
          Returns color.
 Font getFont()
          Returns font.
 boolean isFontBold()
          Returns true if the font is bold.
 void setColor(Color color)
          Sets color.
 void setFont(Font font)
          Sets font.
 void setFontBold(boolean fontBold)
          Sets whether or not the font is bold.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CharacterFormat

public CharacterFormat()
Constructs new CharacterFormat object.


CharacterFormat

public CharacterFormat(Font font)
Constructs new CharacterFormat object.

Parameters:
font - the font

CharacterFormat

public CharacterFormat(Color color)
Constructs new CharacterFormat object.

Parameters:
color - the color
Method Detail

getFont

public Font getFont()
Returns font.

Returns:
font.

setFont

public void setFont(Font font)
Sets font.

Parameters:
font - the font

isFontBold

public boolean isFontBold()
Returns true if the font is bold.

Returns:
true if the font is bold

setFontBold

public void setFontBold(boolean fontBold)
Sets whether or not the font is bold.

Parameters:
fontBold - true if bold

getColor

public Color getColor()
Returns color.

Returns:
color

setColor

public void setColor(Color color)
Sets color.

Parameters:
color - the color


Copyright © 2007 ETF and contributors. All Rights Reserved.