GraphController<T> class

The GraphController holds data to be drawn on the graph. It also notifies listeners on selection change. At least one group of data is required to draw the graph.

Inheritance

Constructors

GraphController([List<DataGroup<T>> groups])

Properties

groups List<DataGroup<T>>
Data groups to be plotted. The graph should contain at least one group.
read / write
hashCode int
The hash code for this object.
read-onlyinherited
hasListeners bool
Whether any listeners are currently registered.
@protectedread-onlyinherited
maxValue DataItem
read / write
runtimeType Type
A representation of the runtime type of the object.
read-onlyinherited
value DataSelection<T>
The current value stored in this notifier.
read / writeinherited

Methods

addListener(VoidCallback listener) → void
Register a closure to be called when the object changes.
inherited
dispose() → void
Discards any resources used by the object. After this is called, the object is not in a usable state and should be discarded (calls to addListener will throw after the object is disposed).
@mustCallSuperinherited
getBelongingGroup(DataItem data) DataGroup
Returns the group in which data belongs to
initialize() → void
This should be called right before it is passed to a SimpleBarGraph. It makes a default selection to the last item in the combined groups data and sets the maximum value of all data combined.
isActive(DataItem dataItem) bool
noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed.
inherited
notifyListeners() → void
Call all the registered listeners.
removeListener(VoidCallback listener) → void
Remove a previously registered closure from the list of closures that are notified when the object changes.
inherited
select(DataItem dataItem) → void
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited