Interface Rectangle.RectangleMutator
- All Superinterfaces:
Dimension.DimensionMutator, HeightAccessor.HeightMutator, Position.PositionMutator, PosXAccessor.PosXMutator, PosYAccessor.PosYMutator, WidthAccessor.WidthMutator
- All Known Subinterfaces:
Rectangle.RectangleProperty
- Enclosing interface:
Rectangle
public static interface Rectangle.RectangleMutator
extends Dimension.DimensionMutator, Position.PositionMutator
Provides a mutator for a rectangle property (dimension and height).
-
Method Summary
Modifier and TypeMethodDescriptionvoidsetRectangle(int aPositionX, int aPositionY, int aWidth, int aHeight) Sets the rectangle.voidsetRectangle(Rectangle aRectangle) Sets the rectangle.Methods inherited from interface Dimension.DimensionMutator
setDimension, setDimensionMethods inherited from interface HeightAccessor.HeightMutator
setHeightMethods inherited from interface Position.PositionMutator
setPosition, setPositionMethods inherited from interface PosXAccessor.PosXMutator
setPositionXMethods inherited from interface PosYAccessor.PosYMutator
setPositionYMethods inherited from interface WidthAccessor.WidthMutator
setWidth
-
Method Details
-
setRectangle
void setRectangle(int aPositionX, int aPositionY, int aWidth, int aHeight) Sets the 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.
-
setRectangle
Sets the rectangle.- Parameters:
aRectangle- the new rectangle's metrics to set.
-