Beispiel #1
0
 public void populateFontMap() {
   fontMap.put("COURIER", new Font(FontFactory.getFont("Times-Roman", Font.BOLD).getBaseFont()));
   fontMap.put(
       "COURIER", new Font(FontFactory.getFont("Times-Roman", Font.BOLDITALIC).getBaseFont()));
   fontMap.put(
       "COURIER", new Font(FontFactory.getFont("Times-Roman", Font.DEFAULTSIZE).getBaseFont()));
   fontMap.put(
       "COURIER", new Font(FontFactory.getFont("Times-Roman", Font.STRIKETHRU).getBaseFont()));
   fontMap.put("COURIER", new Font(FontFactory.getFont("Times-Roman", Font.NORMAL).getBaseFont()));
   fontMap.put(
       "COURIER", new Font(FontFactory.getFont("Times-Roman", Font.UNDEFINED).getBaseFont()));
   fontMap.put(
       "COURIER", new Font(FontFactory.getFont("Times-Roman", Font.UNDERLINE).getBaseFont()));
 }
Beispiel #2
0
 public void populateColorMap() {
   colorMap.put("WHITE", BaseColor.WHITE);
   colorMap.put("YELLOW", BaseColor.YELLOW);
   colorMap.put("BLACK", BaseColor.BLACK);
   colorMap.put("BLUE", BaseColor.BLUE);
   colorMap.put("CYAN", BaseColor.CYAN);
   colorMap.put("DARK_GRAY", BaseColor.DARK_GRAY);
   colorMap.put("GRAY", BaseColor.GRAY);
   colorMap.put("GREEN", BaseColor.GREEN);
   colorMap.put("LIGHT_GRAY", BaseColor.LIGHT_GRAY);
   colorMap.put("MAGENTA", BaseColor.MAGENTA);
   colorMap.put("ORANGE", BaseColor.ORANGE);
   colorMap.put("PINK", BaseColor.PINK);
   colorMap.put("RED", BaseColor.RED);
   colorMap.put("PINK", BaseColor.PINK);
 }