java.lang.Object
org.refcodes.graphical.DimensionImpl
- All Implemented Interfaces:
Dimension
,HeightAccessor
,WidthAccessor
The Class DimensionImpl.
- Author:
- steiner
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.refcodes.graphical.Dimension
Dimension.DimensionAccessor, Dimension.DimensionBuilder<B extends Dimension.DimensionBuilder<B>>, Dimension.DimensionMutator, Dimension.DimensionProperty
Nested classes/interfaces inherited from interface org.refcodes.graphical.HeightAccessor
HeightAccessor.HeightBuilder<B extends HeightAccessor.HeightBuilder<B>>, HeightAccessor.HeightMutator, HeightAccessor.HeightProperty
Nested classes/interfaces inherited from interface org.refcodes.graphical.WidthAccessor
WidthAccessor.WidthBuilder<B extends WidthAccessor.WidthBuilder<B>>, WidthAccessor.WidthMutator, WidthAccessor.WidthProperty
-
Field Summary
-
Constructor Summary
ModifierConstructorDescriptionprotected
Instantiates a new dimension impl.DimensionImpl
(int aWidth, int aHeight) Instantiates a new dimension impl. -
Method Summary
-
Field Details
-
_width
protected int _width -
_height
protected int _height
-
-
Constructor Details
-
DimensionImpl
protected DimensionImpl()Instantiates a new dimension impl. -
DimensionImpl
public DimensionImpl(int aWidth, int aHeight) Instantiates a new dimension impl.- Parameters:
aWidth
- the widthaHeight
- the height
-
-
Method Details
-
getWidth
public int getWidth()Retrieves the width from the width property.- Specified by:
getWidth
in interfaceWidthAccessor
- Returns:
- The width stored by the width property.
-
getHeight
public int getHeight()Retrieves the height from the height property.- Specified by:
getHeight
in interfaceHeightAccessor
- Returns:
- The height stored by the height property.
-
toString
-