- All Superinterfaces:
Dimension
,Dimension.DimensionAccessor
,Dimension.DimensionMutator
,HeightAccessor
,HeightAccessor.HeightMutator
,HeightAccessor.HeightProperty
,WidthAccessor
,WidthAccessor.WidthMutator
,WidthAccessor.WidthProperty
- All Known Subinterfaces:
PixmapImageBuilder<PX>
,Rectangle.RectangleProperty
- All Known Implementing Classes:
RgbPixmapImageBuilder
- Enclosing interface:
- Dimension
public static interface Dimension.DimensionProperty
extends Dimension.DimensionAccessor, Dimension.DimensionMutator, WidthAccessor.WidthProperty, HeightAccessor.HeightProperty
Provides a property (getter / setter) for a dimension property (width and
height).
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.refcodes.graphical.Dimension
Dimension.DimensionAccessor, Dimension.DimensionBuilder<B extends Dimension.DimensionBuilder<B>>, Dimension.DimensionMutator, Dimension.DimensionProperty
Nested classes/interfaces inherited from interface org.refcodes.graphical.HeightAccessor
HeightAccessor.HeightBuilder<B extends HeightAccessor.HeightBuilder<B>>, HeightAccessor.HeightMutator, HeightAccessor.HeightProperty
Nested classes/interfaces inherited from interface org.refcodes.graphical.WidthAccessor
WidthAccessor.WidthBuilder<B extends WidthAccessor.WidthBuilder<B>>, WidthAccessor.WidthMutator, WidthAccessor.WidthProperty
-
Method Summary
Modifier and TypeMethodDescriptiondefault Dimension
letDimension
(int aWidth, int aHeight) This method stores and passes through the given arguments, which is very useful for builder APIs: Sets the givenDimension
(setter) as ofDimension.DimensionMutator.setDimension(int, int)
and returns the very same value encapsulated asDimension
instance.default Dimension
letDimension
(Dimension aDimension) This method stores and passes through the given argument, which is very useful for builder APIs: Sets the givenDimension
(setter) as ofDimension.DimensionMutator.setDimension(Dimension)
and returns the very same value (getter).Methods inherited from interface org.refcodes.graphical.Dimension.DimensionMutator
setDimension, setDimension
Methods inherited from interface org.refcodes.graphical.HeightAccessor
getHeight
Methods inherited from interface org.refcodes.graphical.HeightAccessor.HeightMutator
setHeight
Methods inherited from interface org.refcodes.graphical.HeightAccessor.HeightProperty
letHeight
Methods inherited from interface org.refcodes.graphical.WidthAccessor
getWidth
Methods inherited from interface org.refcodes.graphical.WidthAccessor.WidthMutator
setWidth
Methods inherited from interface org.refcodes.graphical.WidthAccessor.WidthProperty
letWidth
-
Method Details
-
letDimension
This method stores and passes through the given argument, which is very useful for builder APIs: Sets the givenDimension
(setter) as ofDimension.DimensionMutator.setDimension(Dimension)
and returns the very same value (getter).- Parameters:
aDimension
- TheDimension
to set (viaDimension.DimensionMutator.setDimension(Dimension)
).- Returns:
- Returns the value passed for it to be used in conclusive processing steps.
-
letDimension
This method stores and passes through the given arguments, which is very useful for builder APIs: Sets the givenDimension
(setter) as ofDimension.DimensionMutator.setDimension(int, int)
and returns the very same value encapsulated asDimension
instance.- Parameters:
aWidth
- The widthDimension
to set (viaWidthAccessor.WidthMutator.setWidth(int)
).aHeight
- The heightDimension
to set (viaHeightAccessor.HeightMutator.setHeight(int)
).- Returns:
- Returns the values passed encapsulated in a
Dimension
object for it to be used in conclusive processing steps.
-