com.jrefinery.report.resources
Class JFreeReportResources

java.lang.Object
  |
  +--java.util.ResourceBundle
        |
        +--java.util.ListResourceBundle
              |
              +--com.jrefinery.report.resources.JFreeReportResources
Direct Known Subclasses:
JFreeReportResources_de, JFreeReportResources_es, JFreeReportResources_fr, JFreeReportResources_hu, JFreeReportResources_nl, JFreeReportResources_pl, JFreeReportResources_ru, JFreeReportResources_si, JFreeReportResources_sv

public class JFreeReportResources
extends java.util.ListResourceBundle

English language resources.

Author:
Thomas Morgner

Field Summary
 
Fields inherited from class java.util.ResourceBundle
parent
 
Constructor Summary
JFreeReportResources()
          Default constructor.
 
Method Summary
protected static javax.swing.KeyStroke createMenuKeystroke(int character)
          Creates a platform independed menu keystroke for the given character.
static java.awt.image.BufferedImage createTransparentImage(int width, int height)
          Creates a transparent image.
 java.lang.Object[][] getContents()
          Returns an array of localised resources.
static javax.swing.ImageIcon getIcon(java.lang.String filename)
          Attempts to load an image from classpath.
static void main(java.lang.String[] args)
          Used to test the resourcebundle for null values.
 void printAll()
          Prints all defined resource bundle keys and their assigned values.
 
Methods inherited from class java.util.ListResourceBundle
getKeys, handleGetObject
 
Methods inherited from class java.util.ResourceBundle
getBundle, getBundle, getBundle, getLocale, getObject, getString, getStringArray, setParent
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JFreeReportResources

public JFreeReportResources()
Default constructor.

Method Detail

main

public static void main(java.lang.String[] args)
Used to test the resourcebundle for null values.

Parameters:
args - ignored.

getContents

public java.lang.Object[][] getContents()
Returns an array of localised resources.

Specified by:
getContents in class java.util.ListResourceBundle
Returns:
an array of localised resources.

printAll

public void printAll()
Prints all defined resource bundle keys and their assigned values.


createTransparentImage

public static java.awt.image.BufferedImage createTransparentImage(int width,
                                                                  int height)
Creates a transparent image. These can be used for aligning menu items.

Parameters:
width - the width.
height - the height.
Returns:
the image.

getIcon

public static javax.swing.ImageIcon getIcon(java.lang.String filename)
Attempts to load an image from classpath. If this fails, an empty image icon is returned.

Parameters:
filename - the file name.
Returns:
the image icon.

createMenuKeystroke

protected static final javax.swing.KeyStroke createMenuKeystroke(int character)
Creates a platform independed menu keystroke for the given character.

Parameters:
character - the keystroke character
Returns:
the generated keystroke object.