intarsys CWT library

de.intarsys.cwt.font
Class FontFamily

java.lang.Object
  extended by de.intarsys.cwt.font.FontFamily
All Implemented Interfaces:
IFontFamily

public class FontFamily
extends Object
implements IFontFamily

An abstraction of a fonts family.


Constructor Summary
FontFamily(String name)
           
 
Method Summary
 String getFamilyName()
          for example
 IFont getFont(FontStyle style)
          The IFont within the family with a specific FontStyle or null.
 Iterator<IFont> getFontIterator()
           
 IFont[] getFonts()
          All IFont instances within this family.
 FontStyle[] getFontStyles()
          The supported FontStyle instances in this family.
 String getFontType()
          The font type.
 void registerFont(IFont font)
          Add a new IFont to this family.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FontFamily

public FontFamily(String name)
Method Detail

getFamilyName

public String getFamilyName()
Description copied from interface: IFontFamily
for example

Specified by:
getFamilyName in interface IFontFamily
Returns:
for example

getFont

public IFont getFont(FontStyle style)
Description copied from interface: IFontFamily
The IFont within the family with a specific FontStyle or null.

Specified by:
getFont in interface IFontFamily
Parameters:
style - The requested style.
Returns:
The IFont within the family with a specific FontStyle or null.

getFontIterator

public Iterator<IFont> getFontIterator()

getFonts

public IFont[] getFonts()
Description copied from interface: IFontFamily
All IFont instances within this family.

Specified by:
getFonts in interface IFontFamily
Returns:
All IFont instances within this family.

getFontStyles

public FontStyle[] getFontStyles()
Description copied from interface: IFontFamily
The supported FontStyle instances in this family.

Specified by:
getFontStyles in interface IFontFamily
Returns:
The supported FontStyle instances in this family.

getFontType

public String getFontType()
Description copied from interface: IFontFamily
The font type. This is for example "TrueType" or "Type1".

Specified by:
getFontType in interface IFontFamily
Returns:
The font type.

registerFont

public void registerFont(IFont font)
Description copied from interface: IFontFamily
Add a new IFont to this family.

Specified by:
registerFont in interface IFontFamily
Parameters:
font - The new IFont

intarsys CWT library

Copyright © 2008 intarsys consulting GmbH. All Rights Reserved.