Interface Rectangle.RectangleBuilder<B extends Rectangle.RectangleBuilder<B>>
- Type Parameters:
B- the generic type
- All Superinterfaces:
Dimension.DimensionBuilder<B>, HeightAccessor.HeightBuilder<B>, Position.PositionBuilder<B>, Position.PositionMutator, PosXAccessor.PosXBuilder<B>, PosXAccessor.PosXMutator, PosYAccessor.PosYBuilder<B>, PosYAccessor.PosYMutator, WidthAccessor.WidthBuilder<B>
- Enclosing interface:
Rectangle
public static interface Rectangle.RectangleBuilder<B extends Rectangle.RectangleBuilder<B>>
extends Dimension.DimensionBuilder<B>, Position.PositionBuilder<B>
Provides a builder for a rectangle property (dimension and height).
-
Method Summary
Modifier and TypeMethodDescriptionwithRectangle(int aPositionX, int aPositionY, int aWidth, int aHeight) With rectangle.withRectangle(Rectangle aRectangle) With rectangle.Methods inherited from interface Dimension.DimensionBuilder
withDimension, withDimensionMethods inherited from interface HeightAccessor.HeightBuilder
withHeightMethods inherited from interface Position.PositionBuilder
withPosition, withPositionMethods inherited from interface Position.PositionMutator
setPosition, setPositionMethods inherited from interface PosXAccessor.PosXBuilder
withPositionXMethods inherited from interface PosXAccessor.PosXMutator
setPositionXMethods inherited from interface PosYAccessor.PosYBuilder
withPositionYMethods inherited from interface PosYAccessor.PosYMutator
setPositionYMethods inherited from interface WidthAccessor.WidthBuilder
withWidth
-
Method Details
-
withRectangle
With rectangle.- Parameters:
aPositionX- The X position of the rectangle.aPositionY- The Y position of the rectangle.aWidth- The width of the rectangle.aHeight- The height of the rectangle.- Returns:
- The invoked instance as of the builder pattern.
-
withRectangle
-