@@ -0,0 +1,1645 @@
+import org.csstudio.swt.xygraph.dataprovider.CircularBufferDataProvider;%0Aimport org.csstudio.swt.xygraph.figures.Trace;%0Aimport org.csstudio.swt.xygraph.figures.XYGraph;%0Aimport org.csstudio.swt.xygraph.figures.Trace.PointStyle;%0Aimport org.eclipse.draw2d.LightweightSystem;%0Aimport org.eclipse.swt.widgets.Display;%0Aimport org.eclipse.swt.widgets.Shell;%0A%0A%0Apublic class SimpleExample %7B%0A%09public static void main(String%5B%5D args) %7B%0A%09%09final Shell shell = new Shell();%0A%09%09shell.setSize(300, 250);%0A%09    shell.open();%0A%09    %0A%09    //use LightweightSystem to create the bridge between SWT and draw2D%0A%09%09final LightweightSystem lws = new LightweightSystem(shell);%0A%09%09%0A%09%09//create a new XY Graph.%0A%09%09XYGraph xyGraph = new XYGraph();%0A%09%09xyGraph.setTitle(%22Simple Example%22);%0A%09%09//set it as the content of LightwightSystem%0A%09%09lws.setContents(xyGraph);%0A%09%09%0A%09%09//create a trace data provider, which will provide the data to the trace.%0A%09%09CircularBufferDataProvider traceDataProvider = new CircularBufferDataProvider(false);%0A%09%09traceDataProvider.setBufferSize(100);%09%09%0A%09%09traceDataProvider.setCurrentXDataArray(new double%5B%5D%7B10, 23, 34, 45, 56, 78, 88, 99%7D);%0A%09%09traceDataProvider.setCurrentYDataArray(new double%5B%5D%7B11, 44, 55, 45, 88, 98, 52, 23%7D);%09%0A%09%09%0A%09%09//create the trace%0A%09%09Trace trace = new Trace(%22Trace1-XY Plot%22, %0A%09%09%09%09xyGraph.primaryXAxis, xyGraph.primaryYAxis, traceDataProvider);%09%09%09%0A%09%09%0A%09%09//set trace property%0A%09%09trace.setPointStyle(PointStyle.XCROSS);%0A%09%09%0A%09%09//add the trace to xyGraph%0A%09%09xyGraph.addTrace(trace);%09%09%09%0A%09   %0A%09    Display display = Display.getDefault();%0A%09    while (!shell.isDisposed()) %7B%0A%09      if (!display.readAndDispatch())%0A%09        display.sleep();%0A%09    %7D%0A%09   %0A%09%7D%0A%7D%0A

add examples