面向对象课设
2016-05-23 15:44:11 0 举报
面向对象的媒体播放器类图
作者其他创作
大纲/内容
PlayerView
public void updateProgess(); public void end();
ProgressObserverInterface
PlayerModelInterface
ControllerInterface
+ public void start(String path); public void stop(); public void increaseProgress(); public void decreaseProgress(); public void setModelProgress(int progress); public int getDuration(); public void notifyPattern(int pattern); public void close();
Activity
oncreat();
MainActivity
oncreat();turntomusic();turntovedio();
PlayerModel
private int progress; private MediaPlayer mediaPlayer; private ProgressObserver progressObservers; private String path; private boolean flag; private SurfaceHolder surfaceHolder;
vediocontroller
private PlayerModelInterface model; private PlayerView view; private List title = new ArrayList();//记录视频文件的名字 private List path = new ArrayList();//记录视频文件的路径 private Cursor cursor; private Handler myHandler = new Handler();; private Thread thread; private boolean flag = true;
+oncreat() public void start(String path); public void stop(); public void increaseProgress(); public void decreaseProgress(); public void setModelProgress(int progress); public int getDuration(); public void notifyPattern(int pattern); public void close();
musictroller
private PlayerModelInterface model; private PlayerView view; private List title = new ArrayList();//记录音乐文件的名字 private List path = new ArrayList();//记录音乐文件的路径 private Cursor cursor; private Handler myHandler = new Handler();; private Thread thread; private boolean flag = true;
0 条评论
下一页