Package org.timepedia.chronoscope.client

Examples of org.timepedia.chronoscope.client.XYPlot.redraw()


  public void onSaveComment(ChartComment comment)
  {
    final XYPlot plot = chartPanel.getChart().getPlot();
    DomainBarMarker marker = new DomainBarMarker(comment.getDomainValue(), 1.0, comment.getTitle());
    plot.addOverlay(marker);
    plot.redraw();

    // keep reference
    overlayMapping.put(comment.getId(), marker);   
  }
View Full Code Here


  public void onDeleteComment(ChartComment comment)
  {
    Overlay marker = overlayMapping.get(comment.getId());
    final XYPlot plot = chartPanel.getChart().getPlot();
    plot.removeOverlay(marker);
    plot.redraw();

    resizeChartView(); // TODO: Why this?
  }

  public void onHighlightComment(ChartComment comment)
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.