Interface FocusArea
@NonExtendable
public interface FocusArea
A focus area preset available for a specific image.
- Since:
- 5.2.200705
-
Method Summary
Modifier and TypeMethodDescriptionstatic @NotNull FocusAreaBuilder
builder()
Returns a builder for creating a newFocusArea
.@NotNull Rectangle
Bounds as pixels specifying the focus area in relation to the original image size, where the top-left corner is represented by the coordinate0x0
.Provides the orientation represented as an optional 2D vector, which is to be considered as the viewing angle and field of view for calculating the total size of a resolution.@Nullable String
getTitle()
A short text describing this focus point as title and tooltip text.
-
Method Details
-
builder
Returns a builder for creating a newFocusArea
.- Returns:
- The builder instance.
- Since:
- 5.2.200705
-
getTitle
A short text describing this focus point as title and tooltip text.- Returns:
- The focus area title if available.
- Since:
- 5.2.200705
-
getBounds
Bounds as pixels specifying the focus area in relation to the original image size, where the top-left corner is represented by the coordinate0x0
.- Returns:
- A rectangle containing the focus area bounds.
- Since:
- 5.2.200705
-
getOrientation
Provides the orientation represented as an optional 2D vector, which is to be considered as the viewing angle and field of view for calculating the total size of a resolution. The vector will be evaluated with the center of the focus area as its origin, whilex
points to the left (negative) and right (positive) andy
points up (negative) and down (positive). The vector's magnitude from the center in relation to the total size of the focus area may be used to determine the resolution's orientation and size in relation to the total focus area.- Returns:
- The focus orientation.
- Since:
- 5.2.200705
-