Interface MPPViewports
- All Superinterfaces:
Iterable<MPPViewport>
This interface represents a container for viewports. It is used to enable modifying the current viewports or to
add/remove viewports to the multi perspective preview (MPP).
The iterators returned by this class's iterator are fail-fast:
if the collection is structurally modified at any time after the iterator is
created, in any way except through the iterator's own
remove method, the iterator will throw a
ConcurrentModificationException. Thus, in the face of
concurrent modification, the iterator fails quickly and cleanly, rather
than risking arbitrary, non-deterministic behavior at an undetermined
time in the future.
- Since:
- 5.2.604
-
Method Summary
Modifier and TypeMethodDescriptionvoidadd(@NotNull MPPViewport viewport) Adds the givenviewportto the current collection of viewports.builder()Provides a new builder instance to create aviewport.booleanremove(@NotNull MPPViewport viewport) Removes the given viewport from the current collection.Methods inherited from interface java.lang.Iterable
forEach, iterator, spliterator
-
Method Details
-
builder
Provides a new builder instance to create aviewport.- Returns:
- a new builder instance to create a viewport
- Since:
- 5.2.604
- See Also:
-
add
Adds the givenviewportto the current collection of viewports.- Parameters:
viewport- the viewport to add- Since:
- 5.2.604
- See Also:
-
remove
Removes the given viewport from the current collection.- Parameters:
viewport- the viewport to remove- Returns:
trueif the viewport was removed in the result of this call, otherwisefalse- Since:
- 5.2.604
- See Also:
-