public final class IconPainterContext extends Object implements AutoCloseable
Constructor and Description |
---|
IconPainterContext(double displayScale)
Creates a new context using the given display scale.
|
Modifier and Type | Method and Description |
---|---|
void |
close() |
protected void |
finalize() |
double |
getDisplayScale()
Returns the display scale of the screen on which the icon is displayed.
|
public IconPainterContext(double displayScale)
displayScale
- the display scale.public void close()
close
in interface AutoCloseable
public double getDisplayScale()
See Map#setDisplayScale
for more information on the concept of display scale.