1 /* 2 * aTunes 3 * Copyright (C) Alex Aranda, Sylvain Gaudard and contributors 4 * 5 * See http://www.atunes.org/wiki/index.php?title=Contributing for information about contributors 6 * 7 * http://www.atunes.org 8 * http://sourceforge.net/projects/atunes 9 * 10 * This program is free software; you can redistribute it and/or 11 * modify it under the terms of the GNU General Public License 12 * as published by the Free Software Foundation; either version 2 13 * of the License, or (at your option) any later version. 14 * 15 * This program is distributed in the hope that it will be useful, 16 * but WITHOUT ANY WARRANTY; without even the implied warranty of 17 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 18 * GNU General Public License for more details. 19 */ 20 21 package net.sourceforge.atunes.model; 22 23 /** 24 * Component to show a progress slider that user can move 25 * 26 * @author alex 27 * 28 */ 29 public interface IProgressSlider extends IPanel { 30 31 /** 32 * Sets played time 33 * 34 * @param time 35 * @param remainingTime 36 * @param fading 37 */ setProgress(long time, long remainingTime, boolean fading)38 public void setProgress(long time, long remainingTime, boolean fading); 39 40 /** 41 * Delegate method 42 * 43 * @param value 44 */ setValue(int value)45 public void setValue(int value); 46 47 /** 48 * Delegate method 49 * 50 * @return 51 */ getMaximum()52 public int getMaximum(); 53 54 /** 55 * Delegate method 56 * 57 * @return 58 */ getProgressBarWidth()59 public int getProgressBarWidth(); 60 61 /** 62 * Delegate method 63 * 64 * @param length 65 */ setMaximum(int length)66 public void setMaximum(int length); 67 68 /** 69 * Delegate method 70 * 71 * @return 72 */ getValue()73 public int getValue(); 74 75 }