java.lang.Object
org.refcodes.graphical.PositionImpl
- All Implemented Interfaces:
Position
,PosXAccessor
,PosYAccessor
- Direct Known Subclasses:
PositionPropertyBuilder
The Class PositionImpl.
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.refcodes.graphical.Position
Position.PositionBuilder<B extends Position.PositionBuilder<B>>, Position.PositionMutator, Position.PositionProperty
Nested classes/interfaces inherited from interface org.refcodes.graphical.PosXAccessor
PosXAccessor.PosXBuilder<B extends PosXAccessor.PosXBuilder<B>>, PosXAccessor.PosXMutator, PosXAccessor.PosXProperty
Nested classes/interfaces inherited from interface org.refcodes.graphical.PosYAccessor
PosYAccessor.PosYBuilder<B extends PosYAccessor.PosYBuilder<B>>, PosYAccessor.PosYMutator, PosYAccessor.PosYProperty
-
Field Summary
-
Constructor Summary
ModifierConstructorDescriptionprotected
Instantiates a new position impl.PositionImpl
(int aPosX, int aPosY) Instantiates a new position impl. -
Method Summary
-
Field Details
-
_posX
protected int _posX -
_posY
protected int _posY
-
-
Constructor Details
-
PositionImpl
protected PositionImpl()Instantiates a new position impl. -
PositionImpl
public PositionImpl(int aPosX, int aPosY) Instantiates a new position impl.- Parameters:
aPosX
- the pos XaPosY
- the pos Y
-
-
Method Details
-
getPositionX
public int getPositionX()Retrieves the X position from the X position property.- Specified by:
getPositionX
in interfacePosXAccessor
- Returns:
- The X position stored by the X position property.
-
getPositionY
public int getPositionY()Retrieves the Y position from the Y position property.- Specified by:
getPositionY
in interfacePosYAccessor
- Returns:
- The Y position stored by the Y position property.
-
toString
-
hashCode
public int hashCode() -
equals
-