本文整理汇总了Java中net.sf.jasperreports.charts.design.JRDesignXyzSeries.setZValueExpression方法的典型用法代码示例。如果您正苦于以下问题:Java JRDesignXyzSeries.setZValueExpression方法的具体用法?Java JRDesignXyzSeries.setZValueExpression怎么用?Java JRDesignXyzSeries.setZValueExpression使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类net.sf.jasperreports.charts.design.JRDesignXyzSeries
的用法示例。
在下文中一共展示了JRDesignXyzSeries.setZValueExpression方法的5个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: setPropertyValue
import net.sf.jasperreports.charts.design.JRDesignXyzSeries; //导入方法依赖的package包/类
public void setPropertyValue(Object id, Object value) {
JRDesignXyzSeries jrElement = (JRDesignXyzSeries) getValue();
if (id.equals(JRDesignXyzSeries.PROPERTY_X_VALUE_EXPRESSION))
jrElement.setXValueExpression(ExprUtil.setValues(
jrElement.getXValueExpression(), value));
else if (id.equals(JRDesignXyzSeries.PROPERTY_Y_VALUE_EXPRESSION))
jrElement.setYValueExpression(ExprUtil.setValues(
jrElement.getYValueExpression(), value));
else if (id.equals(JRDesignXyzSeries.PROPERTY_Z_VALUE_EXPRESSION))
jrElement.setZValueExpression(ExprUtil.setValues(
jrElement.getZValueExpression(), value));
else if (id.equals(JRDesignXyzSeries.PROPERTY_SERIES_EXPRESSION))
jrElement.setSeriesExpression(ExprUtil.setValues(
jrElement.getSeriesExpression(), value));
}
示例2: jButtonAddActionPerformed
import net.sf.jasperreports.charts.design.JRDesignXyzSeries; //导入方法依赖的package包/类
private void jButtonAddActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jButtonAddActionPerformed
XYZSeriesDialog csd = new XYZSeriesDialog(Misc.getMainFrame() ,true);
csd.setExpressionContext( this.getExpressionContext() );
csd.setVisible(true);
if (csd.getDialogResult() == javax.swing.JOptionPane.OK_OPTION)
{
JRDesignXyzSeries cs = new JRDesignXyzSeries();
cs.setSeriesExpression( csd.getSeriesExpression() );
cs.setXValueExpression( csd.getXValueExpression() );
cs.setYValueExpression( csd.getYValueExpression() );
cs.setZValueExpression( csd.getZValueExpression() );
cs.setItemHyperlink( csd.getSectionItemHyperlink() );
getXYZDataset().getSeriesList().add(cs);
((javax.swing.DefaultListModel)jList1.getModel()).addElement(cs);
}
}
示例3: xyzDataset
import net.sf.jasperreports.charts.design.JRDesignXyzSeries; //导入方法依赖的package包/类
private void xyzDataset(DRIDesignSeriesDataset dataset, JRDesignXyzDataset jrDataset) {
AbstractExpressionTransform expressionTransform = accessor.getExpressionTransform();
for (DRIDesignChartSerie serie : dataset.getSeries()) {
DRIDesignXyzChartSerie xyzSerie = (DRIDesignXyzChartSerie) serie;
JRDesignXyzSeries jrSerie = new JRDesignXyzSeries();
jrSerie.setItemHyperlink(accessor.getReportTransform().hyperLink(dataset.getItemHyperLink()));
if (xyzSerie.getXValueExpression() != null) {
jrSerie.setXValueExpression(expressionTransform.getExpression(xyzSerie.getXValueExpression()));
}
else {
jrSerie.setXValueExpression(expressionTransform.getExpression(dataset.getValueExpression()));
}
jrSerie.setYValueExpression(expressionTransform.getExpression(xyzSerie.getYValueExpression()));
jrSerie.setZValueExpression(expressionTransform.getExpression(xyzSerie.getZValueExpression()));
jrSerie.setSeriesExpression(expressionTransform.getExpression(serie.getSeriesExpression()));
jrDataset.addXyzSeries(jrSerie);
}
}
示例4: createSerie
import net.sf.jasperreports.charts.design.JRDesignXyzSeries; //导入方法依赖的package包/类
@Override
public JRDesignXyzSeries createSerie(JRDesignExpression expr, JRXyzSeries prev) {
JRDesignXyzSeries f = new JRDesignXyzSeries();
f.setSeriesExpression(expr);
if (prev == null) {
f.setXValueExpression(new JRDesignExpression("0"));
f.setYValueExpression(new JRDesignExpression("0"));
f.setZValueExpression(new JRDesignExpression("0"));
} else {
f.setXValueExpression(ExprUtil.clone(prev.getXValueExpression()));
f.setYValueExpression(ExprUtil.clone(prev.getYValueExpression()));
f.setZValueExpression(ExprUtil.clone(prev.getZValueExpression()));
}
return f;
}
示例5: jButtonModifyActionPerformed
import net.sf.jasperreports.charts.design.JRDesignXyzSeries; //导入方法依赖的package包/类
private void jButtonModifyActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jButtonModifyActionPerformed
if (jList1.getSelectedIndex() >= 0)
{
JRDesignXyzSeries cs = (JRDesignXyzSeries)jList1.getSelectedValue();
XYZSeriesDialog csd = new XYZSeriesDialog(Misc.getMainFrame() ,true);
csd.setSeriesExpression( (JRDesignExpression)cs.getSeriesExpression() );
csd.setXValueExpression( (JRDesignExpression)cs.getXValueExpression() );
csd.setYValueExpression( (JRDesignExpression)cs.getYValueExpression() );
csd.setZValueExpression( (JRDesignExpression)cs.getZValueExpression() );
JRDesignHyperlink link = new JRDesignHyperlink();
ModelUtils.copyHyperlink(cs.getItemHyperlink(), link);
csd.setSectionItemHyperlink( link );
csd.setExpressionContext( this.getExpressionContext() );
if (newInfo != null)
{
csd.setFocusedExpression(newInfo);
}
csd.setVisible(true);
if (csd.getDialogResult() == javax.swing.JOptionPane.OK_OPTION)
{
cs.setSeriesExpression( csd.getSeriesExpression() );
cs.setXValueExpression( csd.getXValueExpression() );
cs.setYValueExpression( csd.getYValueExpression() );
cs.setZValueExpression( csd.getZValueExpression() );
cs.setItemHyperlink( csd.getSectionItemHyperlink() );
jList1.updateUI();
}
}
}