Examples of PlotWithOverviewModel


Examples of ca.nanometrics.gflot.client.PlotWithOverviewModel

  public Widget createExample() {
   
    final Label selectedPointLabel = new Label(INSTRUCTION);

    PlotWithOverviewModel model = new PlotWithOverviewModel(PlotModelStrategy.defaultStrategy());
    PlotOptions plotOptions = new PlotOptions();
    plotOptions.setDefaultLineSeriesOptions(new LineSeriesOptions().setLineWidth(1).setShow(true));
    plotOptions.setDefaultPointsOptions(new PointsSeriesOptions().setRadius(2).setShow(true));
    plotOptions.setDefaultShadowSize(1);
View Full Code Here

Examples of ca.nanometrics.gflot.client.PlotWithOverviewModel

  private double previous = 0;
  private int timeCounter = 0;

  public Widget createExample() {
    PlotWithOverviewModel model = new PlotWithOverviewModel(PlotModelStrategy.downSamplingStrategy(20));
    PlotOptions plotOptions = new PlotOptions();
    plotOptions.setDefaultLineSeriesOptions(new LineSeriesOptions().setLineWidth(1).setShow(true));
    plotOptions.setDefaultPointsOptions(new PointsSeriesOptions().setRadius(2).setShow(true));
    plotOptions.setDefaultShadowSize(0);

    final SeriesHandler series = model.addSeries("Random Series", "#003366");

    // create the plot
    final PlotWithOverview plot = new PlotWithOverview(model, plotOptions);

    // pull the "fake" RPC service for new data
View Full Code Here

Examples of ca.nanometrics.gflot.client.PlotWithOverviewModel

* @author Alexander De Leon
*/
public class SlidingWindowExample implements GFlotExample {

  public Widget createExample() {
    PlotWithOverviewModel model = new PlotWithOverviewModel(PlotModelStrategy.slidingWindowStrategy(20));
    PlotOptions plotOptions = new PlotOptions();
    plotOptions.setDefaultLineSeriesOptions(new LineSeriesOptions().setLineWidth(1).setShow(true));
    plotOptions.setDefaultPointsOptions(new PointsSeriesOptions().setRadius(2).setShow(true));
    plotOptions.setDefaultShadowSize(0);
    plotOptions.setXAxisOptions(new TimeSeriesAxisOptions());

    PlotOptions overviewPlotOptions = new PlotOptions().setDefaultShadowSize(0).setLegendOptions(
        new LegendOptions().setShow(false)).setDefaultLineSeriesOptions(
        new LineSeriesOptions().setLineWidth(1).setFill(true)).setSelectionOptions(
        new SelectionOptions().setMode(SelectionOptions.X_SELECTION_MODE).setDragging(true)).setXAxisOptions(
        new TimeSeriesAxisOptions());

    final SeriesHandler series = model.addSeries("Random Series", "#FF9900");

    // create the plot
    final PlotWithOverview plot = new PlotWithOverview(model, plotOptions, overviewPlotOptions);

    // pull the "fake" RPC service for new data
View Full Code Here

Examples of ca.nanometrics.gflot.client.PlotWithOverviewModel

  /**
   * @see ca.nanometrics.gflot.client.example.GFlotExample#createExample()
   */
  public Widget createExample() {

    PlotWithOverviewModel model = new PlotWithOverviewModel(PlotModelStrategy.defaultStrategy());
    PlotOptions plotOptions = new PlotOptions();
    plotOptions.setDefaultLineSeriesOptions(new LineSeriesOptions().setLineWidth(1).setShow(true));
    plotOptions.setDefaultPointsOptions(new PointsSeriesOptions().setRadius(2).setShow(true));
    plotOptions.setDefaultShadowSize(0);

    SeriesHandler series = model.addSeries("Random Series", "#2c1d54");

    // generate random data
    for (int i = 0; i < 200; i++) {
      series.add(new DataPoint(i, Random.nextDouble()));
    }
View Full Code Here

Examples of ca.nanometrics.gflot.client.PlotWithOverviewModel

    implements GFlotExample
{

    public Widget createExample()
    {
        PlotWithOverviewModel model = new PlotWithOverviewModel( PlotModelStrategy.slidingWindowStrategy( 20 ) );
        PlotOptions plotOptions = new PlotOptions();
        plotOptions.setGlobalSeriesOptions( new GlobalSeriesOptions()
            .setLineSeriesOptions( new LineSeriesOptions().setLineWidth( 1 ).setShow( true ) )
            .setPointsOptions( new PointsSeriesOptions().setRadius( 2 ).setShow( true ) ).setShadowSize( 0d ) );
        plotOptions.setXAxisOptions( new TimeSeriesAxisOptions() );

        PlotOptions overviewPlotOptions =
            new PlotOptions()
                .setLegendOptions( new LegendOptions().setShow( false ) )
                .setGlobalSeriesOptions(
                    new GlobalSeriesOptions().setLineSeriesOptions( new LineSeriesOptions().setLineWidth( 1 ).setFill( true ) )
                        .setShadowSize( 0d ) )
                .setSelectionOptions( new SelectionOptions().setMode( SelectionMode.X ) )
                .setXAxisOptions( new TimeSeriesAxisOptions() );

        final SeriesHandler series = model.addSeries( "Random Series", "#FF9900" );

        // create the plot
        final PlotWithOverview plot = new PlotWithOverview( model, plotOptions, overviewPlotOptions );

        // pull the "fake" RPC service for new data
View Full Code Here

Examples of ca.nanometrics.gflot.client.PlotWithOverviewModel

     * @see ca.nanometrics.gflot.client.example.GFlotExample#createExample()
     */
    public Widget createExample()
    {

        PlotWithOverviewModel model = new PlotWithOverviewModel( PlotModelStrategy.defaultStrategy() );
        PlotOptions plotOptions = new PlotOptions();
        plotOptions.setGlobalSeriesOptions( new GlobalSeriesOptions()
        .setLineSeriesOptions( new LineSeriesOptions().setLineWidth( 1 ).setShow( true ) )
        .setPointsOptions( new PointsSeriesOptions().setRadius( 2 ).setShow( true ) ).setShadowSize( 0d ) );

        SeriesHandler series = model.addSeries( "Random Series", "#2c1d54" );

        // generate random data
        for ( int i = 0; i < 200; i++ )
        {
            series.add( new DataPoint( i, Random.nextDouble() ) );
View Full Code Here

Examples of ca.nanometrics.gflot.client.PlotWithOverviewModel

    public Widget createExample()
    {

        final Label selectedPointLabel = new Label( INSTRUCTION );

        PlotWithOverviewModel model = new PlotWithOverviewModel( PlotModelStrategy.defaultStrategy() );
        PlotOptions plotOptions = new PlotOptions();
        plotOptions.setGlobalSeriesOptions( new GlobalSeriesOptions()
        .setLineSeriesOptions( new LineSeriesOptions().setLineWidth( 1 ).setShow( true ) )
        .setPointsOptions( new PointsSeriesOptions().setRadius( 2 ).setShow( true ) ).setShadowSize( 1 ) );
        plotOptions.setLegendOptions( new LegendOptions().setShow( false ) );
View Full Code Here

Examples of ca.nanometrics.gflot.client.PlotWithOverviewModel

    private int timeCounter = 0;

    public Widget createExample()
    {
        PlotWithOverviewModel model = new PlotWithOverviewModel( PlotModelStrategy.downSamplingStrategy( 20 ) );
        PlotOptions plotOptions = new PlotOptions();
        plotOptions.setGlobalSeriesOptions( new GlobalSeriesOptions()
            .setLineSeriesOptions( new LineSeriesOptions().setLineWidth( 1 ).setShow( true ) )
            .setPointsOptions( new PointsSeriesOptions().setRadius( 2 ).setShow( true ) ).setShadowSize( 0d ) );
        plotOptions.setLegendOptions( new LegendOptions().setLabelFormatter( new LabelFormatter()
        {
            @Override
            public String formatLabel( String label, Series series )
            {
                return label + " formated";
            }
        } ) );
        plotOptions.setXAxisOptions( new AxisOptions().setShow( false ) );

        final SeriesHandler series = model.addSeries( "Random Series", "#003366" );

        // create the plot
        final PlotWithOverview plot = new PlotWithOverview( model, plotOptions );

        // pull the "fake" RPC service for new data
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.