public static interface Telemetry.Item
Telemetry.Item represent an item of data on the drive station telemetry display.#addData(String, Object)}| Modifier and Type | Method and Description |
|---|---|
<T> Telemetry.Item |
addData(java.lang.String caption,
Func<T> valueProducer)
Adds a new data item in the associated
Telemetry immediately following the receiver. |
Telemetry.Item |
addData(java.lang.String caption,
java.lang.Object value)
Adds a new data item in the associated
Telemetry immediately following the receiver. |
<T> Telemetry.Item |
addData(java.lang.String caption,
java.lang.String format,
Func<T> valueProducer)
Adds a new data item in the associated
Telemetry immediately following the receiver. |
Telemetry.Item |
addData(java.lang.String caption,
java.lang.String format,
java.lang.Object... args)
Adds a new data item in the associated
Telemetry immediately following the receiver. |
java.lang.String |
getCaption()
Returns the caption associated with this item.
|
boolean |
isRetained()
Returns whether the item is to be retained in a clear() operation.
|
Telemetry.Item |
setCaption(java.lang.String caption)
Sets the caption associated with this item.
|
Telemetry.Item |
setRetained(java.lang.Boolean retained)
Sets whether the item is to be retained in clear() operation or not.
|
<T> Telemetry.Item |
setValue(Func<T> valueProducer)
Updates the value of this item to be the indicated value producer.
|
Telemetry.Item |
setValue(java.lang.Object value)
Updates the value of this item to be the result of applying
Object.toString()
to the indicated object. |
<T> Telemetry.Item |
setValue(java.lang.String format,
Func<T> valueProducer)
Updates the value of this item to be the indicated value producer.
|
Telemetry.Item |
setValue(java.lang.String format,
java.lang.Object... args)
Updates the value of this item to be the result of the indicated string formatting operation.
|
java.lang.String getCaption()
setCaption(String),
addData(String, Object)Telemetry.Item setCaption(java.lang.String caption)
caption - the new caption associated with this item.getCaption()Telemetry.Item setValue(java.lang.String format, java.lang.Object... args)
format - the format of the dataargs - the arguments associated with the formataddData(String, String, Object...)Telemetry.Item setValue(java.lang.Object value)
Object.toString()
to the indicated object.value - the object to which Object.toString() should be appliedaddData(String, Object)<T> Telemetry.Item setValue(Func<T> valueProducer)
valueProducer - an object that produces values to be rendered.addData(String, Func)<T> Telemetry.Item setValue(java.lang.String format, Func<T> valueProducer)
format - this string used to format values producedvalueProducer - an object that produces values to be rendered.addData(String, String, Func)Telemetry.Item setRetained(java.lang.Boolean retained)
retained - if true, then the value will be retained during a clear(). Null will
return the setting to its initial value.Telemetry.clear(),
isRetained()boolean isRetained()
setRetained(Boolean)Telemetry.Item addData(java.lang.String caption, java.lang.String format, java.lang.Object... args)
Telemetry immediately following the receiver.addData(String, String, Object...)Telemetry.Item addData(java.lang.String caption, java.lang.Object value)
Telemetry immediately following the receiver.addData(String, Object)<T> Telemetry.Item addData(java.lang.String caption, Func<T> valueProducer)
Telemetry immediately following the receiver.addData(String, Func)<T> Telemetry.Item addData(java.lang.String caption, java.lang.String format, Func<T> valueProducer)
Telemetry immediately following the receiver.addData(String, String, Func)