1 /*
2  * This file is part of libbluray
3  * Copyright (C) 2010  William Hahne
4  *
5  * This library is free software; you can redistribute it and/or
6  * modify it under the terms of the GNU Lesser General Public
7  * License as published by the Free Software Foundation; either
8  * version 2.1 of the License, or (at your option) any later version.
9  *
10  * This library is distributed in the hope that it will be useful,
11  * but WITHOUT ANY WARRANTY; without even the implied warranty of
12  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
13  * Lesser General Public License for more details.
14  *
15  * You should have received a copy of the GNU Lesser General Public
16  * License along with this library. If not, see
17  * <http://www.gnu.org/licenses/>.
18  */
19 
20 package javax.media;
21 
22 public class StartEvent extends TransitionEvent {
StartEvent(Controller source, int previous, int current, int target, Time mediaTime, Time tbTime)23     public StartEvent(Controller source, int previous, int current, int target, Time mediaTime, Time tbTime) {
24         super(source, previous, current, target);
25         this.mediaTime = mediaTime;
26         this.tbTime = tbTime;
27     }
28 
getMediaTime()29     public Time getMediaTime() {
30         return mediaTime;
31     }
32 
getTimeBaseTime()33     public Time getTimeBaseTime() {
34         return tbTime;
35     }
36 
toString()37     public String toString() {
38         return getClass().toString() + "[source=" + source + ",mediaTime=" + mediaTime + ",tbTime=" + tbTime + "]";
39     }
40 
41     private final Time mediaTime;
42     private final Time tbTime;
43 
44     private static final long serialVersionUID = -6779753774143606328L;
45 }
46