getValue method
Implementation
double getValue()
{
if (cardinalDirection == CardinalDirection.North) {
return _box.top;
}
else if (cardinalDirection == CardinalDirection.East) {
return _box.right;
}
else if (cardinalDirection == CardinalDirection.South) {
return _box.bottom;
}
else if (cardinalDirection == CardinalDirection.West) {
return _box.left;
}
else {
throw new IllegalStateException("BoxDimension.getValue() cannot support ordinal directions as reference to _box field.");
}
}