public class BinaryTextRenderer extends BaseTextRenderer
BaseTextRenderer.Factory| Modifier and Type | Field and Description |
|---|---|
private static ImplDefinition |
definition |
private java.lang.String |
oneColour |
private java.lang.String |
oneLabel |
private static long |
serialVersionUID |
private static int |
version |
private java.lang.String |
zeroColour |
private java.lang.String |
zeroLabel |
definitionsHINT_FULL, HINT_RAW, HINT_SPECIFIC, TYPE_ANALOG, TYPE_BINARY, TYPE_MULTISTATE, TYPE_PLAIN, TYPE_RANGE, UNKNOWN_VALUE| Constructor and Description |
|---|
BinaryTextRenderer() |
BinaryTextRenderer(java.lang.String zeroValue,
java.lang.String zeroColour,
java.lang.String oneValue,
java.lang.String oneColour) |
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
getColour(boolean value) |
protected java.lang.String |
getColourImpl(MangoValue value) |
ImplDefinition |
getDef() |
static ImplDefinition |
getDefinition() |
java.lang.String |
getOneColour() |
java.lang.String |
getOneLabel() |
java.lang.String |
getText(boolean value,
int hint) |
protected java.lang.String |
getTextImpl(MangoValue value,
int hint) |
java.lang.String |
getTypeName() |
java.lang.String |
getZeroColour() |
java.lang.String |
getZeroLabel() |
private void |
readObject(java.io.ObjectInputStream in) |
void |
setOneColour(java.lang.String oneColour) |
void |
setOneLabel(java.lang.String oneLabel) |
void |
setZeroColour(java.lang.String zeroColour) |
void |
setZeroLabel(java.lang.String zeroLabel) |
private void |
writeObject(java.io.ObjectOutputStream out) |
ensureDefinitions, getColour, getColour, getColour, getColour, getColour, getColour, getExportTypes, getImplementation, getMetaText, getText, getText, getText, getText, getText, getText, jsonDeserialize, jsonSerializeprivate static ImplDefinition definition
private java.lang.String zeroLabel
private java.lang.String zeroColour
private java.lang.String oneLabel
private java.lang.String oneColour
private static final long serialVersionUID
private static final int version
public BinaryTextRenderer()
public BinaryTextRenderer(java.lang.String zeroValue,
java.lang.String zeroColour,
java.lang.String oneValue,
java.lang.String oneColour)
public static ImplDefinition getDefinition()
public java.lang.String getTypeName()
public ImplDefinition getDef()
protected java.lang.String getTextImpl(MangoValue value, int hint)
getTextImpl in class BaseTextRendererprotected java.lang.String getColourImpl(MangoValue value)
getColourImpl in class BaseTextRendererpublic java.lang.String getColour(boolean value)
getColour in interface TextRenderergetColour in class BaseTextRendererpublic java.lang.String getOneLabel()
public void setOneLabel(java.lang.String oneLabel)
public java.lang.String getOneColour()
public void setOneColour(java.lang.String oneColour)
public java.lang.String getZeroColour()
public void setZeroColour(java.lang.String zeroColour)
public java.lang.String getZeroLabel()
public void setZeroLabel(java.lang.String zeroLabel)
public java.lang.String getText(boolean value,
int hint)
getText in interface TextRenderergetText in class BaseTextRendererprivate void writeObject(java.io.ObjectOutputStream out)
throws java.io.IOException
java.io.IOExceptionprivate void readObject(java.io.ObjectInputStream in)
throws java.io.IOException
java.io.IOException