use of jxl.write.WritableFont in project cubrid-manager by CUBRID.
the class BrokerLogTopMergeProgress method getSQLCell.
/**
* getSQLCell
*
* @return WritableCellFormat
*/
public static WritableCellFormat getSQLCell() {
// FIXME move this logic to core module
WritableFont font = new WritableFont(WritableFont.TIMES, 11);
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.getMessage(), e);
}
return format;
}
use of jxl.write.WritableFont in project cubrid-manager by CUBRID.
the class ExportTableDefinitionLayoutType method getNormalRightAlignCellStyle.
/**
* GetNormalRightAlignCellStyle
*
* @return
*/
public static WritableCellFormat getNormalRightAlignCellStyle() {
WritableFont font = new WritableFont(WritableFont.ARIAL, 10);
WritableCellFormat format = new WritableCellFormat(font);
try {
format.setAlignment(jxl.format.Alignment.RIGHT);
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 getNormalCenterAlignCellStyle.
/**
* GetNormalCell
*
* @return WritableCellFormat
*/
public static WritableCellFormat getNormalCenterAlignCellStyle() {
WritableFont font = new WritableFont(WritableFont.ARIAL, 10);
WritableCellFormat format = new WritableCellFormat(font);
try {
format.setAlignment(jxl.format.Alignment.CENTRE);
format.setVerticalAlignment(jxl.format.VerticalAlignment.CENTRE);
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 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;
}
Aggregations