jxl.write.WritableFont.FontName Java Examples

The following examples show how to use jxl.write.WritableFont.FontName. 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: ExcelFontMap.java    From hop with Apache License 2.0 6 votes vote down vote up
public static FontName getFontName( int transformValue ) {

    FontName headerFontName = WritableFont.ARIAL;
    switch ( transformValue ) {
      case ExcelOutputMeta.FONT_NAME_COURIER:
        headerFontName = WritableFont.COURIER;
        break;
      case ExcelOutputMeta.FONT_NAME_TAHOMA:
        headerFontName = WritableFont.TAHOMA;
        break;
      case ExcelOutputMeta.FONT_NAME_TIMES:
        headerFontName = WritableFont.TIMES;
        break;
      default:
        break;
    }

    return headerFontName;
  }
 
Example #2
Source File: ExcelFontMap.java    From pentaho-kettle with Apache License 2.0 6 votes vote down vote up
public static FontName getFontName( int stepValue ) {

    FontName headerFontName = WritableFont.ARIAL;
    switch ( stepValue ) {
      case ExcelOutputMeta.FONT_NAME_COURIER:
        headerFontName = WritableFont.COURIER;
        break;
      case ExcelOutputMeta.FONT_NAME_TAHOMA:
        headerFontName = WritableFont.TAHOMA;
        break;
      case ExcelOutputMeta.FONT_NAME_TIMES:
        headerFontName = WritableFont.TIMES;
        break;
      default:
        break;
    }

    return headerFontName;
  }
 
Example #3
Source File: ExcelCellFormat.java    From ctsms with GNU Lesser General Public License v2.1 5 votes vote down vote up
public ExcelCellFormat(FontName fontName, int fontSize, boolean bold,
		Color bgColor, boolean overrideFormat) {
	this.fontName = fontName;
	this.fontSize = fontSize;
	this.bold = bold;
	this.bgColor = bgColor;
	this.overrideFormat = overrideFormat;
	updateFont();
}
 
Example #4
Source File: ExcelCellFormat.java    From ctsms with GNU Lesser General Public License v2.1 4 votes vote down vote up
public FontName getFontName() {
	return fontName;
}
 
Example #5
Source File: ExcelCellFormat.java    From ctsms with GNU Lesser General Public License v2.1 4 votes vote down vote up
public void setFontName(FontName fontName) {
	this.fontName = fontName;
	updateFont();
}