![JAR search and dependency download from the Maven repository](/logo.png)
net.vectorpublish.desktop.vp.split.bean.SplitData Maven / Gradle / Ivy
The newest version!
/*
* Copyright (c) 2016, Peter Rader. All rights reserved.
* ___ ___ __ ______ __ __ __ __
* | | |.-----..----.| |_ .-----..----.| __ \.--.--.| |--.| ||__|.-----.| |--.
* | | || -__|| __|| _|| _ || _|| __/| | || _ || || ||__ --|| |
* \_____/ |_____||____||____||_____||__| |___| |_____||_____||__||__||_____||__|__|
*
* http://www.gnu.org/licenses/gpl-3.0.html
*/
package net.vectorpublish.desktop.vp.split.bean;
import java.util.List;
import net.vectorpublish.desktop.vp.api.history.ReadOnlyHistoryStepDataBean;
public class SplitData implements ReadOnlyHistoryStepDataBean {
private final boolean vertical;
private final int border;
private final float percent;
private List path;
public SplitData(boolean vertical, int border, float percent, List path) {
if (Float.isInfinite(percent) || percent == Float.NaN || percent > 100 || percent < 0) {
throw new IllegalArgumentException(percent + "% is no legal value.");
}
this.vertical = vertical;
this.border = border;
this.percent = percent;
this.path = path;
}
public boolean isVertical() {
return vertical;
}
public int getBorder() {
return border;
}
public float getPercent() {
return percent;
}
public List getPath() {
return path;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy