org.refcodes.mixin.impls.TableBodyImpl Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of refcodes-mixin Show documentation
Show all versions of refcodes-mixin Show documentation
Artifact for mixins of general interest.
// /////////////////////////////////////////////////////////////////////////////
// REFCODES.ORG
// /////////////////////////////////////////////////////////////////////////////
// This code is copyright (c) by Siegfried Steiner, Munich, Germany and licensed
// under the following (see "http://en.wikipedia.org/wiki/Multi-licensing")
// licenses:
// -----------------------------------------------------------------------------
// GNU General Public License, v3.0 ("http://www.gnu.org/licenses/gpl-3.0.html")
// -----------------------------------------------------------------------------
// Apache License, v2.0 ("http://www.apache.org/licenses/LICENSE-2.0")
// -----------------------------------------------------------------------------
// Please contact the copyright holding author(s) of the software artifacts in
// question for licensing issues not being covered by the above listed licenses,
// also regarding commercial licensing models or regarding the compatibility
// with other open source licenses.
// /////////////////////////////////////////////////////////////////////////////
package org.refcodes.mixin.impls;
import org.refcodes.mixin.TableBody;
/**
* Implementation of the {@link TableBody} interface.
*
* @param The type of the "character", may be a char or a sprite or a byte
* array.
*
*/
public class TableBodyImpl implements TableBody {
// /////////////////////////////////////////////////////////////////////////
// STATIC:
// /////////////////////////////////////////////////////////////////////////
// /////////////////////////////////////////////////////////////////////////
// CONSTANTS:
// /////////////////////////////////////////////////////////////////////////
// /////////////////////////////////////////////////////////////////////////
// VARIABLES:
// /////////////////////////////////////////////////////////////////////////
private T _leftEdge;
private T _topLeftEdge;
private T _dividerEdge;
private T _topDividerEdge;
private T _bottomDividerEdge;
private T _rightEdge;
private T _topRightEdge;
private T _bottomRightEdge;
private T _bottomLeftEdge;
private T _leftLine;
private T _dividerLine;
private T _rightLine;
private T _topLine;
// /////////////////////////////////////////////////////////////////////////
// CONSTRUCTORS:
// /////////////////////////////////////////////////////////////////////////
/**
* Constructs the table tail.
* @param aLeftLine The left line.
* @param aLeftEdge The top left edge.
* @param aTopLine The top line.
* @param aDividerEdge The divider edge.
* @param aTopDividerEdge The top divider edge.
* @param aBottomDividerEdge The bottom divider edge.
* @param aRightLine The right line.
* @param aRightEdge The right edge.
* @param aRightTopEdge The top right edge.
* @param aDividerLineThe divider line.
*/
public TableBodyImpl( T aLeftLine, T aLeftEdge, T aTopLeftEdge, T aBottomLeftEdge, T aTopLine, T aDividerLine, T aDividerEdge, T aTopDividerEdge, T aBottomDividerEdge, T aRightLine, T aRightEdge, T aTopRightEdge, T aBottomRightEdge ) {
_leftEdge = aLeftEdge;
_topLeftEdge = aTopLeftEdge;
_bottomLeftEdge = aBottomLeftEdge;
_dividerEdge = aDividerEdge;
_topDividerEdge = aTopDividerEdge;
_bottomDividerEdge = aBottomDividerEdge;
_rightEdge = aRightEdge;
_topRightEdge = aTopRightEdge;
_bottomRightEdge = aBottomRightEdge;
_leftLine = aLeftLine;
_dividerLine = aDividerLine;
_rightLine = aRightLine;
_topLine = aTopLine;
}
// /////////////////////////////////////////////////////////////////////////
// METHODS:
// /////////////////////////////////////////////////////////////////////////
@Override
public T getLeftEdge() {
return _leftEdge;
}
@Override
public T getTopLeftEdge() {
return _topLeftEdge;
}
@Override
public T getBottomLeftEdge() {
return _bottomLeftEdge;
}
@Override
public T getDividerEdge() {
return _dividerEdge;
}
@Override
public T getTopDividerEdge() {
return _topDividerEdge;
}
@Override
public T getBottomDividerEdge() {
return _bottomDividerEdge;
}
@Override
public T getRightEdge() {
return _rightEdge;
}
@Override
public T getTopRightEdge() {
return _topRightEdge;
}
@Override
public T getBottomRightEdge() {
return _bottomRightEdge;
}
@Override
public T getLeftLine() {
return _leftLine;
}
@Override
public T getDividerLine() {
return _dividerLine;
}
@Override
public T getRightLine() {
return _rightLine;
}
@Override
public T getTopLine() {
return _topLine;
}
// /////////////////////////////////////////////////////////////////////////
// HOOKS:
// /////////////////////////////////////////////////////////////////////////
// /////////////////////////////////////////////////////////////////////////
// HELPER:
// /////////////////////////////////////////////////////////////////////////
// /////////////////////////////////////////////////////////////////////////
// INNER CLASSES:
// /////////////////////////////////////////////////////////////////////////
}