Interface IZoomConstraints
- All Superinterfaces:
org.gvsig.tools.persistence.Persistent
public interface IZoomConstraints
extends org.gvsig.tools.persistence.Persistent
- Author:
- jaume dominguez faus - jaume.dominguez@iver.es
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intUses the same constraints than the layer.static final intThe user defines when the labes will be drawn. -
Method Summary
Modifier and TypeMethodDescriptionlongReturns the max scale limit of the constraints.longReturns the min scale limit of the constraints.booleanReturns true if the mode is DEFINED_BY_THE_USER.booleanReturns true if the mode is DEFINED_BY_THE_USER.voidsetMaxScale(long maxScale) Sets the max scale limit of the constraintsvoidsetMinScale(long minScale) Sets the min scale limit of the constraintsvoidsetMode(int mode) Sets the mode of the zoom constraints.Methods inherited from interface org.gvsig.tools.persistence.Persistent
loadFromState, saveToState
-
Field Details
-
DEFINED_BY_THE_LAYER
static final int DEFINED_BY_THE_LAYERUses the same constraints than the layer. Which is the same than no constraints.- See Also:
-
DEFINED_BY_THE_USER
static final int DEFINED_BY_THE_USERThe user defines when the labes will be drawn. Notice that if the layer is not drawn it does not take effect.- See Also:
-
-
Method Details
-
setMode
void setMode(int mode) Sets the mode of the zoom constraints.- Parameters:
mode- , int one of DEFINED_BY_THE_LAYER or DEFINED_BY_THE_USER.
-
getMaxScale
long getMaxScale()Returns the max scale limit of the constraints.- Returns:
- float, max limit
-
setMaxScale
void setMaxScale(long maxScale) Sets the max scale limit of the constraints- Parameters:
maxScale- , float
-
getMinScale
long getMinScale()Returns the min scale limit of the constraints.- Returns:
- float, min limit
-
setMinScale
void setMinScale(long minScale) Sets the min scale limit of the constraints- Parameters:
minScale- , float
-
isUserDefined
boolean isUserDefined()Returns true if the mode is DEFINED_BY_THE_USER.- Returns:
-
isLayerDefined
boolean isLayerDefined()Returns true if the mode is DEFINED_BY_THE_USER.- Returns:
-