Package net.fenyo.gnetwatch.data

Examples of net.fenyo.gnetwatch.data.EventGeneric


      final long time_to_display = now - now % _getDelayPerInterval();
      final int pixels_offset = (pixels_per_interval * (int) (now % _getDelayPerInterval())) / (int) _getDelayPerInterval();
      final int last_interval_pos = dimension.width - axis_margin_right - pixels_offset;

      for (int i = 0; i < events.size(); i++) {
        final EventGeneric event = events.get(i);
        final long xpos = ((long) last_interval_pos) + (((long) pixels_per_interval) *
            (event.getDate().getTime() - time_to_display)) / _getDelayPerInterval();
        if (xpos < -1000)
          point_x[i] = -1000;
        else if (xpos > 1000 + dimension.width)
          point_x[i] = 1000 + dimension.width;
        else point_x[i] = (int) xpos;
View Full Code Here

TOP

Related Classes of net.fenyo.gnetwatch.data.EventGeneric

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.