本文整理汇总了Java中ro.nextreports.engine.chart.ChartType.STACKED_BAR_COMBO属性的典型用法代码示例。如果您正苦于以下问题:Java ChartType.STACKED_BAR_COMBO属性的具体用法?Java ChartType.STACKED_BAR_COMBO怎么用?Java ChartType.STACKED_BAR_COMBO使用的例子?那么, 这里精选的属性代码示例或许可以为您提供帮助。您也可以进一步了解该属性所在类ro.nextreports.engine.chart.ChartType
的用法示例。
在下文中一共展示了ChartType.STACKED_BAR_COMBO属性的4个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: setType
public void setType(byte type) {
ImageIcon image = null;
if (ChartType.PIE == type) {
image = ImageUtil.getImageIcon("chart_pie_main");
} else if (ChartType.BAR == type) {
image = ImageUtil.getImageIcon("chart_bar_main");
} else if (ChartType.NEGATIVE_BAR == type) {
image = ImageUtil.getImageIcon("chart_negative_bar_main");
} else if (ChartType.BAR_COMBO == type) {
image = ImageUtil.getImageIcon("chart_bar_combo_main");
} else if (ChartType.STACKED_BAR == type) {
image = ImageUtil.getImageIcon("chart_stacked_bar_main");
} else if (ChartType.STACKED_BAR_COMBO == type) {
image = ImageUtil.getImageIcon("chart_stacked_bar_combo_main");
} else if (ChartType.HORIZONTAL_BAR == type) {
image = ImageUtil.getImageIcon("chart_horizontal_bar_main");
} else if (ChartType.HORIZONTAL_STACKED_BAR == type) {
image = ImageUtil.getImageIcon("chart_horizontal_stacked_bar_main");
} else if (ChartType.LINE == type) {
image = ImageUtil.getImageIcon("chart_line_main");
} else if (ChartType.AREA == type) {
image = ImageUtil.getImageIcon("chart_area_main");
} else if (ChartType.BUBBLE == type) {
image = ImageUtil.getImageIcon("chart_bubble_main");
}
previewFlashAction.setEnabled(!ChartType.hasNoFlashSupport(type));
if (image != null) {
mainButton.setIcon(image);
}
reverseAxis(Globals.getChartDesignerPanel().getChart().getType().isHorizontal());
}
示例2: getChartType
private ChartType getChartType(String type) {
if (BAR.equals(type)) {
return new ChartType(ChartType.BAR);
} else if (NEGATIVE_BAR.equals(type)) {
return new ChartType(ChartType.NEGATIVE_BAR);
} else if (BAR_COMBO.equals(type)) {
return new ChartType(ChartType.BAR_COMBO);
} else if (HORIZONTAL_BAR.equals(type)) {
return new ChartType(ChartType.HORIZONTAL_BAR);
} else if (STACKED_BAR.equals(type)) {
return new ChartType(ChartType.STACKED_BAR);
} else if (STACKED_BAR_COMBO.equals(type)) {
return new ChartType(ChartType.STACKED_BAR_COMBO);
} else if (HORIZONTAL_STACKED_BAR.equals(type)) {
return new ChartType(ChartType.HORIZONTAL_STACKED_BAR);
} else if (PIE.equals(type)) {
return new ChartType(ChartType.PIE);
} else if (LINE.equals(type)) {
return new ChartType(ChartType.LINE);
} else if (AREA.equals(type)) {
return new ChartType(ChartType.AREA);
} else if (BUBBLE.equals(type)) {
return new ChartType(ChartType.BUBBLE);
} else {
return new ChartType(ChartType.NONE);
}
}
示例3: getChartType
public static byte getChartType(String type) {
if (CHART_BAR.equals(type)) {
return ChartType.BAR;
} else if (CHART_NEGATIVE_BAR.equals(type)) {
return ChartType.NEGATIVE_BAR;
} else if (CHART_BAR_COMBO.equals(type)) {
return ChartType.BAR_COMBO;
} else if (CHART_HORIZONTAL_BAR.equals(type)) {
return ChartType.HORIZONTAL_BAR;
} else if (CHART_HORIZONTAL_STACKED_BAR.equals(type)) {
return ChartType.HORIZONTAL_STACKED_BAR;
} else if (CHART_STACKED_BAR.equals(type)) {
return ChartType.STACKED_BAR;
} else if (CHART_STACKED_BAR_COMBO.equals(type)) {
return ChartType.STACKED_BAR_COMBO;
} else if (CHART_PIE.equals(type)) {
return ChartType.PIE;
} else if (CHART_LINE.equals(type)) {
return ChartType.LINE;
} else if (CHART_AREA.equals(type)) {
return ChartType.AREA;
} else if (CHART_BUBBLE.equals(type)) {
return ChartType.BUBBLE;
} else {
return ChartType.NONE;
}
}
示例4: setChartType
private void setChartType(byte type, Property typeProp) {
String typeS;
switch (type) {
case ChartType.BAR:
typeS = BAR;
break;
case ChartType.NEGATIVE_BAR:
typeS = NEGATIVE_BAR;
break;
case ChartType.BAR_COMBO:
typeS = BAR_COMBO;
break;
case ChartType.HORIZONTAL_BAR:
typeS = HORIZONTAL_BAR;
break;
case ChartType.STACKED_BAR:
typeS = STACKED_BAR;
break;
case ChartType.STACKED_BAR_COMBO:
typeS = STACKED_BAR_COMBO;
break;
case ChartType.HORIZONTAL_STACKED_BAR:
typeS = HORIZONTAL_STACKED_BAR;
break;
case ChartType.PIE:
typeS = PIE;
break;
case ChartType.LINE:
typeS = LINE;
break;
case ChartType.AREA:
typeS = AREA;
break;
case ChartType.BUBBLE:
typeS = BUBBLE;
break;
default:
typeS = null;
break;
}
typeProp.setValue(typeS);
}