2
Copyright 2008 WebAtlas
3
Authors : Mathieu Bastian, Mathieu Jacomy, Julian Bilcke
4
Website : http://www.gephi.org
6
This file is part of Gephi.
8
Gephi is free software: you can redistribute it and/or modify
9
it under the terms of the GNU General Public License as published by
10
the Free Software Foundation, either version 3 of the License, or
11
(at your option) any later version.
13
Gephi is distributed in the hope that it will be useful,
14
but WITHOUT ANY WARRANTY; without even the implied warranty of
15
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16
GNU General Public License for more details.
18
You should have received a copy of the GNU General Public License
19
along with Gephi. If not, see <http://www.gnu.org/licenses/>.
22
package org.gephi.timeline;
24
import org.gephi.graph.api.Graph;
25
import org.gephi.timeline.api.Timeline;
29
* @author Julian Bilcke
31
public class TimelineImpl implements Timeline {
34
private TimelinePlayerImpl player;
36
public String getName() {
37
return "Desktop Timeline Controller";
40
public void setGraph(Graph graph) {
41
//this.graph = new DirectedGraph();
42
this.player = new TimelinePlayerImpl();
53
public void setPositionTo(double position) {
54
player.setPositionTo(position);
57
public void setPositionTo(Comparable position) {
58
player.setPositionTo(position);
61
public double getPosition() {
62
return player.getPosition();
65
public boolean isPlaying() {
66
return player.isPlaying();
69
public boolean isStopped() {
70
return player.isStopped();
73
public void setSpeed(double slicepersecond) {
74
player.setSpeed(slicepersecond);
77
public Comparable getFirstComparable() {
78
throw new UnsupportedOperationException("Not supported yet.");
81
public Comparable getLastComparable() {
82
throw new UnsupportedOperationException("Not supported yet.");