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 org.refcodes.graphical.Dimension.DimensionBuilder
withDimension, withDimensionMethods inherited from interface org.refcodes.graphical.HeightAccessor.HeightBuilder
withHeightMethods inherited from interface org.refcodes.graphical.Position.PositionBuilder
withPosition, withPositionMethods inherited from interface org.refcodes.graphical.Position.PositionMutator
setPosition, setPositionMethods inherited from interface org.refcodes.graphical.PosXAccessor.PosXBuilder
withPositionXMethods inherited from interface org.refcodes.graphical.PosXAccessor.PosXMutator
setPositionXMethods inherited from interface org.refcodes.graphical.PosYAccessor.PosYBuilder
withPositionYMethods inherited from interface org.refcodes.graphical.PosYAccessor.PosYMutator
setPositionYMethods inherited from interface org.refcodes.graphical.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
-