|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.epics.pvmanager.data.ValueUtil
public class ValueUtil
Various utility methods for runtime handling of the types defined in this package.
Method Summary | ||
---|---|---|
static Alarm |
alarmOf(Object obj)
Extracts the alarm information if present. |
|
static Display |
displayOf(Object obj)
Extracts the display information if present. |
|
static Double |
normalize(Number value,
Display display)
Normalizes the given value according to the given display information. |
|
static Double |
normalize(Number value,
Number lowValue,
Number highValue)
Normalizes the given value according to the given range; |
|
static Double |
normalizedNumericValueOf(Object obj)
Extracts the numericValueOf the object and normalizes according to the display range. |
|
static Double |
numericValueOf(Object obj)
Extracts a numeric value for the object. |
|
static
|
timeComparator()
Returns a comparator with the order defined by the timestamp. |
|
static Time |
timeOf(Object obj)
Extracts the time information if present. |
|
static BufferedImage |
toImage(VImage vImage)
Converts a VImage to an AWT BufferedImage, so that it can be displayed. |
|
static VImage |
toVImage(BufferedImage image)
Converts an AWT BufferedImage to a VImage. |
|
static Class<?> |
typeOf(Object obj)
Returns the type of the object by returning the class object of one of the VXxx interfaces. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public static Class<?> typeOf(Object obj)
obj
- an object implementing a standard type
public static Alarm alarmOf(Object obj)
obj
- an object implementing a standard type
public static Time timeOf(Object obj)
obj
- an object implementing a standard type
public static Display displayOf(Object obj)
obj
- an object implementing a standard type
public static Double normalizedNumericValueOf(Object obj)
obj
- an object implementing a standard type
public static Double normalize(Number value, Display display)
value
- a valuedisplay
- the display information
public static Double normalize(Number value, Number lowValue, Number highValue)
value
- a valuelowValue
- the lowest value in the rangehighValue
- the highest value in the range
public static Double numericValueOf(Object obj)
obj
- an object implementing a standard type
public static BufferedImage toImage(VImage vImage)
vImage
- the image to be converted
public static VImage toVImage(BufferedImage image)
Currently, only TYPE_3BYTE_BGR is supported
image
-
public static <T extends Time> Comparator<T> timeComparator()
T
- a Time type
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |