Position
, Position.PositionBuilder<Position.PositionPropertyBuilder>
, Position.PositionMutator
, Position.PositionProperty
, Position.PositionPropertyBuilder
, PosXAccessor
, PosXAccessor.PosXBuilder<Position.PositionPropertyBuilder>
, PosXAccessor.PosXMutator
, PosXAccessor.PosXProperty
, PosYAccessor
, PosYAccessor.PosYBuilder<Position.PositionPropertyBuilder>
, PosYAccessor.PosYMutator
, PosYAccessor.PosYProperty
public static class PositionImpl.PositionPropertyBuilderImpl extends PositionImpl implements Position.PositionPropertyBuilder
Position.PositionBuilder<B extends Position.PositionBuilder<B>>, Position.PositionMutator, Position.PositionProperty, Position.PositionPropertyBuilder
PositionImpl.PositionPropertyBuilderImpl
PosXAccessor.PosXBuilder<B extends PosXAccessor.PosXBuilder<B>>, PosXAccessor.PosXMutator, PosXAccessor.PosXProperty
PosYAccessor.PosYBuilder<B extends PosYAccessor.PosYBuilder<B>>, PosYAccessor.PosYMutator, PosYAccessor.PosYProperty
_posX, _posY
Constructor | Description |
---|---|
PositionPropertyBuilderImpl() |
Instantiates a new position property builder impl.
|
PositionPropertyBuilderImpl(int aPosX,
int aPosY) |
Instantiates a new position property builder impl.
|
Modifier and Type | Method | Description |
---|---|---|
void |
setPosition(int aPosX,
int aPosY) |
Sets the position.
|
void |
setPosition(Position aPosition) |
Sets the position.
|
void |
setPositionX(int aPosX) |
Sets the X position for the X position property.
|
void |
setPositionY(int aPosY) |
Sets the Y position for the Y position property.
|
PositionImpl.PositionPropertyBuilderImpl |
withPosition(int aPosX,
int aPosY) |
With position.
|
PositionImpl.PositionPropertyBuilderImpl |
withPosition(Position aPosition) |
With position.
|
PositionImpl.PositionPropertyBuilderImpl |
withPositionX(int aPosX) |
Sets the X position for the X position property.
|
PositionImpl.PositionPropertyBuilderImpl |
withPositionY(int aPosY) |
Sets the Y position for the Y position property.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
addTo, subFrom
getPositionX, getPositionY, toString
getPositionX
getPositionY
public PositionPropertyBuilderImpl()
public PositionPropertyBuilderImpl(int aPosX, int aPosY)
aPosX
- the pos XaPosY
- the pos Ypublic void setPositionX(int aPosX)
setPositionX
in interface PosXAccessor.PosXMutator
aPosX
- The X position to be stored by the X position property.public PositionImpl.PositionPropertyBuilderImpl withPositionX(int aPosX)
withPositionX
in interface PosXAccessor.PosXBuilder<Position.PositionPropertyBuilder>
aPosX
- The X position to be stored by the X position property.public void setPositionY(int aPosY)
setPositionY
in interface PosYAccessor.PosYMutator
aPosY
- The Y position to be stored by the Y position property.public PositionImpl.PositionPropertyBuilderImpl withPositionY(int aPosY)
withPositionY
in interface PosYAccessor.PosYBuilder<Position.PositionPropertyBuilder>
aPosY
- The Y position to be stored by the Y position property.public PositionImpl.PositionPropertyBuilderImpl withPosition(int aPosX, int aPosY)
withPosition
in interface Position.PositionBuilder<Position.PositionPropertyBuilder>
aPosX
- the pos XaPosY
- the pos Ypublic PositionImpl.PositionPropertyBuilderImpl withPosition(Position aPosition)
withPosition
in interface Position.PositionBuilder<Position.PositionPropertyBuilder>
aPosition
- the positionpublic void setPosition(int aPosX, int aPosY)
setPosition
in interface Position.PositionMutator
aPosX
- the pos XaPosY
- the pos Ypublic void setPosition(Position aPosition)
setPosition
in interface Position.PositionMutator
aPosition
- the new positionCopyright © 2018. All rights reserved.