public abstract class BaseTextRenderer extends java.lang.Object implements TextRenderer, com.serotonin.json.JsonSerializable
| Modifier and Type | Class and Description |
|---|---|
static class |
BaseTextRenderer.Factory |
| Modifier and Type | Field and Description |
|---|---|
(package private) static java.util.List<ImplDefinition> |
definitions |
private static long |
serialVersionUID |
private static int |
version |
HINT_FULL, HINT_RAW, HINT_SPECIFIC, TYPE_ANALOG, TYPE_BINARY, TYPE_MULTISTATE, TYPE_PLAIN, TYPE_RANGE, UNKNOWN_VALUE| Constructor and Description |
|---|
BaseTextRenderer() |
| Modifier and Type | Method and Description |
|---|---|
(package private) static void |
ensureDefinitions() |
java.lang.String |
getColour() |
java.lang.String |
getColour(boolean value) |
java.lang.String |
getColour(double value) |
java.lang.String |
getColour(int value) |
java.lang.String |
getColour(MangoValue value) |
java.lang.String |
getColour(PointValueTime valueTime) |
java.lang.String |
getColour(java.lang.String value) |
protected abstract java.lang.String |
getColourImpl(MangoValue value) |
static java.util.List<java.lang.String> |
getExportTypes() |
static java.util.List<ImplDefinition> |
getImplementation(int dataType) |
java.lang.String |
getMetaText() |
java.lang.String |
getText(boolean value,
int hint) |
java.lang.String |
getText(double value,
int hint) |
java.lang.String |
getText(int hint) |
java.lang.String |
getText(int value,
int hint) |
java.lang.String |
getText(MangoValue value,
int hint) |
java.lang.String |
getText(PointValueTime valueTime,
int hint) |
java.lang.String |
getText(java.lang.String value,
int hint) |
protected abstract java.lang.String |
getTextImpl(MangoValue value,
int hint) |
void |
jsonDeserialize(com.serotonin.json.JsonReader reader,
com.serotonin.json.JsonObject json) |
void |
jsonSerialize(java.util.Map<java.lang.String,java.lang.Object> map) |
private void |
readObject(java.io.ObjectInputStream in) |
private void |
writeObject(java.io.ObjectOutputStream out) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetDef, getTypeNamestatic java.util.List<ImplDefinition> definitions
private static final long serialVersionUID
private static final int version
static void ensureDefinitions()
public static java.util.List<ImplDefinition> getImplementation(int dataType)
public static java.util.List<java.lang.String> getExportTypes()
public java.lang.String getText(int hint)
getText in interface TextRendererpublic java.lang.String getText(PointValueTime valueTime, int hint)
getText in interface TextRendererpublic java.lang.String getText(MangoValue value, int hint)
getText in interface TextRendererprotected abstract java.lang.String getTextImpl(MangoValue value, int hint)
public java.lang.String getText(double value,
int hint)
getText in interface TextRendererpublic java.lang.String getText(int value,
int hint)
getText in interface TextRendererpublic java.lang.String getText(boolean value,
int hint)
getText in interface TextRendererpublic java.lang.String getText(java.lang.String value,
int hint)
getText in interface TextRendererpublic java.lang.String getMetaText()
getMetaText in interface TextRendererpublic java.lang.String getColour()
getColour in interface TextRendererpublic java.lang.String getColour(PointValueTime valueTime)
getColour in interface TextRendererpublic java.lang.String getColour(MangoValue value)
getColour in interface TextRendererprotected abstract java.lang.String getColourImpl(MangoValue value)
public java.lang.String getColour(double value)
getColour in interface TextRendererpublic java.lang.String getColour(int value)
getColour in interface TextRendererpublic java.lang.String getColour(boolean value)
getColour in interface TextRendererpublic java.lang.String getColour(java.lang.String value)
getColour in interface TextRendererprivate 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.IOExceptionpublic void jsonDeserialize(com.serotonin.json.JsonReader reader,
com.serotonin.json.JsonObject json)
jsonDeserialize in interface com.serotonin.json.JsonSerializablepublic void jsonSerialize(java.util.Map<java.lang.String,java.lang.Object> map)
jsonSerialize in interface com.serotonin.json.JsonSerializable