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.DimensionPropertyBuilder
WidthAccessor.WidthBuilder<B extends WidthAccessor.WidthBuilder<B>>, WidthAccessor.WidthMutator, WidthAccessor.WidthProperty
HeightAccessor.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 a widthaHeight
- the a heightpublic int getWidth()
getWidth
in interface WidthAccessor
public int getHeight()
getHeight
in interface HeightAccessor
Copyright © 2018. All rights reserved.