Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | File List | Namespace Members | Class Members | File Members | Related Pages

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

List of all members.

Public Member Functions

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

Private Member Functions

final String getStyleKey (int style)

Private Attributes

final Font original
HashMap derivedFonts = new HashMap()

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  )  [inline]
 

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  )  [inline]
 

Returns:
Returns the original font passed in the constructor.

final String cern::gp::beans::editors::support::CachedFont::getStyleKey int  style  )  [inline, private]
 

Font cern::gp::beans::editors::support::CachedFont::getWithStyle int  style  )  [inline]
 

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

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


Member Data Documentation

HashMap cern::gp::beans::editors::support::CachedFont::derivedFonts = new HashMap() [private]
 

final Font cern::gp::beans::editors::support::CachedFont::original [private]
 


The documentation for this class was generated from the following file:
Generated on Thu Apr 30 03:08:17 2009 for ACS Java API by doxygen 1.3.8