franta-hg@3: /** franta-hg@3: * copy-image-resizer franta-hg@3: * Copyright © 2014 František Kučera (frantovo.cz) franta-hg@3: * franta-hg@3: * This program is free software: you can redistribute it and/or modify franta-hg@3: * it under the terms of the GNU General Public License as published by franta-hg@3: * the Free Software Foundation, either version 3 of the License, or franta-hg@3: * (at your option) any later version. franta-hg@3: * franta-hg@3: * This program is distributed in the hope that it will be useful, franta-hg@3: * but WITHOUT ANY WARRANTY; without even the implied warranty of franta-hg@3: * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the franta-hg@3: * GNU General Public License for more details. franta-hg@3: * franta-hg@3: * You should have received a copy of the GNU General Public License franta-hg@3: * along with this program. If not, see . franta-hg@3: */ franta-hg@5: package cz.frantovo.copyImageResizer; franta-hg@3: franta-hg@3: /** franta-hg@6: * franta-hg@3: * @author Ing. František Kučera (frantovo.cz) franta-hg@3: */ franta-hg@7: public class SizeSpecification { franta-hg@3: franta-hg@7: private final int width; franta-hg@7: private final int height; franta-hg@7: private final String directory; franta-hg@7: private final boolean resizeSmaller; franta-hg@3: franta-hg@7: public SizeSpecification(int width, int height, String directory, boolean resizeSmaller) { franta-hg@7: this.width = width; franta-hg@7: this.height = height; franta-hg@7: this.directory = directory; franta-hg@7: this.resizeSmaller = resizeSmaller; franta-hg@3: } franta-hg@3: franta-hg@7: public int getWidth() { franta-hg@7: return width; franta-hg@3: } franta-hg@3: franta-hg@7: public int getHeight() { franta-hg@7: return height; franta-hg@3: } franta-hg@3: franta-hg@7: public String getDirectory() { franta-hg@7: return directory; franta-hg@3: } franta-hg@3: franta-hg@7: public boolean isResizeSmaller() { franta-hg@7: return resizeSmaller; franta-hg@3: } franta-hg@3: franta-hg@7: @Override franta-hg@7: public String toString() { franta-hg@7: return width + "×" + height + " → " + directory; franta-hg@3: } franta-hg@3: }