public static class RenderingSettings.ResolutionSettings extends Object
| Modifier and Type | Field and Description |
|---|---|
static int |
DEFAULT_DPI_X
72 pixels (default horizontal pixel density)
|
static int |
DEFAULT_DPI_Y
72 pixels (default vertical pixel density)
|
| Constructor and Description |
|---|
ResolutionSettings() |
| Modifier and Type | Method and Description |
|---|---|
void |
addPropertyChangeListener(PropertyChangeListener listener)
Adds specified user-class instance that needs to be notified of changes
in the resolution settings.
|
int |
getDpiX()
Returns horizontal pixel density.
|
int |
getDpiY()
Returns vertical pixel density.
|
ResolutionMode |
getResolutionMode()
Returns current resolution option.
|
void |
setDpi(int dpi)
Sets the horizontal and vertical pixel density to the specified value.
|
void |
setDpiX(int dpiX)
Sets specified horizontal pixel density.
|
void |
setDpiY(int dpiY)
Sets specified vertical pixel density.
|
void |
setResolutionMode(ResolutionMode mode)
Sets specified resolution option.
|
String |
toString() |
public static final int DEFAULT_DPI_X
public static final int DEFAULT_DPI_Y
public void setDpi(int dpi)
dpi - pixel density that needs to be setpublic void setDpiX(int dpiX)
dpiX - horizontal pixel densitypublic void setDpiY(int dpiY)
dpiY - vertical pixel density that needs to be setpublic int getDpiX()
public int getDpiY()
public void addPropertyChangeListener(PropertyChangeListener listener)
listener - listener that needs to be addedpublic ResolutionMode getResolutionMode()
public void setResolutionMode(ResolutionMode mode)
mode - resolution option that needs to be applied