Interface MPPViewport
@NonExtendable
public interface MPPViewport
This interface represents a single viewport in the multi-perspective preview. Viewports are not unique, this means
that multiple viewports with the exact same properties might exist.
To create a viewport, you
To access the current viewports (or modify the existing ones), you
To create a viewport, you
must
use the builder
.To access the current viewports (or modify the existing ones), you
must
use the MPPViewportAgent
.- Since:
- 5.2.604
- See Also:
-
Nested Class Summary
Modifier and TypeInterfaceDescriptionstatic interface
Builder to configure and create aMPPViewport
.static enum
A viewport icon type used to symbolize the viewport. -
Method Summary
Modifier and TypeMethodDescriptionint
Get the viewport height in pixels.Get the viewport icon type.int
Get the percentage-based viewport scaling.@Nullable TemplateSet
Get theTemplateSet
configured for this viewport.int
getWidth()
Get the viewport width in pixels.void
setHeight
(int height) Set the viewport height in pixels.void
Set the icon type for this viewport.void
setScaling
(int percentage) Set the percentage-based viewport scaling.void
setTemplateSet
(@Nullable TemplateSet templateSet) Set theTemplateSet
to be used for this viewport.void
setWidth
(int width) Set the viewport width in pixels.
-
Method Details
-
setIconType
Set the icon type for this viewport.- Parameters:
icon
- the icon type to use- Since:
- 5.2.604
- See Also:
-
getIconType
Get the viewport icon type.- Returns:
- the viewport icon type, or null if not specified
- Since:
- 5.2.604
-
getWidth
int getWidth()Get the viewport width in pixels.- Returns:
- the width in pixels
- Since:
- 5.2.604
-
setWidth
void setWidth(int width) Set the viewport width in pixels.- Parameters:
width
- the width in pixels- Throws:
IllegalArgumentException
- if width is < 1- Since:
- 5.2.604
-
getHeight
int getHeight()Get the viewport height in pixels.- Returns:
- the height in pixels
- Since:
- 5.2.604
-
setHeight
void setHeight(int height) Set the viewport height in pixels.- Parameters:
height
- the height in pixels- Throws:
IllegalArgumentException
- if height is < 1- Since:
- 5.2.604
-
getScaling
int getScaling()Get the percentage-based viewport scaling.- Returns:
- the scaling as percentage
- Since:
- 5.2.604
-
setScaling
void setScaling(int percentage) Set the percentage-based viewport scaling.- Parameters:
percentage
- the scaling as percentage- Since:
- 5.2.604
-
getTemplateSet
Get theTemplateSet
configured for this viewport.- Returns:
- the
TemplateSet
for this viewport, ornull
for defaultTemplateSet
- Since:
- 5.2.604
-
setTemplateSet
Set theTemplateSet
to be used for this viewport.- Parameters:
templateSet
- theTemplateSet
to use, or null for defaultTemplateSet
- Since:
- 5.2.604
-