public class CDecimalFormatter extends java.lang.Object implements ValueFormatter<CDecimalField.LockableBigDecimal>
Constructor and Description |
---|
CDecimalFormatter(MessageReader reader)
creates a decimal formatter from the server message
|
Modifier and Type | Method and Description |
---|---|
static javafx.scene.paint.Color |
getColorForRange(double valuetodisplay)
gets color for range
|
java.math.BigDecimal |
getMaximum() |
java.math.BigDecimal |
getMinimum() |
javafx.scene.Node |
getWidget(CDecimalField.LockableBigDecimal value)
transforms a data object payload into a javafx node
|
boolean |
isColorscheme() |
boolean |
isLinear() |
static java.lang.String |
toRGBCode(javafx.scene.paint.Color color)
get the rgb code string for use in javafx
|
public CDecimalFormatter(MessageReader reader) throws OLcRemoteException, java.io.IOException
reader
- reader of the message coming from the serverOLcRemoteException
- if anything bad happens on the serverjava.io.IOException
- if a problem happens during the message
transmissionpublic java.math.BigDecimal getMinimum()
public java.math.BigDecimal getMaximum()
public boolean isLinear()
public boolean isColorscheme()
public javafx.scene.Node getWidget(CDecimalField.LockableBigDecimal value)
ValueFormatter
getWidget
in interface ValueFormatter<CDecimalField.LockableBigDecimal>
value
- data objectpublic static javafx.scene.paint.Color getColorForRange(double valuetodisplay)
valuetodisplay
- value to display (between 0,1)public static java.lang.String toRGBCode(javafx.scene.paint.Color color)
color
- the color