public interface PreviewViewport
Modifier and Type | Interface and Description |
---|---|
static class |
PreviewViewport.ViewportIcon
A viewport icon type used to symbolize the viewport.
|
Modifier and Type | Method and Description |
---|---|
int |
getHeight()
Get the viewport height in pixel.
|
PreviewViewport.ViewportIcon |
getIcon()
Get the viewport icon.
|
int |
getScaling()
Get the percentage-based viewport scaling.
|
TemplateSet |
getTemplateSet()
Get the
TemplateSet configured for this viewport, or null for default TemplateSet . |
int |
getWidth()
Get the viewport width in pixel.
|
void |
setHeight(int height)
Set the viewport height in pixel.
|
void |
setIcon(PreviewViewport.ViewportIcon icon)
Set the viewport icon.
|
void |
setScaling(int percentage)
Set the percentage-based viewport scaling.
|
void |
setTemplateSet(TemplateSet templateSet)
Set the
TemplateSet to be used for this viewport, or null for default TemplateSet . |
void |
setWidth(int width)
Set the viewport width in pixel.
|
@Nullable PreviewViewport.ViewportIcon getIcon()
void setIcon(PreviewViewport.ViewportIcon icon)
icon
- the viewport icon, or null for default icon.int getWidth()
void setWidth(int width)
width
- the width in pixel.int getHeight()
void setHeight(int height)
height
- the height in pixel.int getScaling()
void setScaling(int percentage)
percentage
- the scaling as percentage.@Nullable TemplateSet getTemplateSet()
TemplateSet
configured for this viewport, or null for default TemplateSet
.TemplateSet
for this viewport.void setTemplateSet(@Nullable TemplateSet templateSet)
TemplateSet
to be used for this viewport, or null for default TemplateSet
.templateSet
- the TemplateSet
to use.Copyright © 2015 e-Spirit AG. All Rights Reserved. Build 5.1.408