本文整理汇总了Java中ro.nextreports.engine.chart.ChartType.STYLE_BAR_CYLINDER属性的典型用法代码示例。如果您正苦于以下问题:Java ChartType.STYLE_BAR_CYLINDER属性的具体用法?Java ChartType.STYLE_BAR_CYLINDER怎么用?Java ChartType.STYLE_BAR_CYLINDER使用的例子?那么, 这里精选的属性代码示例或许可以为您提供帮助。您也可以进一步了解该属性所在类ro.nextreports.engine.chart.ChartType
的用法示例。
在下文中一共展示了ChartType.STYLE_BAR_CYLINDER属性的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: getStyle
private byte getStyle(String style) {
if (STYLE_BAR_GLASS.equals(style)) {
return ChartType.STYLE_BAR_GLASS;
} else if (STYLE_BAR_CYLINDER.equals(style)) {
return ChartType.STYLE_BAR_CYLINDER;
} else if (STYLE_BAR_PARALLELIPIPED.equals(style)) {
return ChartType.STYLE_BAR_PARALLELIPIPED;
} else if (STYLE_BAR_DOME.equals(style)) {
return ChartType.STYLE_BAR_DOME;
} else if (STYLE_LINE_DOT_SOLID.equals(style)) {
return ChartType.STYLE_LINE_DOT_SOLID;
} else if (STYLE_LINE_DOT_HOLLOW.equals(style)) {
return ChartType.STYLE_LINE_DOT_HOLLOW;
} else if (STYLE_LINE_DOT_ANCHOR.equals(style)) {
return ChartType.STYLE_LINE_DOT_ANCHOR;
} else if (STYLE_LINE_DOT_BOW.equals(style)) {
return ChartType.STYLE_LINE_DOT_BOW;
} else if (STYLE_LINE_DOT_STAR.equals(style)) {
return ChartType.STYLE_LINE_DOT_STAR;
} else {
return ChartType.STYLE_NORMAL;
}
}
示例2: setStyle
private void setStyle(byte style, Property styleProp) {
String styleS;
switch (style) {
case ChartType.STYLE_BAR_GLASS:
styleS = STYLE_BAR_GLASS;
break;
case ChartType.STYLE_BAR_CYLINDER:
styleS = STYLE_BAR_CYLINDER;
break;
case ChartType.STYLE_BAR_PARALLELIPIPED:
styleS = STYLE_BAR_PARALLELIPIPED;
break;
case ChartType.STYLE_BAR_DOME:
styleS = STYLE_BAR_DOME;
break;
case ChartType.STYLE_LINE_DOT_SOLID:
styleS = STYLE_LINE_DOT_SOLID;
break;
case ChartType.STYLE_LINE_DOT_HOLLOW:
styleS = STYLE_LINE_DOT_HOLLOW;
break;
case ChartType.STYLE_LINE_DOT_ANCHOR:
styleS = STYLE_LINE_DOT_ANCHOR;
break;
case ChartType.STYLE_LINE_DOT_BOW:
styleS = STYLE_LINE_DOT_BOW;
break;
case ChartType.STYLE_LINE_DOT_STAR:
styleS = STYLE_LINE_DOT_STAR;
break;
default:
styleS = STYLE_NORMAL;
break;
}
styleProp.setValue(styleS);
}