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


Java ChartType.BUBBLE属性代码示例

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


在下文中一共展示了ChartType.BUBBLE属性的5个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的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());
}
 
开发者ID:nextreports,项目名称:nextreports-designer,代码行数:34,代码来源:ChartLayoutPanel.java

示例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);
    }
}
 
开发者ID:nextreports,项目名称:nextreports-designer,代码行数:27,代码来源:ChartPropertyPanel.java

示例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;
    }
}
 
开发者ID:nextreports,项目名称:nextreports-server,代码行数:27,代码来源:ChartUtil.java

示例4: chartUndefined

public static boolean chartUndefined(Chart chart) {
	if (chart == null) {
		chart = Globals.getChartDesignerPanel().getChart();
	}
	if (chart.getType() == null) {
		Show.info(I18NSupport.getString("chart.undefined.type"));
		return true;
	}
	if (chart.getXColumn() == null) {
		Show.info(I18NSupport.getString("chart.undefined.xcolumn"));
		return true;
	}
	if ((chart.getYColumns() == null) || (chart.getYColumns().size() == 0)) {
		if (chart.getYColumnQuery() == null) {
			Show.info(I18NSupport.getString("chart.undefined.ycolumn"));
			return true;
		}
	}
	if ((chart.getType().getType() == ChartType.BUBBLE) && (chart.getYColumns().size() != 4)) {
		Show.info(I18NSupport.getString("chart.undefined.ycolumn.bubble"));
		return true;
	}

	if (chart.getYColumns() != null) {
		if ((chart.getType().getType() == ChartType.PIE) && (getNotNullCount(chart.getYColumns()) > 1)) {
			Show.info(I18NSupport.getString("chart.undefined.ycolumn.toomany"));
			return true;
		}

		if ((chart.getYColumns().size() > 1) && (!FunctionFactory.isCountFunction(chart.getYFunction()))) {
			for (String column : chart.getYColumns()) {
				if (Globals.getChartLayoutPanel().getMarked(column)) {
					Show.info(I18NSupport.getString("chart.undefined.ycolumn.type.error", column));
					return true;
				}
			}
		}
	}

	if (!allParametersHaveDefaults(chart)) {
		return true;
	}

	// try {
	// Report report = chart.getReport();
	// String sql;
	// if (report != null) {
	// if (report.getSql() != null) {
	// sql = report.getSql();
	// } else {
	// sql = report.getQuery().toString();
	// }
	// List<NameType> columns =
	// Globals.getChartDesignerPanel().getPropertiesPanel().getColumns();
	// NameType found = null;
	// for (NameType nt : columns) {
	// if (nt.getName().equals(chart.getYColumn())) {
	// found = nt;
	// break;
	// }
	// }
	// //String columnType =
	// ReportLayoutUtil.getColumnTypeForReportColumn(sql,
	// chart.getYColumn());
	// String columnType = found.getType();
	// //System.out.println("*** yColumnType=" + columnType);
	// if (!Number.class.isAssignableFrom(Class.forName(columnType))) {
	// Show.info(I18NSupport.getString("chart.undefined.ycolumn.type"));
	// return true;
	// }
	// }
	// } catch (Exception e) {
	// e.printStackTrace();
	// }

	return false;
}
 
开发者ID:nextreports,项目名称:nextreports-designer,代码行数:77,代码来源:ChartUtil.java

示例5: 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);
}
 
开发者ID:nextreports,项目名称:nextreports-designer,代码行数:42,代码来源:ChartPropertyPanel.java


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