Interface MPPViewport.Builder
- Enclosing interface:
- MPPViewport
public static interface MPPViewport.Builder
Builder to configure and create a
MPPViewport. A builder may be obtained via MPPViewports.builder().- Since:
- 5.2.604
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptioncreate()Create a newviewportwith the previously defined properties.height(int height) Set the viewport height in pixels.iconType(MPPViewport.IconType icon) Set the icon type for this viewport.scaling(int percentage) Set the percentage-based viewport scaling.templateSet(@Nullable TemplateSet templateSet) Set theTemplateSetto be used for this viewport.width(int width) Set the viewport width in pixels.
-
Method Details
-
create
MPPViewport create()Create a newviewportwith the previously defined properties.- Returns:
- a new viewport with the previously defined properties
- Since:
- 5.2.604
- See Also:
-
iconType
Set the icon type for this viewport.- Parameters:
icon- the icon type to use- Since:
- 5.2.604
- See Also:
-
width
Set the viewport width in pixels.- Parameters:
width- the width in pixels- Since:
- 5.2.604
-
height
Set the viewport height in pixels.- Parameters:
height- the height in pixels- Since:
- 5.2.604
-
scaling
Set the percentage-based viewport scaling.- Parameters:
percentage- the scaling as percentage- Since:
- 5.2.604
-
templateSet
Set theTemplateSetto be used for this viewport.- Parameters:
templateSet- theTemplateSetto use, or null for defaultTemplateSet- Since:
- 5.2.604
-