Package org.geotools.swing.tool
Class InfoToolHelperUtils
- Object
-
- InfoToolHelperUtils
-
public class InfoToolHelperUtils extends Object
Contains static methods used by someInfoToolHelper
classes.- Since:
- 8.0
- Author:
- Michael Bedward
-
-
Constructor Summary
Constructors Constructor Description InfoToolHelperUtils()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static Number[]
asNumberArray(Object objArray)
Convert the Object returned by into an array of {@code Numbers}.static Position2D
getTransformed(Position2D pos, MathTransform transform)
Transforms a position.
-
-
-
Method Detail
-
getTransformed
public static Position2D getTransformed(Position2D pos, MathTransform transform)
Transforms a position. Iftransform
isnull
the original position is returned.- Parameters:
pos
- the position- Returns:
- the transformed position
-
asNumberArray
public static Number[] asNumberArray(Object objArray)
Convert the Object returned by into an array of {@code Numbers}.- Parameters:
objArray
- an Object representing a primitive array- Returns:
- a new array of Numbers
-
-