public static interface MPPViewport.Builder
MPPViewport
. A builder may be obtained via MPPViewports.builder()
.MPPViewports
,
MPPViewportAgent
Modifier and Type | Method and Description |
---|---|
MPPViewport |
create()
Create a new
viewport with the previously defined properties. |
MPPViewport.Builder |
height(int height)
Set the viewport height in pixels.
|
MPPViewport.Builder |
iconType(MPPViewport.IconType icon)
Set the icon type for this viewport.
|
MPPViewport.Builder |
scaling(int percentage)
Set the percentage-based viewport scaling.
|
MPPViewport.Builder |
templateSet(TemplateSet templateSet)
Set the
TemplateSet to be used for this viewport. |
MPPViewport.Builder |
width(int width)
Set the viewport width in pixels.
|
MPPViewport create()
viewport
with the previously defined properties.width(int)
,
height(int)
,
scaling(int)
,
#iconType(IconType)
,
templateSet(TemplateSet)
MPPViewport.Builder iconType(@Nullable MPPViewport.IconType icon)
icon
- the icon type to useMPPViewport.IconType
MPPViewport.Builder width(int width)
width
- the width in pixelsMPPViewport.Builder height(int height)
height
- the height in pixelsMPPViewport.Builder scaling(int percentage)
percentage
- the scaling as percentageMPPViewport.Builder templateSet(@Nullable TemplateSet templateSet)
TemplateSet
to be used for this viewport.templateSet
- the TemplateSet
to use, or null for default TemplateSet
Copyright © 2021 e-Spirit AG. All Rights Reserved. Build 5.2.210210