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

    Fields
    Modifier and Type
    Field
    Description
    static final int
    Uses the same constraints than the layer.
    static final int
    The user defines when the labes will be drawn.
  • Method Summary

    Modifier and Type
    Method
    Description
    long
    Returns the max scale limit of the constraints.
    long
    Returns the min scale limit of the constraints.
    boolean
    Returns true if the mode is DEFINED_BY_THE_USER.
    boolean
    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.

    Methods inherited from interface org.gvsig.tools.persistence.Persistent

    loadFromState, saveToState
  • Field Details

    • DEFINED_BY_THE_LAYER

      static final int DEFINED_BY_THE_LAYER
      Uses 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_USER
      The 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: