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 org.refcodes.graphical.Dimension.DimensionMutator
setDimension, setDimensionMethods inherited from interface org.refcodes.graphical.HeightAccessor.HeightMutator
setHeightMethods inherited from interface org.refcodes.graphical.Position.PositionMutator
setPosition, setPositionMethods inherited from interface org.refcodes.graphical.PosXAccessor.PosXMutator
setPositionXMethods inherited from interface org.refcodes.graphical.PosYAccessor.PosYMutator
setPositionYMethods inherited from interface org.refcodes.graphical.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.
-