- All Known Implementing Classes:
StandardFontSource
public interface FontSource<K>
An object that supplies
Font
instances associated with
keys. This is used by the PiePlot3D
class to obtain section label
fonts for each data item(segment) in the chart. A default implementation
(StandardFontSource
) is provided.-
Method Summary
-
Method Details
-
getFont
Returns a font based on the supplied key.- Parameters:
key
- the key (null
not permitted).- Returns:
- A font (never
null
).
-
setFont
Sets the font associated with a key.- Parameters:
key
- the key (null
not permitted).font
- the font (null
not permitted).
-
style
Restyles the source using the specified font. Refer to the implementing class to confirm the precise behaviour (typically all existing font settings are cleared and this font is installed as the new default section label font).- Parameters:
font
- the font (null
not permitted).- Since:
- 1.2
-