当前位置: 首页>>代码示例>>Java>>正文


Java HorizontalAlignment.RIGHT属性代码示例

本文整理汇总了Java中org.apache.poi.ss.usermodel.HorizontalAlignment.RIGHT属性的典型用法代码示例。如果您正苦于以下问题:Java HorizontalAlignment.RIGHT属性的具体用法?Java HorizontalAlignment.RIGHT怎么用?Java HorizontalAlignment.RIGHT使用的例子?那么恭喜您, 这里精选的属性代码示例或许可以为您提供帮助。您也可以进一步了解该属性所在org.apache.poi.ss.usermodel.HorizontalAlignment的用法示例。


在下文中一共展示了HorizontalAlignment.RIGHT属性的5个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。

示例1: hAlignToPoi

public static HorizontalAlignment hAlignToPoi(HAlign hAlign) {
    switch (hAlign) {
    case ALIGN_LEFT:
        return HorizontalAlignment.LEFT;
    case ALIGN_RIGHT:
        return HorizontalAlignment.RIGHT;
    case ALIGN_CENTER:
        return HorizontalAlignment.CENTER;
    case ALIGN_JUSTIFY:
        return HorizontalAlignment.JUSTIFY;
    case ALIGN_AUTOMATIC:
        return HorizontalAlignment.GENERAL;
    default:
        throw new IllegalArgumentException();
    }
}
 
开发者ID:xzel23,项目名称:meja,代码行数:16,代码来源:PoiHelper.java

示例2: getCellAlignment

@Override
public HorizontalAlignment getCellAlignment(final String propId) {
    final Renderer<?> renderer = getRenderer(propId);
    if (renderer != null) {
        if (ExcelExport.isNumeric(renderer.getPresentationType())) {
            return HorizontalAlignment.RIGHT;
        }
    }
    return defaultAlignment;
}
 
开发者ID:TFyre,项目名称:vaadin-gridexport,代码行数:10,代码来源:DefaultGridHolder.java

示例3: getHorizontalAlignment

private HorizontalAlignment getHorizontalAlignment(TextAlignHolder alignment)
{
	switch (alignment.horizontalAlignment)
	{
		case RIGHT:
			return HorizontalAlignment.RIGHT;
		case CENTER:
			return HorizontalAlignment.CENTER;
		case JUSTIFIED:
			return HorizontalAlignment.JUSTIFY;
		case LEFT:
		default:
			return HorizontalAlignment.LEFT;
	}
}
 
开发者ID:TIBCOSoftware,项目名称:jasperreports,代码行数:15,代码来源:JRXlsExporter.java

示例4: getHorizontalAlignment

private HorizontalAlignment getHorizontalAlignment(TextAlignHolder alignment) {
	switch (alignment.horizontalAlignment) 
	{
		case RIGHT:
			return HorizontalAlignment.RIGHT;
		case CENTER:
			return HorizontalAlignment.CENTER;
		case JUSTIFIED:
			return HorizontalAlignment.JUSTIFY;
		case LEFT:
		default:
			return HorizontalAlignment.LEFT;
	}
}
 
开发者ID:TIBCOSoftware,项目名称:jasperreports,代码行数:14,代码来源:JRXlsMetadataExporter.java

示例5: getAlignment

private HorizontalAlignment getAlignment(TextAlignment alignment) {
	switch (alignment) {
	case LEFT:
		return HorizontalAlignment.LEFT;
	case RIGHT:
		return HorizontalAlignment.RIGHT;
	case CENTER:
		return HorizontalAlignment.CENTER;
	case JUSTIFY:
		return HorizontalAlignment.JUSTIFY;
	default:
		throw new IllegalArgumentException("Unknown alignment type: "
				+ alignment);
	}
}
 
开发者ID:apache,项目名称:metamodel,代码行数:15,代码来源:ExcelInsertBuilder.java


注:本文中的org.apache.poi.ss.usermodel.HorizontalAlignment.RIGHT属性示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。