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 QSequenceCachableMediaRightGetter implements
20: QSequenceCachableMediaGetter {
21:
22: // Implemented ============================================================
23:
24: public int getMediaLength(QSequenceCachableMedia media) {
25: return media.getRightLength();
26: }
27:
28: public Object getMediaObject(QSequenceCachableMedia media, int index)
29: throws QSequenceException {
30: return media.getMediaRightObject(index);
31: }
32: }
|