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
Nested ClassesModifier and TypeInterfaceDescriptionstatic interfaceBuilder to configure and create aMPPViewport.static enumA viewport icon type used to symbolize the viewport. -
Method Summary
Modifier and TypeMethodDescriptionintGet the viewport height in pixels.Get the viewport icon type.intGet the percentage-based viewport scaling.@Nullable TemplateSetGet theTemplateSetconfigured for this viewport.intgetWidth()Get the viewport width in pixels.voidsetHeight(int height) Set the viewport height in pixels.voidSet the icon type for this viewport.voidsetScaling(int percentage) Set the percentage-based viewport scaling.voidsetTemplateSet(@Nullable TemplateSet templateSet) Set theTemplateSetto be used for this viewport.voidsetWidth(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 theTemplateSetconfigured for this viewport.- Returns:
- the
TemplateSetfor this viewport, ornullfor defaultTemplateSet - Since:
- 5.2.604
-
setTemplateSet
Set theTemplateSetto be used for this viewport.- Parameters:
templateSet- theTemplateSetto use, or null for defaultTemplateSet- Since:
- 5.2.604
-