Class DimensionImpl
java.lang.Object
org.refcodes.graphical.DimensionImpl
- All Implemented Interfaces:
Dimension, HeightAccessor, WidthAccessor
-
Nested Class Summary
Nested classes/interfaces inherited from interface Dimension
Dimension.DimensionAccessor, Dimension.DimensionBuilder<B>, Dimension.DimensionMutator, Dimension.DimensionPropertyNested classes/interfaces inherited from interface HeightAccessor
HeightAccessor.HeightBuilder<B>, HeightAccessor.HeightMutator, HeightAccessor.HeightPropertyNested classes/interfaces inherited from interface WidthAccessor
WidthAccessor.WidthBuilder<B>, WidthAccessor.WidthMutator, WidthAccessor.WidthProperty -
Field Summary
Fields -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedInstantiates 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:
getWidthin interfaceWidthAccessor- Returns:
- The width stored by the width property.
-
getHeight
public int getHeight()Retrieves the height from the height property.- Specified by:
getHeightin interfaceHeightAccessor- Returns:
- The height stored by the height property.
-
toString
-