public class IlvMapScaleLimiter extends Object implements TransformerListener
IlvManagerView
.
You can constraint the scale of a map by calling :
IlvMapScaleLimiter limiter = new IlvMapScaleLimiter(1,1/1E9); limiter.setView(view);
Constructor and Description |
---|
IlvMapScaleLimiter()
Creates a scale limiter that constraints scale between
Double.MAX_VALUE / 10 and Double.MIN_VALUE * 10 |
IlvMapScaleLimiter(double maxScale,
double minScale)
Creates a scale limiter that constraints scale between a max scale
and a min scale.
|
Modifier and Type | Method and Description |
---|---|
double |
getMaxScale()
Returns the maximum Scale.
|
double |
getMinScale()
Returns the minimum Scale.
|
IlvManagerView |
getView()
Returns the view.
|
void |
setMaxScale(double maxScale)
Sets the maximum scale the map should use.
|
void |
setMinScale(double minScale)
Sets the minimum scale the map should use.
|
void |
setView(IlvManagerView view)
Sets the view to listen to.
|
void |
transformerChanged(TransformerChangedEvent event)
Implementation of
TransformerListener . |
public IlvMapScaleLimiter()
Double.MAX_VALUE / 10
and Double.MIN_VALUE * 10
public IlvMapScaleLimiter(double maxScale, double minScale)
maxScale
- The max scale value.minScale
- The min scale value.public void transformerChanged(TransformerChangedEvent event)
TransformerListener
.
This implementation limits the scale when the transformer changes.transformerChanged
in interface TransformerListener
event
- The modification event.TransformerListener.transformerChanged(ilog.views.event.TransformerChangedEvent)
public double getMaxScale()
public void setMaxScale(double maxScale)
maxScale
- The maximum scale.public double getMinScale()
public void setMinScale(double minScale)
minScale
- The minimum scale allowed.public IlvManagerView getView()
public void setView(IlvManagerView view)
view
- The view to set.© Copyright 2024 Rogue Wave Software, Inc., a Perforce company.. All Rights Reserved.