Changeset 115 for trunk/src/org/expeditee/actions/Actions.java
- Timestamp:
- 07/02/08 12:38:54 (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/expeditee/actions/Actions.java
r108 r115 56 56 57 57 // map lower case fonts to capitalized fonts 58 pr otectedstatic HashMap<String, String> _Fonts = new HashMap<String, String>();58 private static HashMap<String, String> _Fonts = new HashMap<String, String>(); 59 59 60 60 // maps lower case JAG class names to capitalized JAG names … … 670 670 public static String getCapitalizedFontName(String fontName) { 671 671 //Initialize the fonts if they have not already been loaded 672 initFonts(); 673 return _Fonts.get(fontName.toLowerCase()); 674 } 675 676 /** 677 * Initialise the fontsList if it has not been done already 678 */ 679 private static void initFonts() { 672 680 if (_Fonts.size() == 0) { 673 681 String[] availableFonts = GraphicsEnvironment … … 678 686 } 679 687 } 680 return _Fonts.get(fontName.toLowerCase()); 688 } 689 690 public static HashMap<String, String> getFonts(){ 691 initFonts(); 692 return _Fonts; 681 693 } 682 694 }
Note:
See TracChangeset
for help on using the changeset viewer.