當前位置: 首頁>>代碼示例>>Java>>正文


Java JRMultiAxisPlot類代碼示例

本文整理匯總了Java中net.sf.jasperreports.charts.JRMultiAxisPlot的典型用法代碼示例。如果您正苦於以下問題:Java JRMultiAxisPlot類的具體用法?Java JRMultiAxisPlot怎麽用?Java JRMultiAxisPlot使用的例子?那麽, 這裏精選的類代碼示例或許可以為您提供幫助。


JRMultiAxisPlot類屬於net.sf.jasperreports.charts包,在下文中一共展示了JRMultiAxisPlot類的9個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的Java代碼示例。

示例1: JRBaseMultiAxisPlot

import net.sf.jasperreports.charts.JRMultiAxisPlot; //導入依賴的package包/類
/**
 * Creates a copy of an existing multiple axis chart plot and registers
 * any expression contained in the plot with the specified factory.  Since
 * the plot contains multiple other charts nested inside of it all of the
 * expressions used by those charts is also registered with the factory.
 *
 * @param multiAxisPlot the plot to copy
 * @param factory the factory to register expressions with
 */
public JRBaseMultiAxisPlot(JRMultiAxisPlot multiAxisPlot, JRBaseObjectFactory factory)
{
	super(multiAxisPlot, factory);

	List<JRChartAxis> origAxes = multiAxisPlot.getAxes();
	axes.clear();
	if (origAxes != null)
	{
		Iterator<JRChartAxis> iter = origAxes.iterator();
		while (iter.hasNext())
		{
			JRChartAxis axis = iter.next();
			axes.add(factory.getChartAxis(axis));
		}
	}
}
 
開發者ID:TIBCOSoftware,項目名稱:jasperreports,代碼行數:26,代碼來源:JRBaseMultiAxisPlot.java

示例2: getMultiAxisPlot

import net.sf.jasperreports.charts.JRMultiAxisPlot; //導入依賴的package包/類
/**
 *
 */
public JRMultiAxisPlot getMultiAxisPlot(JRMultiAxisPlot multiAxisPlot)
{
	JRBaseMultiAxisPlot baseMultiAxisPlot = null;

	if (multiAxisPlot != null)
	{
		baseMultiAxisPlot = (JRBaseMultiAxisPlot)get(multiAxisPlot);
		if (baseMultiAxisPlot == null)
		{
			baseMultiAxisPlot = new JRBaseMultiAxisPlot(multiAxisPlot, this);
		}
	}

	return baseMultiAxisPlot;
}
 
開發者ID:TIBCOSoftware,項目名稱:jasperreports,代碼行數:19,代碼來源:JRBaseObjectFactory.java

示例3: writeMultiAxisChart

import net.sf.jasperreports.charts.JRMultiAxisPlot; //導入依賴的package包/類
/**
 * Writes the definition of a multiple axis chart to the output stream.
 *
 * @param chart the multiple axis chart to write
 */
public void writeMultiAxisChart( JRChart chart, String chartName)
{
	if(chart != null)
	{
		write( "JRDesignChart " + chartName + " = new JRDesignChart(jasperDesign, JRChart.CHART_TYPE_MULTI_AXIS);\n");
		writeChart( chart, chartName);
		JRMultiAxisPlot plot = (JRMultiAxisPlot) chart.getPlot();
		String plotName = chartName + "MultiAxisPlot";
		
		write( "JRDesignMultiAxisPlot " + plotName + " = (JRDesignMultiAxisPlot)" + chartName + ".getPlot();\n");
		write( plotName + ".setChart(" + chartName + ");\n");//FIXMECHART why is this needed since we get the plot from chart?
		writePlot( chart.getPlot(), plotName);
		List<JRChartAxis> axes = plot.getAxes();
		if (axes != null && axes.size() > 0)
		{
			for (int i = 0; i < axes.size(); i++)
			{
				JRChartAxis chartAxis = axes.get(i);
				writeChartAxis( chartAxis, plotName, plotName + "Axis" + i, chartName);
			}
		}
		flush();
	}
}
 
開發者ID:TIBCOSoftware,項目名稱:jasperreports,代碼行數:30,代碼來源:JRApiWriter.java

示例4: getMultiAxisPlot

import net.sf.jasperreports.charts.JRMultiAxisPlot; //導入依賴的package包/類
/**
 *
 */
public JRMultiAxisPlot getMultiAxisPlot(JRMultiAxisPlot multiAxisPlot)
{
	JRFillMultiAxisPlot fillMultiAxisPlot = null;

	if (multiAxisPlot != null)
	{
		fillMultiAxisPlot = (JRFillMultiAxisPlot)get(multiAxisPlot);
		if (fillMultiAxisPlot == null)
		{
			fillMultiAxisPlot = new JRFillMultiAxisPlot(multiAxisPlot, this);
		}
	}

	return fillMultiAxisPlot;
}
 
開發者ID:TIBCOSoftware,項目名稱:jasperreports,代碼行數:19,代碼來源:JRFillObjectFactory.java

示例5: JRFillMultiAxisPlot

import net.sf.jasperreports.charts.JRMultiAxisPlot; //導入依賴的package包/類
public JRFillMultiAxisPlot(JRMultiAxisPlot multiAxisPlot, JRFillObjectFactory factory)
{
	super(multiAxisPlot, factory);

	List<JRChartAxis> parentAxes = multiAxisPlot.getAxes();
	this.axes = new ArrayList<JRChartAxis>(parentAxes.size());
	Iterator<JRChartAxis> iter = parentAxes.iterator();
	while (iter.hasNext())
	{
		JRChartAxis axis = iter.next();
		this.axes.add(factory.getChartAxis(axis));
	}
}
 
開發者ID:TIBCOSoftware,項目名稱:jasperreports,代碼行數:14,代碼來源:JRFillMultiAxisPlot.java

示例6: writeMultiAxisChart

import net.sf.jasperreports.charts.JRMultiAxisPlot; //導入依賴的package包/類
/**
 * Writes the definition of a multiple axis chart to the output stream.
 *
 * @param chart the multiple axis chart to write
 */
public void writeMultiAxisChart(JRChart chart) throws IOException
{
	writer.startElement(JRXmlConstants.ELEMENT_multiAxisChart, getNamespace());

	writeChart(chart);

	// write plot
	JRMultiAxisPlot plot = (JRMultiAxisPlot) chart.getPlot();
	writer.startElement(JRXmlConstants.ELEMENT_multiAxisPlot);

	writePlot(chart.getPlot());

	List<JRChartAxis> axes = plot.getAxes();
	if (axes != null)
	{
		Iterator<JRChartAxis> iter = axes.iterator();
		while (iter.hasNext())
		{
			JRChartAxis chartAxis = iter.next();
			writeChartAxis(chartAxis);
		}
	}
	writer.closeElement();

	writer.closeElement();
}
 
開發者ID:TIBCOSoftware,項目名稱:jasperreports,代碼行數:32,代碼來源:JRXmlWriter.java

示例7: getChartPlot

import net.sf.jasperreports.charts.JRMultiAxisPlot; //導入依賴的package包/類
public static MChartPlot getChartPlot(JRChartPlot plot) {
	if (plot instanceof JRAreaPlot)
		return new MAreaPlot((JRAreaPlot) plot);
	if (plot instanceof JRBar3DPlot)
		return new MBar3DPlot((JRBar3DPlot) plot);
	if (plot instanceof JRBarPlot)
		return new MBarPlot((JRBarPlot) plot);
	if (plot instanceof JRBubblePlot)
		return new MBubblePlot((JRBubblePlot) plot);
	if (plot instanceof JRCandlestickPlot)
		return new MCandlestickPlot((JRCandlestickPlot) plot);
	if (plot instanceof JRHighLowPlot)
		return new MHighLowPlot((JRHighLowPlot) plot);
	if (plot instanceof JRLinePlot)
		return new MLinePlot((JRLinePlot) plot);
	if (plot instanceof JRMeterPlot)
		return new MMeterPlot((JRMeterPlot) plot);
	if (plot instanceof JRMultiAxisPlot)
		return new MMultiAxisPlot((JRMultiAxisPlot) plot);
	if (plot instanceof JRPie3DPlot)
		return new MPie3DPlot((JRPie3DPlot) plot);
	if (plot instanceof JRPiePlot)
		return new MPiePlot((JRPiePlot) plot);
	if (plot instanceof JRScatterPlot)
		return new MScatterPlot((JRScatterPlot) plot);
	if (plot instanceof JRThermometerPlot)
		return new MThermometerPlot((JRThermometerPlot) plot);
	if (plot instanceof JRTimeSeriesPlot)
		return new MTimeSeriesPlot((JRTimeSeriesPlot) plot);

	return new MChartPlot(plot);
}
 
開發者ID:OpenSoftwareSolutions,項目名稱:PDFReporter-Studio,代碼行數:33,代碼來源:PlotFactory.java

示例8: getChildren4Element

import net.sf.jasperreports.charts.JRMultiAxisPlot; //導入依賴的package包/類
public List<?> getChildren4Element(Object jrObject) {
	List<Object> ch = new ArrayList<Object>();
	if (jrObject instanceof JRDesignCategoryDataset)
		ch.addAll(((JRDesignCategoryDataset) jrObject).getSeriesList());
	else if (jrObject instanceof JRDesignGanttDataset)
		ch.addAll(((JRDesignGanttDataset) jrObject).getSeriesList());
	else if (jrObject instanceof JRDesignPieDataset)
		ch.addAll(((JRDesignPieDataset) jrObject).getSeriesList());
	else if (jrObject instanceof JRDesignTimePeriodDataset)
		ch.addAll(((JRDesignTimePeriodDataset) jrObject).getSeriesList());
	else if (jrObject instanceof JRDesignTimeSeriesDataset)
		ch.addAll(((JRDesignTimeSeriesDataset) jrObject).getSeriesList());
	else if (jrObject instanceof JRDesignXyDataset)
		ch.addAll(((JRDesignXyDataset) jrObject).getSeriesList());
	else if (jrObject instanceof JRDesignXyzDataset)
		ch.addAll(((JRDesignXyzDataset) jrObject).getSeriesList());

	else if (jrObject instanceof JRDesignChartAxis)
		ch.add(((JRDesignChartAxis) jrObject).getChart().getDataset());

	if (jrObject instanceof JRChart) {
		ch.add(((JRChart) jrObject).getDataset());
	}
	if (jrObject instanceof JRChart && ((JRChart) jrObject).getPlot() instanceof JRMultiAxisPlot) {
		JRMultiAxisPlot slc = (JRMultiAxisPlot) ((JRChart) jrObject).getPlot();
		if (slc.getAxes() != null)
			ch.addAll(slc.getAxes());
	}
	return ch;
}
 
開發者ID:OpenSoftwareSolutions,項目名稱:PDFReporter-Studio,代碼行數:31,代碼來源:ChartComponentFactory.java

示例9: MMultiAxisPlot

import net.sf.jasperreports.charts.JRMultiAxisPlot; //導入依賴的package包/類
public MMultiAxisPlot(JRMultiAxisPlot value) {
	super(value);
}
 
開發者ID:OpenSoftwareSolutions,項目名稱:PDFReporter-Studio,代碼行數:4,代碼來源:MMultiAxisPlot.java


注:本文中的net.sf.jasperreports.charts.JRMultiAxisPlot類示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。