commons.java subversion repository
sventon subversion web client - http://www.sventon.org |
[show recent changes] | |
Rev: 688 - https://secure.bioinfweb.info/Code/svn/commons.java / trunk / main / info.bioinfweb.commons.core / src / info / bioinfweb / commons / progress / VoidProgressMonitor.java |
Show File - VoidProgressMonitor.java [show properties] |

1 | /* |
2 | * bioinfweb.commons.java - Shared components of bioinfweb projects made available in a Java library |
3 | * Copyright (C) 2008-2011, 2013-2018 Ben Stöver, Sarah Wiechers |
4 | * <http://commons.bioinfweb.info/Java> |
5 | * |
6 | * This file is free software: you can redistribute it and/or modify |
7 | * it under the terms of the GNU Lesser General Public License as published by |
8 | * the Free Software Foundation, either version 3 of the License, or |
9 | * (at your option) any later version. |
10 | * |
11 | * This file is distributed in the hope that it will be useful, |
12 | * but WITHOUT ANY WARRANTY; without even the implied warranty of |
13 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
14 | * GNU Lesser General Public License for more details. |
15 | * |
16 | * You should have received a copy of the GNU Lesser General Public License |
17 | * along with this program. If not, see <http://www.gnu.org/licenses/>. |
18 | */ |
19 | package info.bioinfweb.commons.progress; |
20 | |
21 | |
22 | |
23 | /** |
24 | * Implementation of {@link ProgressMonitor} that only stores the progress and does not output it anywhere. |
25 | * |
26 | * @author Ben Stöver |
27 | */ |
28 | public class VoidProgressMonitor extends AbstractProgressMonitor implements ProgressMonitor { |
29 | /** |
30 | * This method always returns <code>false</code>. |
31 | * |
32 | * @see info.bioinfweb.commons.progress.ProgressMonitor#isCanceled() |
33 | */ |
34 | @Override |
35 | public boolean isCanceled() { |
36 | return false; |
37 | } |
38 | |
39 | |
40 | @Override |
41 | protected void onProgress(double value, String text) {} |
42 | } |
sventon 2.5.1