Class DimensionImpl
java.lang.Object
org.refcodes.graphical.DimensionImpl
-
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.DimensionPropertyNested classes/interfaces inherited from interface org.refcodes.graphical.HeightAccessor
HeightAccessor.HeightBuilder<B extends HeightAccessor.HeightBuilder<B>>, HeightAccessor.HeightMutator, HeightAccessor.HeightPropertyNested classes/interfaces inherited from interface org.refcodes.graphical.WidthAccessor
WidthAccessor.WidthBuilder<B extends 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
-