Ignore:
Timestamp:
07/02/08 12:38:54 (16 years ago)
Author:
ra33
Message:

added functionality for dockable @v's

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/expeditee/actions/Actions.java

    r108 r115  
    5656
    5757        // map lower case fonts to capitalized fonts
    58         protected static HashMap<String, String> _Fonts = new HashMap<String, String>();
     58        private static HashMap<String, String> _Fonts = new HashMap<String, String>();
    5959
    6060        // maps lower case JAG class names to capitalized JAG names
     
    670670        public static String getCapitalizedFontName(String fontName) {
    671671                //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() {
    672680                if (_Fonts.size() == 0) {
    673681                        String[] availableFonts = GraphicsEnvironment
     
    678686                        }
    679687                }
    680                 return _Fonts.get(fontName.toLowerCase());
     688        }
     689       
     690        public static HashMap<String, String> getFonts(){
     691                initFonts();
     692                return _Fonts;
    681693        }
    682694}
Note: See TracChangeset for help on using the changeset viewer.