1 /*******************************************************************************
2 * Copyright (c) 2012, 2013 Ericsson
4 * All rights reserved. This program and the accompanying materials are
5 * made available under the terms of the Eclipse Public License v1.0 which
6 * accompanies this distribution, and is available at
7 * http://www.eclipse.org/legal/epl-v10.html
10 * Patrick Tasse - Initial API and implementation
11 *******************************************************************************/
13 package org
.eclipse
.linuxtools
.tmf
.ui
.widgets
.timegraph
;
15 import java
.util
.EventObject
;
18 * Time selection event
21 * @author Patrick Tasse
23 public class TimeGraphTimeEvent
extends EventObject
{
26 * Default serial version UID for this class.
29 private static final long serialVersionUID
= 1L;
32 * The selection begin time.
34 private final long fBeginTime
;
37 * The selection end time.
39 private final long fEndTime
;
42 * Standard constructor
45 * The source of this event
47 * The time that was requested
48 * @deprecated As of 2.1, use {@link #TimeGraphTimeEvent(Object, long, long)}
51 public TimeGraphTimeEvent(Object source
, long time
) {
58 * Standard constructor
61 * The source of this event
63 * The selection begin time
65 * The selection end time
68 public TimeGraphTimeEvent(Object source
, long beginTime
, long endTime
) {
70 fBeginTime
= beginTime
;
75 * @return the selected time
76 * @deprecated As of 2.1, use {@link #getBeginTime()} and {@link #getEndTime()}
79 public long getTime() {
84 * @return the selection begin time
87 public long getBeginTime() {
92 * @return the selection end time
95 public long getEndTime() {
This page took 0.032078 seconds and 5 git commands to generate.