public class ZoomConstraintsImpl extends Object implements IZoomConstraints
Modifier and Type | Class and Description |
---|---|
static class |
ZoomConstraintsImpl.RegisterPersistence |
DEFINED_BY_THE_LAYER, DEFINED_BY_THE_USER
Constructor and Description |
---|
ZoomConstraintsImpl() |
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 |
loadFromState(PersistentState state)
Set the state of the object from the state passed as parameter.
|
void |
saveToState(PersistentState state)
Saves the internal state of the object on the provided
PersistentState object.
|
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.
|
public void setMode(int mode)
IZoomConstraints
setMode
in interface IZoomConstraints
mode
- public long getMaxScale()
IZoomConstraints
getMaxScale
in interface IZoomConstraints
public void setMaxScale(long maxScale)
IZoomConstraints
setMaxScale
in interface IZoomConstraints
maxScale
- public long getMinScale()
IZoomConstraints
getMinScale
in interface IZoomConstraints
public void setMinScale(long minScale)
IZoomConstraints
setMinScale
in interface IZoomConstraints
minScale
- public boolean isUserDefined()
IZoomConstraints
isUserDefined
in interface IZoomConstraints
public boolean isLayerDefined()
IZoomConstraints
isLayerDefined
in interface IZoomConstraints
public void loadFromState(PersistentState state) throws PersistenceException
Persistent
loadFromState
in interface Persistent
PersistenceException
public void saveToState(PersistentState state) throws PersistenceException
Persistent
saveToState
in interface Persistent
PersistenceException