public class MultistateRenderer extends BaseTextRenderer
BaseTextRenderer.Factory| Modifier and Type | Field and Description |
|---|---|
private static ImplDefinition |
definition |
private java.util.List<MultistateValue> |
multistateValues |
private static long |
serialVersionUID |
private static int |
version |
definitionsHINT_FULL, HINT_RAW, HINT_SPECIFIC, TYPE_ANALOG, TYPE_BINARY, TYPE_MULTISTATE, TYPE_PLAIN, TYPE_RANGE, UNKNOWN_VALUE| Constructor and Description |
|---|
MultistateRenderer() |
| Modifier and Type | Method and Description |
|---|---|
void |
addMultistateValue(int key,
java.lang.String text,
java.lang.String colour) |
java.lang.String |
getColour(int value) |
protected java.lang.String |
getColourImpl(MangoValue value) |
ImplDefinition |
getDef() |
static ImplDefinition |
getDefinition() |
private MultistateValue |
getMultistateValue(int value) |
java.util.List<MultistateValue> |
getMultistateValues() |
java.lang.String |
getText(int value,
int hint) |
protected java.lang.String |
getTextImpl(MangoValue value,
int hint) |
java.lang.String |
getTypeName() |
private void |
readObject(java.io.ObjectInputStream in) |
void |
setMultistateValues(java.util.List<MultistateValue> multistateValues) |
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.util.List<MultistateValue> multistateValues
private static final long serialVersionUID
private static final int version
public static ImplDefinition getDefinition()
public java.lang.String getTypeName()
public ImplDefinition getDef()
public void addMultistateValue(int key,
java.lang.String text,
java.lang.String colour)
public java.util.List<MultistateValue> getMultistateValues()
public void setMultistateValues(java.util.List<MultistateValue> multistateValues)
protected java.lang.String getTextImpl(MangoValue value, int hint)
getTextImpl in class BaseTextRendererpublic java.lang.String getText(int value,
int hint)
getText in interface TextRenderergetText in class BaseTextRendererprotected java.lang.String getColourImpl(MangoValue value)
getColourImpl in class BaseTextRendererpublic java.lang.String getColour(int value)
getColour in interface TextRenderergetColour in class BaseTextRendererprivate MultistateValue getMultistateValue(int value)
private void writeObject(java.io.ObjectOutputStream out)
throws java.io.IOException
java.io.IOExceptionprivate void readObject(java.io.ObjectInputStream in)
throws java.io.IOException,
java.lang.ClassNotFoundException
java.io.IOExceptionjava.lang.ClassNotFoundException