GraphViewport class

Constructors

GraphViewport({required double barSpacing, required double rightOffset})
const

Properties

atEnd → bool
The last row is in view: new rows are followed.
no setter
barSpacing → double
final
hashCode → int
The hash code for this object.
no setteroverride
rightOffset → double
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited

Methods

afterAppend(int appended, {required bool follow}) → GraphViewport
After appended new rows: a view at the end follows them, any other stays on the rows it shows.
clamp(int count, double width, {int keep = 2}) → GraphViewport
Kept so that at least keep rows stay in view on either side.
from(int count, double width) → double
The position at the plot's left edge.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
pan(double dx) → GraphViewport
Dragged by dx pixels (to the right shows older rows).
to(int count) → double
The position at the plot's right edge.
toString() → String
A string representation of this object.
override
visible(int count, double width) → (int, int)
The first and last rows at least partly in view; (0, -1) for none.
zoomAt(double px, double factor, double width, {double min = 0.5, double max = 80}) → GraphViewport
Zoomed by factor with the position under px (from the plot's left) staying under it.

Operators

operator ==(Object other) → bool
The equality operator.
override

Static Methods

showLast(int rows, double width, {double rightOffset = 0}) → GraphViewport
The view that shows the last rows rows across width.