Skip to end of metadata
Go to start of metadata

Description

The FontJiggler plugin provides a Font API for Swing components within Griffon applications. Currently, all AWT based components are supported (such as Swing components).

Installation

The current version of FontJiggler is 0.2
To install just issue the following command:

Usage

The FontJiggler adds several methods to Swing and AWT components :

Increases the current font of the component by two points, until a maximum of 96 points is reached.

Decreases the current font of the component by two points, until a minimum of 6 points is reached.

Increases or decreases the current font of the component by the specified number, until a minimum of 6 points or maximum of 96 is reached. To decrease the font pass a negative number.

Scales the current font of the component up or down by the specified ratio, until a minimum of 6 points or maximum of 96 is reached. To decrease the font pass a negative number.

You can call these methods within your model, view or controller. One easy way to provide increase font/decrease font buttons is to bind button actions to these methods:

Example

The FontJiggler plugin is used by the open source easy-translate application: http://code.google.com/p/easy-translate/

  • No labels