|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectuk.ac.vamsas.objects.utils.Range
Utilities for working with RangeType and MapType objects. Derived from bitter experience.
Constructor Summary | |
Range()
|
Method Summary | |
static int[] |
getBounds(RangeType dseta)
get real bounds of a RangeType's specification. |
static int[] |
getIntervals(RangeType range)
|
static int[] |
getMapping(RangeType dseta)
map from a rangeType's internal frame to the referenced object's coordinate frame. |
static int[] |
getSegRange(Seg visSeg,
boolean ensureDirection)
get start |
static void |
initMapType(MapType maprange,
MapList ml,
boolean setUnits)
initialise a MapType object from a MapList object. |
static void |
initMapType(MapType maprange,
MapList ml,
boolean setUnits,
boolean reverse)
|
static void |
initRangeType(RangeType mrt,
int[] range)
initialise a range type object from a set of start/end inclusive intervals |
static MapList |
parsemapType(MapType map)
Parse map with default units of 1,1 |
static MapList |
parsemapType(MapType maprange,
int localu,
int mappedu)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public Range()
Method Detail |
public static int[] getSegRange(Seg visSeg, boolean ensureDirection)
visSeg
- ensureDirection
- when true - always ensure start is less than end.
public static int[] getBounds(RangeType dseta)
dseta
-
public static int[] getMapping(RangeType dseta)
dseta
-
public static int[] getIntervals(RangeType range)
public static void initRangeType(RangeType mrt, int[] range)
mrt
- range
- public static MapList parsemapType(MapType maprange, int localu, int mappedu)
maprange
- where the from range is the local mapped range, and the to range
is the 'mapped' range in the MapRangeType
public static MapList parsemapType(MapType map)
map
-
public static void initMapType(MapType maprange, MapList ml, boolean setUnits)
maprange
- ml
- setUnits
- public static void initMapType(MapType maprange, MapList ml, boolean setUnits, boolean reverse)
maprange
- ml
- setUnits
- reverse
- - reverse MapList mapping for Local and Mapped ranges and units
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |