intarsys CWT library

de.intarsys.cwt.font
Class StandardFontRegistry

java.lang.Object
  extended by de.intarsys.cwt.font.StandardFontRegistry
All Implemented Interfaces:
IFontRegistry

public class StandardFontRegistry
extends Object
implements IFontRegistry


Constructor Summary
StandardFontRegistry()
           
 
Method Summary
 IFontFamily[] getFontFamilies()
          The IFontFamily instances formed by the IFont instances in this IFontRegistry.
 IFont[] getFonts()
          The IFont instances in this IFontRegistry.
 IFont lookupFont(IFontQuery query)
          The IFont selected by the IFontQuery.
 IFontFamily lookupFontFamily(IFontQuery query)
          The IFontFamily selected by the IFontQuery.
 void registerFont(IFont font)
          Add a new IFont to the IFontRegistry.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

StandardFontRegistry

public StandardFontRegistry()
Method Detail

getFontFamilies

public IFontFamily[] getFontFamilies()
Description copied from interface: IFontRegistry
The IFontFamily instances formed by the IFont instances in this IFontRegistry.

Specified by:
getFontFamilies in interface IFontRegistry
Returns:
The IFontFamily instances formed by the IFont instances in this IFontRegistry.

getFonts

public IFont[] getFonts()
Description copied from interface: IFontRegistry
The IFont instances in this IFontRegistry.

Specified by:
getFonts in interface IFontRegistry
Returns:
The IFont instances in this IFontRegistry.

lookupFont

public IFont lookupFont(IFontQuery query)
Description copied from interface: IFontRegistry
The IFont selected by the IFontQuery.

Specified by:
lookupFont in interface IFontRegistry
Parameters:
query - A IFontQuery describing a single IFont.
Returns:
The IFont selected by the IFontQuery.

lookupFontFamily

public IFontFamily lookupFontFamily(IFontQuery query)
Description copied from interface: IFontRegistry
The IFontFamily selected by the IFontQuery.

Specified by:
lookupFontFamily in interface IFontRegistry
Parameters:
query - A IFontQuery describing a single IFontFamily.
Returns:
The IFontFamily selected by the IFontQuery.

registerFont

public void registerFont(IFont font)
Description copied from interface: IFontRegistry
Add a new IFont to the IFontRegistry.

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

intarsys CWT library

Copyright © 2008 intarsys consulting GmbH. All Rights Reserved.