public interface IZoomConstraints extends Persistent
Modifier and Type | Field and Description |
---|---|
static int |
DEFINED_BY_THE_LAYER
Uses the same constraints than the layer.
|
static int |
DEFINED_BY_THE_USER
The user defines when the labes will be drawn.
|
Modifier and Type | Method and Description |
---|---|
long |
getMaxScale()
Returns the max scale limit of the constraints.
|
long |
getMinScale()
Returns the min scale limit of the constraints.
|
boolean |
isLayerDefined()
Returns true if the mode is DEFINED_BY_THE_USER.
|
boolean |
isUserDefined()
Returns true if the mode is DEFINED_BY_THE_USER.
|
void |
setMaxScale(long maxScale)
Sets the max scale limit of the constraints
|
void |
setMinScale(long minScale)
Sets the min scale limit of the constraints
|
void |
setMode(int mode)
Sets the mode of the zoom constraints.
|
loadFromState, saveToState
static final int DEFINED_BY_THE_LAYER
static final int DEFINED_BY_THE_USER
void setMode(int mode)
mode,
- int one of DEFINED_BY_THE_LAYER or DEFINED_BY_THE_USER.long getMaxScale()
void setMaxScale(long maxScale)
maxScale,
- floatlong getMinScale()
void setMinScale(long minScale)
minScale,
- floatboolean isUserDefined()
boolean isLayerDefined()