ViewPortJob class abstract
Base class of the jobs that move or zoom the viewport of a chart to a position given in value space.
Jobs are pooled: obtain one with the getInstance of a subclass instead of constructing it. Pass its run to
chart.addViewportJob, which runs it right away when the chart has been laid out and otherwise after the
first layout, so it can be created before the chart has a size.
Kotlin's Runnable is the run method; Android's View is the chart as a ChartInvalidator.
- Inheritance
- Implementers
Constructors
- ViewPortJob(ViewPortHandler? viewPortHandler, double xValue, double yValue, Transformer? transformer, ChartInvalidator? view)
-
Creates a job for
viewPortHandlerthat convertsxValueandyValuewithtransformerand refreshesview.
Properties
- currentOwnerId ↔ int
-
The ObjectPool.poolId of the pool that stores this instance, or NO_OWNER. Kotlin
internal: maintained by ObjectPool; do not change it.getter/setter pairinherited - hashCode → int
-
The hash code for this object.
no setterinherited
- pts → Float32List
-
Buffer for the target point, filled in value space and converted to pixels in place.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- transformer ↔ Transformer?
-
Converts xValue and yValue to pixels.
getter/setter pair
- view ↔ ChartInvalidator?
-
The chart to refresh.
getter/setter pair
- viewPortHandler ↔ ViewPortHandler?
-
Viewport of the chart to change.
getter/setter pair
- xValue ↔ double
-
Target x value of the job.
getter/setter pair
- yValue ↔ double
-
Target y value of the job.
getter/setter pair
Methods
-
instantiate(
) → Poolable -
Creates a new, blank instance of the same type.
inherited
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
run(
) → void -
Does the job, Kotlin's
Runnable.run(). -
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited