Package org.eclipse.birt.chart.model

Examples of org.eclipse.birt.chart.model.ChartWithAxes


public class XmlResultsToChart {
public static final Chart createLine(XmlResults results) {
  if (results == null)
    return null;
  final String title = "";
  ChartWithAxes cwa3DLine = initChart(title);

  Axis xAxisPrimary = initX(cwa3DLine);
  Axis yAxisPrimary = initY(cwa3DLine, xAxisPrimary);

  // X-Series
View Full Code Here


  xAxisPrimary.getOrigin().setType(IntersectionType.VALUE_LITERAL);
  return xAxisPrimary;
}

private static ChartWithAxes initChart(final String title) {
  ChartWithAxes cwa3DLine = ChartWithAxesImpl.create();
  cwa3DLine.setType(title); //$NON-NLS-1$
  cwa3DLine.setSubType("Overlay"); //$NON-NLS-1$

  // Plot
  cwa3DLine.getBlock().setBackground(ColorDefinitionImpl.WHITE());
  Plot p = cwa3DLine.getPlot();
  p.getClientArea().setBackground(ColorDefinitionImpl.create(255, 255, 225));

  // Title
  cwa3DLine.getTitle().getLabel().getCaption().setValue(title);//$NON-NLS-1$
  return cwa3DLine;
}
View Full Code Here

TOP

Related Classes of org.eclipse.birt.chart.model.ChartWithAxes

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.