Module org.refcodes.graphical
Package org.refcodes.graphical
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
All Methods Instance Methods Abstract Methods Modifier and Type Method Description BwithRectangle(int aPositionX, int aPositionY, int aWidth, int aHeight)With rectangle.BwithRectangle(Rectangle aRectangle)With rectangle.-
Methods inherited from interface org.refcodes.graphical.Dimension.DimensionBuilder
withDimension, withDimension
-
Methods inherited from interface org.refcodes.graphical.HeightAccessor.HeightBuilder
withHeight
-
Methods inherited from interface org.refcodes.graphical.Position.PositionBuilder
withPosition, withPosition
-
Methods inherited from interface org.refcodes.graphical.Position.PositionMutator
setPosition, setPosition
-
Methods inherited from interface org.refcodes.graphical.PosXAccessor.PosXBuilder
withPositionX
-
Methods inherited from interface org.refcodes.graphical.PosXAccessor.PosXMutator
setPositionX
-
Methods inherited from interface org.refcodes.graphical.PosYAccessor.PosYBuilder
withPositionY
-
Methods inherited from interface org.refcodes.graphical.PosYAccessor.PosYMutator
setPositionY
-
Methods inherited from interface org.refcodes.graphical.WidthAccessor.WidthBuilder
withWidth
-
-
-
-
Method Detail
-
withRectangle
B withRectangle(int aPositionX, int aPositionY, int aWidth, int aHeight)
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.
-
-