public class IlvMapScaleComputation extends Object
useLocalScale parameter.
useLocalScale is false, the scale will be the same
for every area of the map displayed. The computation uses, in this case, the equivalent unit defined in the manager coordinate system.useLocalScale is true, the computation involves finding two points on the view visible area and computing their distance in meters with a IlvGeodeticComputation.
| Constructor and Description |
|---|
IlvMapScaleComputation()
Creates a new
IlvMapScaleComputation. |
IlvMapScaleComputation(int verticalReference,
boolean useLocalScale)
Creates a new
IlvMapScaleComputation. |
| Modifier and Type | Method and Description |
|---|---|
int |
getVerticalReference()
Returns the vertical location of the reference points.
|
boolean |
isUseLocalScale()
Indicates whether the scale should be adapted to the visible view area.
|
void |
setUseLocalScale(boolean useLocalScale)
Indicates whether the scale should be adapted to the visible view area.
|
void |
setVerticalReference(int verticalReference)
Changes the vertical location of the reference points.
|
public IlvMapScaleComputation()
IlvMapScaleComputation.
By default, it does not use local scale computation. The scale is computed through the coordinate system equivalent unit.public IlvMapScaleComputation(int verticalReference,
boolean useLocalScale)
IlvMapScaleComputation.verticalReference - Indicates where the reference points are placed. This parameter should be either:
useLocalScale - true indicates that the scale can change according to the visible view area.public final int getVerticalReference()
public final void setVerticalReference(int verticalReference)
verticalReference - The vertical location of reference points
public final boolean isUseLocalScale()
true if the scale is adapted to the visible view area.public final void setUseLocalScale(boolean useLocalScale)
useLocalScale - code>true if the scale must be adapted© Copyright 2024 Rogue Wave Software, Inc., a Perforce company.. All Rights Reserved.