- All Superinterfaces:
PosXAccessor
,PosYAccessor
- All Known Subinterfaces:
Position.PositionProperty
,Rectangle
,Rectangle.RectangleProperty
- All Known Implementing Classes:
PositionImpl
,PositionPropertyBuilder
,RectangleImpl
Provides an accessor for a Y position property.
-
Nested Class Summary
Modifier and TypeInterfaceDescriptionstatic interface
Position.PositionBuilder<B extends Position.PositionBuilder<B>>
The Interface PositionBuilder.static interface
The Interface PositionMutator.static interface
The Interface 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
-
Method Summary
Methods inherited from interface org.refcodes.graphical.PosXAccessor
getPositionX
Methods inherited from interface org.refcodes.graphical.PosYAccessor
getPositionY
-
Method Details
-
toAddTo
Adds the givenPosition
to thisPosition
(does not modify thisPosition
) and returns the resultingPosition
.- Parameters:
aPosition
- The position to be added.- Returns:
- The resulting position.
-
toSubFrom
Subtracts the givenPosition
from thisPosition
(does not modify thisPosition
) and returns the resultingPosition
.- Parameters:
aPosition
- The position to be subtracted.- Returns:
- The resulting position.
-
equals
Equals.- Parameters:
aPositionA
- the position AaPositionB
- the position B- Returns:
- true, if successful
-