public class DimensionImpl extends Object implements Dimension
| Modifier and Type | Class and Description |
|---|---|
static class |
DimensionImpl.DimensionPropertyBuilderImpl
The Class DimensionPropertyBuilderImpl.
|
Dimension.DimensionBuilder<B extends Dimension.DimensionBuilder<B>>, Dimension.DimensionMutator, Dimension.DimensionProperty, Dimension.DimensionPropertyBuilderWidthAccessor.WidthBuilder<B extends WidthAccessor.WidthBuilder<B>>, WidthAccessor.WidthMutator, WidthAccessor.WidthPropertyHeightAccessor.HeightBuilder<B extends HeightAccessor.HeightBuilder<B>>, HeightAccessor.HeightMutator, HeightAccessor.HeightProperty| Modifier and Type | Field and Description |
|---|---|
protected int |
_height |
protected int |
_width |
| Modifier | Constructor and Description |
|---|---|
protected |
DimensionImpl()
Instantiates a new dimension impl.
|
|
DimensionImpl(int aWidth,
int aHeight)
Instantiates a new dimension impl.
|
| Modifier and Type | Method and Description |
|---|---|
int |
getHeight()
Retrieves the height from the height property.
|
int |
getWidth()
Retrieves the width from the width property.
|
String |
toString() |
protected DimensionImpl()
public DimensionImpl(int aWidth,
int aHeight)
aWidth - the widthaHeight - the heightpublic int getWidth()
getWidth in interface WidthAccessorpublic int getHeight()
getHeight in interface HeightAccessorCopyright © 2018. All rights reserved.