Java Code Examples for java.awt.Container#getFont()

The following examples show how to use java.awt.Container#getFont() . You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: FontManipulation.java    From pcgen with GNU Lesser General Public License v2.1 2 votes vote down vote up
/**
 * For extra large font.
 * 
 * @param container
 *            element to change the font of
 */
public static void xxlarge(Container container)
{
	Font font = container.getFont();
	container.setFont(xxlarge(font));
}
 
Example 2
Source File: FontManipulation.java    From pcgen with GNU Lesser General Public License v2.1 2 votes vote down vote up
/**
 * For large font.
 * 
 * @param container
 *            element to change the font of
 */
public static void large(Container container)
{
	Font font = container.getFont();
	container.setFont(large(font));
}
 
Example 3
Source File: FontManipulation.java    From pcgen with GNU Lesser General Public License v2.1 2 votes vote down vote up
/**
 * Change font of container for a bit smaller font.
 * 
 * @param container
 *            element to change font size of
 */
public static void small(Container container)
{
	Font font = container.getFont();
	container.setFont(small(font));
}
 
Example 4
Source File: FontManipulation.java    From pcgen with GNU Lesser General Public License v2.1 2 votes vote down vote up
/**
 * For extra smaller font.
 * 
 * @param container
 *            element to change the font of
 */
public static void xsmall(Container container)
{
	Font font = container.getFont();
	container.setFont(xsmall(font));
}
 
Example 5
Source File: FontManipulation.java    From pcgen with GNU Lesser General Public License v2.1 2 votes vote down vote up
/**
 * For extra large font.
 * 
 * @param container
 *            element to change the font of
 */
public static void xxlarge(Container container)
{
	Font font = container.getFont();
	container.setFont(xxlarge(font));
}
 
Example 6
Source File: FontManipulation.java    From pcgen with GNU Lesser General Public License v2.1 2 votes vote down vote up
/**
 * For large font.
 * 
 * @param container
 *            element to change the font of
 */
public static void large(Container container)
{
	Font font = container.getFont();
	container.setFont(large(font));
}
 
Example 7
Source File: FontManipulation.java    From pcgen with GNU Lesser General Public License v2.1 2 votes vote down vote up
/**
 * Change font of container for a bit smaller font.
 * 
 * @param container
 *            element to change font size of
 */
public static void small(Container container)
{
	Font font = container.getFont();
	container.setFont(small(font));
}
 
Example 8
Source File: FontManipulation.java    From pcgen with GNU Lesser General Public License v2.1 2 votes vote down vote up
/**
 * For extra smaller font.
 * 
 * @param container
 *            element to change the font of
 */
public static void xsmall(Container container)
{
	Font font = container.getFont();
	container.setFont(xsmall(font));
}