Package ca.nanometrics.gflot.client.event

Examples of ca.nanometrics.gflot.client.event.PlotHoverListener


    plotOptions.setLegendOptions(new LegendOptions().setShow(false));

    plotOptions.setSelectionOptions(new SelectionOptions().setDragging(true).setMode("x"));
    final PlotWithOverview plot = new PlotWithOverview(model, plotOptions);
    // add hover listener
    plot.addHoverListener(new PlotHoverListener() {
      public void onPlotHover(Plot plot, PlotPosition position, PlotItem item) {
        if (item != null) {
          selectedPointLabel
              .setText("x: " + item.getDataPoint().getX() + ", y: " + item.getDataPoint().getY());
        } else {
View Full Code Here


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

    // add hover listener
    plot.addHoverListener(new PlotHoverListener() {
      public void onPlotHover(Plot plot, PlotPosition position, PlotItem item) {
        if(position != null){
          positionLabel.setText("position: ("+position.getX()+","+position.getY()+")");
        }
        if (item != null) {
View Full Code Here

        .setPointsOptions( new PointsSeriesOptions().setRadius( 2 ).setShow( true ) ).setShadowSize( 1 ) );
        plotOptions.setLegendOptions( new LegendOptions().setShow( false ) );

        final PlotWithOverview plot = new PlotWithOverview( model, plotOptions );
        // add hover listener
        plot.addHoverListener( new PlotHoverListener()
        {
            public void onPlotHover( Plot plot, PlotPosition position, PlotItem item )
            {
                if ( item != null )
                {
View Full Code Here

        final PopupPanel popup = new PopupPanel();
          final Label label = new Label();
          popup.add(label);

    // add hover listener
    plot.addHoverListener(new PlotHoverListener() {
      public void onPlotHover(Plot plot, PlotPosition position, PlotItem item) {
        if(position != null){
          positionLabel.setText("position: ("+position.getX()+","+position.getY()+")");
        }
        if (item != null) {
View Full Code Here

TOP

Related Classes of ca.nanometrics.gflot.client.event.PlotHoverListener

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.