/*
* GRAL: GRAphing Library for Java(R)
*
* (C) Copyright 2009-2016 Erich Seifert ,
* Michael Seifert
*
* This file is part of GRAL.
*
* GRAL is free software: you can redistribute it and/or modify
* it under the terms of the GNU Lesser General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* GRAL is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public License
* along with GRAL. If not, see .
*/
package de.erichseifert.gral.graphics.layout;
public abstract class AbstractLayout implements Layout {
private static final long serialVersionUID = 5961215915010787754L;
/** Horizontal spacing of components. */
private double gapX;
/** Vertical spacing of components. */
private double gapY;
public AbstractLayout(double gapX, double gapY) {
this.gapX = gapX;
this.gapY = gapY;
}
@Override
public double getGapX() {
return gapX;
}
@Override
public void setGapX(double gapX) {
this.gapX = gapX;
}
@Override
public double getGapY() {
return gapY;
}
@Override
public void setGapY(double gapY) {
this.gapY = gapY;
}
}
Ads help maintain this website.