|
||||||||||
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(java.lang.Object obj)
Extracts the alarm information if present. |
|
static Display |
displayOf(java.lang.Object obj)
Extracts the display information if present. |
|
static java.lang.Double |
normalize(java.lang.Number value,
Display display)
Normalizes the given value according to the given display information. |
|
static java.lang.Double |
normalize(java.lang.Number value,
java.lang.Number lowValue,
java.lang.Number highValue)
Normalizes the given value according to the given range; |
|
static java.lang.Double |
normalizedNumericValueOf(java.lang.Object obj)
Extracts the numericValueOf the object and normalizes according to the display range. |
|
static java.lang.Double |
numericValueOf(java.lang.Object obj)
Extracts a numeric value for the object. |
|
static
|
timeComparator()
Returns a comparator with the order defined by the timestamp. |
|
static Time |
timeOf(java.lang.Object obj)
Extracts the time information if present. |
|
static java.awt.image.BufferedImage |
toImage(VImage vImage)
Converts a VImage to an AWT BufferedImage, so that it can be displayed. |
|
static VImage |
toVImage(java.awt.image.BufferedImage image)
Converts an AWT BufferedImage to a VImage. |
|
static java.lang.Class<?> |
typeOf(java.lang.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 java.lang.Class<?> typeOf(java.lang.Object obj)
obj
- an object implementing a standard type
public static Alarm alarmOf(java.lang.Object obj)
obj
- an object implementing a standard type
public static Time timeOf(java.lang.Object obj)
obj
- an object implementing a standard type
public static Display displayOf(java.lang.Object obj)
obj
- an object implementing a standard type
public static java.lang.Double normalizedNumericValueOf(java.lang.Object obj)
obj
- an object implementing a standard type
public static java.lang.Double normalize(java.lang.Number value, Display display)
value
- a valuedisplay
- the display information
public static java.lang.Double normalize(java.lang.Number value, java.lang.Number lowValue, java.lang.Number highValue)
value
- a valuelowValue
- the lowest value in the rangehighValue
- the highest value in the range
public static java.lang.Double numericValueOf(java.lang.Object obj)
obj
- an object implementing a standard type
public static java.awt.image.BufferedImage toImage(VImage vImage)
vImage
- the image to be converted
public static VImage toVImage(java.awt.image.BufferedImage image)
Currently, only TYPE_3BYTE_BGR is supported
image
-
public static <T extends Time> java.util.Comparator<T> timeComparator()
T
- a Time type
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |