public class IlvScaleController extends Object
Modifier and Type | Method and Description |
---|---|
static void |
FitTransformerToPoint(IlvManagerView view,
double scale,
IlvPoint point,
boolean redraw)
Centers the specified georeferenced view around the specified point and
sets the scale of the view to the specified scale.
|
static void |
FitTransformerToPoint(IlvManagerView view,
IlvLinearUnit unit,
double scale,
IlvPoint point,
boolean redraw)
Centers the specified view around the specified point and sets
the scale of the view to the specified scale.
|
static double |
GetScale(IlvManagerView view)
Returns the scale of a manager view whose manager is georeferenced
because it owns an
IlvCoordinateSystemProperty . |
static double |
GetScale(IlvManagerView view,
IlvLinearUnit managerUnit)
Returns the scale of a manager view.
|
static double |
GetScreenPixelSizeMM()
Returns the size in millimeters of a screen pixel.
|
static Dimension |
GetScreenSizeMM()
Returns the height of the screen used to compute the scales.
|
static double |
GetZoomFactor(double scale,
IlvLinearUnit managerUnit)
Returns the zoom factor of a transformer that would show a map
at the specified scale.
|
static void |
SetScale(IlvManagerView view,
double scale,
boolean redraw)
Sets the scale of the georeferenced
view
to the specified scale. |
static void |
SetScale(IlvManagerView view,
IlvLinearUnit managerUnit,
double scale,
boolean redraw)
Sets the scale of
view to the specified scale. |
static void |
SetScreenSizeMM(Dimension sizemm)
Specifies the height and the width of the display screen for a more
accurate scale management.
|
public static double GetScale(IlvManagerView view, IlvLinearUnit managerUnit)
view
- The manager view.managerUnit
- The unit of the manager. Specifies the
equivalence between manager coordinates and meters.public static double GetScale(IlvManagerView view)
IlvCoordinateSystemProperty
.view
- The manager view.IllegalArgumentException
- if the manager of the view
is not georeferenced (it doesn't own an
IlvCoordinateSystemProperty
).public static void SetScale(IlvManagerView view, IlvLinearUnit managerUnit, double scale, boolean redraw)
view
to the specified scale.view
- The target view.managerUnit
- The unit of the manager. Specifies the
equivalence between manager coordinates and meters.scale
- The specified scale (for instance, 0.00001 for 1/100000).redraw
- If true
, the view is redrawn.public static void SetScale(IlvManagerView view, double scale, boolean redraw)
view
to the specified scale. Given that view
is
georeferenced, its manager must own an
IlvCoordinateSystemProperty
object.view
- The target view.scale
- The specified scale (for instance, 0.00001 for 1/100000).redraw
- If true
, the view is redrawn.IllegalArgumentException
- if the manager of the view
is not georeferenced (it doesn't own an
IlvCoordinateSystemProperty
).public static void FitTransformerToPoint(IlvManagerView view, IlvLinearUnit unit, double scale, IlvPoint point, boolean redraw)
view
- The view.unit
- The linear unit to be used for scale computation.scale
- The scale.point
- The point to center.redraw
- If true
, the view is redrawn.public static void FitTransformerToPoint(IlvManagerView view, double scale, IlvPoint point, boolean redraw)
view
- The view.scale
- The scale.point
- The point to center.redraw
- If true
, the view is redrawn.IllegalArgumentException
- If the view is not georeferenced.public static void SetScreenSizeMM(Dimension sizemm)
sizemm
- The height and width of the screen, expressed in millimeters.public static Dimension GetScreenSizeMM()
public static double GetZoomFactor(double scale, IlvLinearUnit managerUnit)
scale
- The specified scale.managerUnit
- The unit of the manager. Specifies the
equivalence between manager coordinates and meters.public static double GetScreenPixelSizeMM()
© Copyright 2024 Rogue Wave Software, Inc., a Perforce company.. All Rights Reserved.