public static final class MapNavigator.BoundsConstraintOptions extends Object implements AutoCloseable
See MapNavigator#getBoundsConstraint
for more information.
Modifier and Type | Method and Description |
---|---|
void |
close() |
protected void |
finalize() |
Bounds |
getBounds() |
double |
getPadding() |
boolean |
isEnabled() |
void |
setBounds(Bounds bounds)
Sets the bounds to constrain the main camera.
|
void |
setEnabled(boolean enabled)
Enables or disables the constraint The default is true.
|
void |
setPadding(double padding)
Sets the padding, in device independent pixels, that is added to the
bounds . |
public void close()
close
in interface AutoCloseable
public boolean isEnabled()
public void setEnabled(boolean enabled)
enabled
- true to enable the constraint or false to disable itpublic void setBounds(@NotNull Bounds bounds)
The default value is null
.
bounds
- the bounds to constrain the main camerapublic double getPadding()
setPadding
public void setPadding(double padding)
bounds
.
This can for example be useful to make sure lines (with a pixel-sized width) or labels (with a pixel width/height), can still be displayed.
The default is 0.
padding
- the padding, in device independent pixels, that is added to the bounds