01: /*
02: * ====================================================================
03: * Copyright (c) 2004 Marc Strapetz, marc.strapetz@smartsvn.com.
04: * All rights reserved.
05: *
06: * This software is licensed as described in the file COPYING, which
07: * you should have received as part of this distribution. Use is
08: * subject to license terms.
09: * ====================================================================
10: */
11:
12: package de.regnis.q.sequence.media;
13:
14: import de.regnis.q.sequence.core.*;
15:
16: /**
17: * @author Marc Strapetz
18: */
19: public class QSequenceMediaDummyIndexTransformer implements
20: QSequenceMediaIndexTransformer {
21:
22: // Fields =================================================================
23:
24: private final int mediaLeftLength;
25: private final int mediaRightLength;
26:
27: // Setup ==================================================================
28:
29: public QSequenceMediaDummyIndexTransformer(QSequenceMedia media) {
30: this .mediaLeftLength = media.getLeftLength();
31: this .mediaRightLength = media.getRightLength();
32: }
33:
34: public QSequenceMediaDummyIndexTransformer(int mediaLeftLength,
35: int mediaRightLength) {
36: this .mediaLeftLength = mediaLeftLength;
37: this .mediaRightLength = mediaRightLength;
38: }
39:
40: // Implemented ============================================================
41:
42: public int getMediaLeftIndex(int index) {
43: return index;
44: }
45:
46: public int getMediaRightIndex(int index) {
47: return index;
48: }
49:
50: public int getMediaLeftLength() {
51: return mediaLeftLength;
52: }
53:
54: public int getMediaRightLength() {
55: return mediaRightLength;
56: }
57: }
|