public class ZoomConstraintsImpl extends java.lang.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)
IZoomConstraintssetMode in interface IZoomConstraintsmode - public long getMaxScale()
IZoomConstraintsgetMaxScale in interface IZoomConstraintspublic void setMaxScale(long maxScale)
IZoomConstraintssetMaxScale in interface IZoomConstraintsmaxScale - public long getMinScale()
IZoomConstraintsgetMinScale in interface IZoomConstraintspublic void setMinScale(long minScale)
IZoomConstraintssetMinScale in interface IZoomConstraintsminScale - public boolean isUserDefined()
IZoomConstraintsisUserDefined in interface IZoomConstraintspublic boolean isLayerDefined()
IZoomConstraintsisLayerDefined in interface IZoomConstraintspublic void loadFromState(PersistentState state) throws PersistenceException
PersistentloadFromState in interface PersistentPersistenceExceptionpublic void saveToState(PersistentState state) throws PersistenceException
PersistentsaveToState in interface PersistentPersistenceException