- 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 TypeMethodDescriptionvoid
setRectangle
(int aPositionX, int aPositionY, int aWidth, int aHeight) Sets the rectangle.void
setRectangle
(Rectangle aRectangle) Sets the rectangle.Methods inherited from interface org.refcodes.graphical.Dimension.DimensionMutator
setDimension, setDimension
Methods inherited from interface org.refcodes.graphical.HeightAccessor.HeightMutator
setHeight
Methods inherited from interface org.refcodes.graphical.Position.PositionMutator
setPosition, setPosition
Methods inherited from interface org.refcodes.graphical.PosXAccessor.PosXMutator
setPositionX
Methods inherited from interface org.refcodes.graphical.PosYAccessor.PosYMutator
setPositionY
Methods 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.
-