本文整理汇总了Java中net.sf.jasperreports.charts.design.JRDesignXyzSeries类的典型用法代码示例。如果您正苦于以下问题:Java JRDesignXyzSeries类的具体用法?Java JRDesignXyzSeries怎么用?Java JRDesignXyzSeries使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
JRDesignXyzSeries类属于net.sf.jasperreports.charts.design包,在下文中一共展示了JRDesignXyzSeries类的18个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的Java代码示例。
示例1: createControls
import net.sf.jasperreports.charts.design.JRDesignXyzSeries; //导入依赖的package包/类
/**
* @see org.eclipse.ui.views.properties.tabbed.ITabbedPropertySection#createControls(org.eclipse.swt.widgets.Composite,
* org.eclipse.ui.views.properties.tabbed.TabbedPropertySheetPage)
*/
public void createControls(Composite parent,
TabbedPropertySheetPage tabbedPropertySheetPage) {
super.createControls(parent, tabbedPropertySheetPage);
parent.setLayout(new GridLayout(2, false));
createWidget4Property(parent,
JRDesignXyzSeries.PROPERTY_X_VALUE_EXPRESSION);
createWidget4Property(parent,
JRDesignXyzSeries.PROPERTY_Y_VALUE_EXPRESSION);
createWidget4Property(parent,
JRDesignXyzSeries.PROPERTY_Z_VALUE_EXPRESSION);
createWidget4Property(parent,
JRDesignXyzSeries.PROPERTY_SERIES_EXPRESSION);
}
开发者ID:OpenSoftwareSolutions,项目名称:PDFReporter-Studio,代码行数:21,代码来源:SeriesXyzSection.java
示例2: 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));
}
开发者ID:OpenSoftwareSolutions,项目名称:PDFReporter-Studio,代码行数:17,代码来源:MXYZSeries.java
示例3: createNode
import net.sf.jasperreports.charts.design.JRDesignXyzSeries; //导入依赖的package包/类
public ANode createNode(ANode parent, Object jrObject, int newIndex) {
if (jrObject instanceof JRDesignChart)
return new MChart(parent, (JRDesignChart) jrObject, newIndex);
if (jrObject instanceof JRDesignChartAxis) {
MChartAxes mChartAxes = new MChartAxes(parent, (JRChartAxis) jrObject, newIndex);
return mChartAxes;
}
if (jrObject instanceof JRDesignChartDataset)
return ChartDatasetFactory.getChartDataset(parent, (JRChartDataset) jrObject, newIndex);
if (jrObject instanceof JRDesignCategorySeries)
return new MCategorySeries(parent, (JRDesignCategorySeries) jrObject, newIndex);
if (jrObject instanceof JRDesignGanttSeries)
return new MGanttSeries(parent, (JRDesignGanttSeries) jrObject, newIndex);
if (jrObject instanceof JRDesignPieSeries)
return new MPieSeries(parent, (JRDesignPieSeries) jrObject, newIndex);
if (jrObject instanceof JRDesignTimePeriodSeries)
return new MTimePeriodSeries(parent, (JRDesignTimePeriodSeries) jrObject, newIndex);
if (jrObject instanceof JRDesignTimeSeries)
return new MTimeSeries(parent, (JRDesignTimeSeries) jrObject, newIndex);
if (jrObject instanceof JRDesignXySeries)
return new MXYSeries(parent, (JRDesignXySeries) jrObject, newIndex);
if (jrObject instanceof JRDesignXyzSeries)
return new MXYZSeries(parent, (JRDesignXyzSeries) jrObject, newIndex);
return null;
}
开发者ID:OpenSoftwareSolutions,项目名称:PDFReporter-Studio,代码行数:26,代码来源:ChartComponentFactory.java
示例4: 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);
}
}
开发者ID:JockiHendry,项目名称:ireport-fork,代码行数:21,代码来源:XYZDatasetPanel.java
示例5: 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);
}
}
开发者ID:svn2github,项目名称:dynamicreports-jasper,代码行数:19,代码来源:ChartTransform.java
示例6: initializeProvidedProperties
import net.sf.jasperreports.charts.design.JRDesignXyzSeries; //导入依赖的package包/类
@Override
protected void initializeProvidedProperties() {
super.initializeProvidedProperties();
addProvidedProperties(JRDesignXyzSeries.PROPERTY_X_VALUE_EXPRESSION, Messages.common_x_value_expression);
addProvidedProperties(JRDesignXyzSeries.PROPERTY_Y_VALUE_EXPRESSION, Messages.common_y_value_expression);
addProvidedProperties(JRDesignXyzSeries.PROPERTY_Z_VALUE_EXPRESSION, Messages.MXYZSeries_z_value_expression);
addProvidedProperties(JRDesignXyzSeries.PROPERTY_SERIES_EXPRESSION, Messages.common_series_expression);
}
开发者ID:OpenSoftwareSolutions,项目名称:PDFReporter-Studio,代码行数:9,代码来源:SeriesXyzSection.java
示例7: getModelFromEditPart
import net.sf.jasperreports.charts.design.JRDesignXyzSeries; //导入依赖的package包/类
@Override
protected APropertyNode getModelFromEditPart(Object item) {
APropertyNode md = super.getModelFromEditPart(item);
if (md instanceof MChartAxes)
return (APropertyNode) md
.getPropertyValue(JRDesignChartAxis.PROPERTY_CHART);
if (md instanceof MChartHighLowDataset)
return (APropertyNode) md
.getPropertyValue(JRDesignHighLowDataset.PROPERTY_ITEM_HYPERLINK);
if (md instanceof MChartPieDataset)
return (APropertyNode) md
.getPropertyValue(JRDesignPieDataset.PROPERTY_OTHER_SECTION_HYPERLINK);
if (md instanceof MCategorySeries)
return (APropertyNode) md
.getPropertyValue(JRDesignCategorySeries.PROPERTY_ITEM_HYPERLINK);
if (md instanceof MGanttSeries)
return (APropertyNode) md
.getPropertyValue(JRDesignGanttSeries.PROPERTY_ITEM_HYPERLINK);
if (md instanceof MPieSeries)
return (APropertyNode) md
.getPropertyValue(JRDesignPieSeries.PROPERTY_SECTION_HYPERLINK);
if (md instanceof MTimeSeries)
return (APropertyNode) md
.getPropertyValue(JRDesignTimeSeries.PROPERTY_ITEM_HYPERLINK);
if (md instanceof MTimePeriodSeries)
return (APropertyNode) md
.getPropertyValue(JRDesignTimePeriodSeries.PROPERTY_ITEM_HYPERLINK);
if (md instanceof MXYSeries)
return (APropertyNode) md
.getPropertyValue(JRDesignXySeries.PROPERTY_ITEM_HYPERLINK);
if (md instanceof MXYZSeries)
return (APropertyNode) md
.getPropertyValue(JRDesignXyzSeries.PROPERTY_ITEM_HYPERLINK);
return md;
}
开发者ID:OpenSoftwareSolutions,项目名称:PDFReporter-Studio,代码行数:36,代码来源:ChartHyperlinkSection.java
示例8: 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;
}
开发者ID:OpenSoftwareSolutions,项目名称:PDFReporter-Studio,代码行数:16,代码来源:XyzSerie.java
示例9: jMenuItemCopyActionPerformed
import net.sf.jasperreports.charts.design.JRDesignXyzSeries; //导入依赖的package包/类
private void jMenuItemCopyActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jMenuItemCopyActionPerformed
Object[] values = jList1.getSelectedValues();
java.util.List copy_c = new ArrayList();
try {
for (int i=0; i<values.length; ++i) copy_c.add( ((JRDesignXyzSeries)values[i]).clone() );
IReportManager.getInstance().setChartSeriesClipBoard(copy_c);
} catch (Exception ex) { }
}
开发者ID:JockiHendry,项目名称:ireport-fork,代码行数:9,代码来源:XYZDatasetPanel.java
示例10: 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();
}
}
}
开发者ID:JockiHendry,项目名称:ireport-fork,代码行数:37,代码来源:XYZDatasetPanel.java
示例11: createObject
import net.sf.jasperreports.charts.design.JRDesignXyzSeries; //导入依赖的package包/类
@Override
public Object createObject( Attributes attrs )
{
return new JRDesignXyzSeries();
}
开发者ID:TIBCOSoftware,项目名称:jasperreports,代码行数:6,代码来源:JRXyzSeriesFactory.java
示例12: MXYZSeries
import net.sf.jasperreports.charts.design.JRDesignXyzSeries; //导入依赖的package包/类
public MXYZSeries(ANode parent, JRDesignXyzSeries value, int newIndex) {
super(parent, -1);
setValue(value);
}
开发者ID:OpenSoftwareSolutions,项目名称:PDFReporter-Studio,代码行数:5,代码来源:MXYZSeries.java
示例13: createPropertyDescriptors
import net.sf.jasperreports.charts.design.JRDesignXyzSeries; //导入依赖的package包/类
/**
* Creates the property descriptors.
*
* @param desc
* the desc
*/
@Override
public void createPropertyDescriptors(List<IPropertyDescriptor> desc,
Map<String, Object> defaultsMap) {
JRExpressionPropertyDescriptor xValueExpD = new JRExpressionPropertyDescriptor(
JRDesignXyzSeries.PROPERTY_X_VALUE_EXPRESSION,
Messages.common_x_value_expression);
xValueExpD
.setDescription(Messages.MXYZSeries_x_value_expression_description);
desc.add(xValueExpD);
JRExpressionPropertyDescriptor yValueExpD = new JRExpressionPropertyDescriptor(
JRDesignXyzSeries.PROPERTY_Y_VALUE_EXPRESSION,
Messages.common_y_value_expression);
yValueExpD
.setDescription(Messages.MXYZSeries_y_value_expression_description);
desc.add(yValueExpD);
JRExpressionPropertyDescriptor zValueExpD = new JRExpressionPropertyDescriptor(
JRDesignXyzSeries.PROPERTY_Z_VALUE_EXPRESSION,
Messages.MXYZSeries_z_value_expression);
zValueExpD
.setDescription(Messages.MXYZSeries_z_value_expression_description);
desc.add(zValueExpD);
JRExpressionPropertyDescriptor seriesExprD = new JRExpressionPropertyDescriptor(
JRDesignXyzSeries.PROPERTY_SERIES_EXPRESSION,
Messages.common_series_expression);
seriesExprD
.setDescription(Messages.MXYZSeries_series_expression_description);
desc.add(seriesExprD);
JRPropertyDescriptor itemHyperLinkD = new JRPropertyDescriptor(
JRDesignXyzSeries.PROPERTY_ITEM_HYPERLINK,
Messages.common_item_hyperlink);
itemHyperLinkD
.setDescription(Messages.MXYZSeries_item_hyperlink_description);
desc.add(itemHyperLinkD);
defaultsMap.put(JRDesignXyzSeries.PROPERTY_X_VALUE_EXPRESSION, null);
defaultsMap.put(JRDesignXyzSeries.PROPERTY_Y_VALUE_EXPRESSION, null);
defaultsMap.put(JRDesignXyzSeries.PROPERTY_Z_VALUE_EXPRESSION, null);
defaultsMap.put(JRDesignXyzSeries.PROPERTY_SERIES_EXPRESSION, null);
defaultsMap.put(JRDesignXyzSeries.PROPERTY_ITEM_HYPERLINK, null);
}
开发者ID:OpenSoftwareSolutions,项目名称:PDFReporter-Studio,代码行数:52,代码来源:MXYZSeries.java
示例14: modify
import net.sf.jasperreports.charts.design.JRDesignXyzSeries; //导入依赖的package包/类
public void modify(JRXyzSeries element, String property, Object value) {
JRDesignXyzSeries data = (JRDesignXyzSeries) element;
if ("NAME".equals(property) && value instanceof JRExpression) //$NON-NLS-1$
data.setSeriesExpression((JRExpression) value);
}
开发者ID:OpenSoftwareSolutions,项目名称:PDFReporter-Studio,代码行数:6,代码来源:XyzSerie.java
示例15: getListCellRendererComponent
import net.sf.jasperreports.charts.design.JRDesignXyzSeries; //导入依赖的package包/类
public Component getListCellRendererComponent(
JList list,
Object value,
int index,
boolean isSelected,
boolean cellHasFocus)
{
JLabel label = (JLabel)super.getListCellRendererComponent(list,value,index,isSelected, cellHasFocus);
label.setIcon(null);
if (value instanceof JRDesignTimePeriodSeries)
{
label.setText( "Time period series [" + Misc.getExpressionText( ((JRDesignTimePeriodSeries)value).getSeriesExpression() ) +"]");
}
else if (value instanceof JRDesignCategorySeries)
{
label.setText( "Category series [" + Misc.getExpressionText( ((JRDesignCategorySeries)value).getSeriesExpression() ) +"]");
}
else if (value instanceof JRDesignXySeries)
{
label.setText( "XY series [" + Misc.getExpressionText( ((JRDesignXySeries)value).getSeriesExpression() ) +"]");
}
else if (value instanceof JRDesignTimeSeries)
{
label.setText( "Time series [" + Misc.getExpressionText( ((JRDesignTimeSeries)value).getSeriesExpression() ) +"]");
}
else if (value instanceof JRDesignXyzSeries)
{
label.setText( "XYZ series [" + Misc.getExpressionText( ((JRDesignXyzSeries)value).getSeriesExpression() ) +"]");
}
else if (value instanceof JRDesignGanttSeries)
{
label.setText( "Gantt series [" + Misc.getExpressionText( ((JRDesignGanttSeries)value).getSeriesExpression() ) +"]");
}
else if (value instanceof JRDesignPieSeries)
{
if (list.getModel().getSize() <= 1)
{
label.setText( "Default pie series");
}
else
{
label.setText( "Pie series [" + (index+1) + "]");
}
}
return this;
}
开发者ID:JockiHendry,项目名称:ireport-fork,代码行数:49,代码来源:DatasetListsCellRenderer.java
示例16: ReorderXYZSeriesCommand
import net.sf.jasperreports.charts.design.JRDesignXyzSeries; //导入依赖的package包/类
/**
* Instantiates a new reorder element command.
*
* @param child
* the child
* @param parent
* the parent
* @param newIndex
* the new index
*/
public ReorderXYZSeriesCommand(MXYZSeries child, MChartDataset parent,
int newIndex) {
super(Messages.common_reorder_elements);
this.newIndex = Math.max(0, newIndex);
this.jrElement = (JRDesignXyzSeries) child.getValue();
this.jrGroup = (JRDesignXyzDataset) parent.getValue();
}
开发者ID:OpenSoftwareSolutions,项目名称:PDFReporter-Studio,代码行数:18,代码来源:ReorderXYZSeriesCommand.java
示例17: CreateXYZSeriesCommand
import net.sf.jasperreports.charts.design.JRDesignXyzSeries; //导入依赖的package包/类
/**
* Instantiates a new creates the element command.
*
* @param destNode
* the dest node
* @param srcNode
* the src node
* @param index
* the index
*/
public CreateXYZSeriesCommand(MChartDataset destNode, MXYZSeries srcNode,
int newIndex) {
super();
this.jrElement = (JRDesignXyzSeries) srcNode.getValue();
this.jrDataset = (JRDesignXyzDataset) destNode.getValue();
this.index = newIndex;
}
开发者ID:OpenSoftwareSolutions,项目名称:PDFReporter-Studio,代码行数:18,代码来源:CreateXYZSeriesCommand.java
示例18: DeleteXYZSeriesCommand
import net.sf.jasperreports.charts.design.JRDesignXyzSeries; //导入依赖的package包/类
/**
* Instantiates a new delete element command.
*
* @param destNode
* the dest node
* @param srcNode
* the src node
*/
public DeleteXYZSeriesCommand(MChartDataset destNode, MXYZSeries srcNode) {
super();
this.jrElement = (JRDesignXyzSeries) srcNode.getValue();
this.jrGroup = (JRDesignXyzDataset) destNode.getValue();
}
开发者ID:OpenSoftwareSolutions,项目名称:PDFReporter-Studio,代码行数:14,代码来源:DeleteXYZSeriesCommand.java
注:本文中的net.sf.jasperreports.charts.design.JRDesignXyzSeries类示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。 |
请发表评论