Class SizeMapping
Object
SizeMapping
Maps a
Path
to a particular image-size and orientation-change.- Author:
- Owen Feehan
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
assignExtent
(Extent extent) Replace the existingExtent
with a new value.The size.getPath()
The path.scaleXYBy
(ScaleFactor scaleFactor) Scales the XY dimensions the factor.
-
Constructor Details
-
SizeMapping
Creates a newSizeMapping
instance.- Parameters:
path
- The path.extent
- The size.
-
-
Method Details
-
assignExtent
Replace the existingExtent
with a new value.- Parameters:
extent
- the extent to assign.
-
scaleXYBy
Scales the XY dimensions the factor.This is an immutable method.
- Parameters:
scaleFactor
- the factor to scale by.- Returns:
- a new
SizeMapping
with the scale-factor applied.
-
getPath
The path. -
getExtent
The size.
-