Public Member Functions

cern.gp.beans.editors.support.CachedFont Class Reference

List of all members.

Public Member Functions

 CachedFont (Font original)
Font getWithStyle (int style)
Font getOriginal ()

Detailed Description

A small helper class that caches derived fonts, instead of creating a new Font every time the method java.awt.Font#deriveFont(int) is called

Author:
Vito Baggiolini
Version:
Revision:
1.2

,

Date:
2006/09/25 08:52:36

,

Author:
acaproni
Since:
2.0.6

Constructor & Destructor Documentation

cern.gp.beans.editors.support.CachedFont.CachedFont ( Font  original  ) 

a constructor with the first font used, (must not be plain)

Parameters:
original,must be non-null

Member Function Documentation

Font cern.gp.beans.editors.support.CachedFont.getOriginal (  ) 
Returns:
Returns the original font passed in the constructor.
Font cern.gp.beans.editors.support.CachedFont.getWithStyle ( int  style  ) 

return a font with the style applied, such as defined in Font#getStyle()

Parameters:
style 
Returns:
a (cached) instance of the font

The documentation for this class was generated from the following file:
 All Classes Namespaces Files Functions Variables Enumerations Properties