public class IlvScaleVisibilityFilter extends IlvZoomFactorVisibilityFilter
NO_LIMIT value if the layer should be visible
 for any scale smaller than a minimum scale (this could be the case for
 layers containing low-resolution map data), or conversely, for any
 scale larger than a maximum scale (this could be the case for layers 
 containing high-resolution map data).NO_LIMIT| Constructor and Description | 
|---|
| IlvScaleVisibilityFilter(double minScale,
                        double maxScale,
                        IlvLinearUnit managerUnit)Initializes an  IlvScaleVisibilityFilterobject. | 
| IlvScaleVisibilityFilter(IlvInputStream stream)Initializes an  IlvScaleVisibilityFilterfrom anIlvInputStream. | 
| Modifier and Type | Method and Description | 
|---|---|
| double | getMaxScale()Returns the maximum scale. | 
| double | getMinScale()Returns the minimum scale. | 
| IlvLinearUnit | getUnit()Returns the linear unit. | 
| boolean | isVisible(IlvManagerLayer layer,
         IlvManagerView view)Returns true if the scale of the layer in the argument  viewis between
 the maximum and the minimum scales. | 
| void | setMaxScale(double maxScale)Sets the maximal scale at which the filtered layer is visible. | 
| void | setMinScale(double minScale)Sets the minimal scale at which the filtered layer is visible. | 
| void | write(IlvOutputStream stream)Writes the filter to an  IlvOutputStream. | 
getMaxZoomFactor, getMinZoomFactor, isPersistent, setMaxZoomFactor, setMinZoomFactor, setPersistentpublic IlvScaleVisibilityFilter(double minScale,
                                double maxScale,
                                IlvLinearUnit managerUnit)
IlvScaleVisibilityFilter object.
 The layer will be visible if its scale is between minScale
  and maxScale.minScale - The minimum scale at which the layer will be visible
                 (for instance, 1/100000). If no minimum scale is required,
                 you must pass the value NO_LIMIT.maxScale - The maximum scale at which the layer will be visible
                 (for instance, 1/20000). If no maximum scale is required,
                 you must pass the value NO_LIMIT.managerUnit - The unit of the manager. Specifies the
                    equivalence between manager coordinates and meters.IlvZoomFactorVisibilityFilter.NO_LIMITpublic IlvScaleVisibilityFilter(IlvInputStream stream) throws IlvReadFileException
IlvScaleVisibilityFilter from an 
 IlvInputStream.IlvReadFileExceptionpublic boolean isVisible(IlvManagerLayer layer, IlvManagerView view)
view is between
 the maximum and the minimum scales.isVisible in class IlvZoomFactorVisibilityFilterpublic void write(IlvOutputStream stream) throws IOException
IlvOutputStream.write in interface IlvPersistentObjectwrite in class IlvZoomFactorVisibilityFilterstream - The output stream.IOException - standard IO error.public IlvLinearUnit getUnit()
public double getMinScale()
public void setMinScale(double minScale)
minScale - The minimum scalepublic double getMaxScale()
public void setMaxScale(double maxScale)
maxScale - The maximum scale© Copyright Rogue Wave Software, Inc. 1997, 2018. All Rights Reserved.