public static class TrafficLightChart.Builder extends Widget.Builder<TrafficLightChart,TrafficLightChart.Builder>
Constructor and Description |
---|
Builder()
Default constructor.
|
Modifier and Type | Method and Description |
---|---|
TrafficLightChart.Builder |
addData(EventsData data)
Adds an item to the list of widget data items.
|
TrafficLightChart.Builder |
addNrqlData(String nrql)
Adds the given nrql to the list of widget data items.
|
TrafficLightChart.Builder |
addTrafficLight(TrafficLight trafficLight)
Adds a traffic light to the presentation.
|
TrafficLightChart |
build()
Returns the configured widget instance
|
TrafficLightChart.Builder |
presentation(TrafficLightPresentation presentation)
Sets the presentation of the widget.
|
protected TrafficLightChart.Builder |
self()
Returns this object.
|
accountId, layout, notes, position, size, title, visualization, widget
public TrafficLightChart.Builder presentation(TrafficLightPresentation presentation)
presentation
- The presentation of the widgetpublic TrafficLightChart.Builder addTrafficLight(TrafficLight trafficLight)
trafficLight
- The traffic light to add to the presentationpublic TrafficLightChart.Builder addData(EventsData data)
data
- The list of widget data itemspublic TrafficLightChart.Builder addNrqlData(String nrql)
nrql
- The nrql of the widget dataprotected TrafficLightChart.Builder self()
self
in class Widget.Builder<TrafficLightChart,TrafficLightChart.Builder>
public TrafficLightChart build()
build
in class Widget.Builder<TrafficLightChart,TrafficLightChart.Builder>
Copyright © 2018. All rights reserved.