use of jxl.write.WritableFont in project cubrid-manager by CUBRID.
the class ExportTableDefinitionLayoutType method getNormalLeftAlignCellStyle.
/**
* GetNormalLeftAlignCellStyle
*
* @return WritableCellFormat
*/
public static WritableCellFormat getNormalLeftAlignCellStyle() {
WritableFont font = new WritableFont(WritableFont.ARIAL, 10);
WritableCellFormat format = new WritableCellFormat(font);
try {
format.setAlignment(jxl.format.Alignment.LEFT);
format.setVerticalAlignment(jxl.format.VerticalAlignment.TOP);
format.setBorder(Border.ALL, BorderLineStyle.THIN, Colour.BLACK);
format.setWrap(true);
} catch (WriteException e) {
LOGGER.error("", e);
}
return format;
}
use of jxl.write.WritableFont in project cubrid-manager by CUBRID.
the class ExportTableDefinitionLayoutType method getBoldCenterAlignCellStyle.
/**
* GetNormalCell
*
* @return WritableCellFormat
*/
public static WritableCellFormat getBoldCenterAlignCellStyle() {
WritableFont font = new WritableFont(WritableFont.ARIAL, 10);
WritableCellFormat format = new WritableCellFormat(font);
try {
font.setBoldStyle(WritableFont.BOLD);
format.setAlignment(jxl.format.Alignment.CENTRE);
format.setVerticalAlignment(jxl.format.VerticalAlignment.CENTRE);
format.setBorder(Border.ALL, BorderLineStyle.THIN, Colour.BLACK);
format.setBackground(jxl.format.Colour.GREY_25_PERCENT);
format.setWrap(true);
} catch (WriteException e) {
LOGGER.error("", e);
}
return format;
}
use of jxl.write.WritableFont in project cubrid-manager by CUBRID.
the class RunSQLEventHandler method getNormalCell.
/**
* Return the normal cell format.
*
* @return WritableCellFormat
*/
public static WritableCellFormat getNormalCell() {
// FIXME logic code move to core module
WritableFont font = new WritableFont(WritableFont.TIMES, 12);
WritableCellFormat format = new WritableCellFormat(font);
try {
format.setAlignment(jxl.format.Alignment.LEFT);
format.setVerticalAlignment(jxl.format.VerticalAlignment.CENTRE);
format.setBorder(Border.ALL, BorderLineStyle.THIN, Colour.BLACK);
format.setWrap(true);
} catch (WriteException e) {
LOGGER.error(e.getMessage(), e);
}
return format;
}
Aggregations