NumericScale class abstract
Scale used to convert numeric domain input units to output range units.
The input represents a continuous numeric domain which maps to a given range output. This is used to map the domain's values to the available pixel range of the chart.
- Implementers
Constructors
Properties
- dataExtent → NumericExtents
- 
  Returns the extent of the actual data (not the viewport max).
  no setter
- domainOverride ↔ NumericExtents?
- 
  Overrides the domain extent if set, null otherwise.
  getter/setter pair
- domainStepSize → double
- 
  Returns the stepSize domain value.
  no setterinherited
- hashCode → int
- 
  The hash code for this object.
  no setterinherited
- keepViewportWithinData ↔ bool
- 
  Keeps the scale and translate sane if true (default).
  getter/setter pair
- minimumDomainStep → num
- 
  Returns the minimum step size of the actual data.
  no setter
- range ↔ ScaleOutputExtent?
- 
  Returns the previously set output range for the scale function.
  getter/setter pairinherited
- rangeBand → double
- 
  Returns the rangeBand width in pixels.
  no setterinherited
- rangeBandConfig ↔ RangeBandConfig
- 
  Returns the configuration used to determine the rangeBand.
  getter/setter pairinherited
- rangeWidth → int
- 
  Returns the absolute width between the max and min range values.
  no setterinherited
- runtimeType → Type
- 
  A representation of the runtime type of the object.
  no setterinherited
- stepSize → double
- 
  Returns the stepSize width in pixels.
  no setterinherited
- stepSizeConfig ↔ StepSizeConfig
- 
  Sets the method for determining the step size.
  getter/setter pairinherited
- viewportDomain ↔ NumericExtents
- 
  Returns the domain extent visible in the viewport of the drawArea.
  getter/setter pair
- viewportScalingFactor → double
- 
  Returns the current viewport scale.
  no setterinherited
- viewportTranslatePx → double
- 
  Returns the current pixel viewport offset
  no setterinherited
Methods
- 
  addDomain(num domainValue) → void 
- 
  Add domainValueto thisScale's domain.inherited
- 
  canTranslate(num domainValue) → bool 
- 
  Tests a domainValueto see if the scale can translate it.inherited
- 
  compareDomainValueToViewport(num domainValue) → int 
- 
  Tests whether the given domainValueis within the axis' range.inherited
- 
  computeViewportScaleFactor(double domainWindow) → double 
- Returns the viewportScaleFactor needed to present the given domainWindow.
- 
  copy() → MutableScale< num> 
- 
  Returns a mutable copy of the scale.
  inherited
- 
  isRangeValueWithinViewport(double rangeValue) → bool 
- 
  Returns true if the given rangeValuepoint is within the output range.inherited
- 
  noSuchMethod(Invocation invocation) → dynamic 
- 
  Invoked when a nonexistent method or property is accessed.
  inherited
- 
  resetDomain() → void 
- 
  Reset the domain for this Scale.inherited
- 
  resetViewportSettings() → void 
- 
  Reset the viewport settings for this Scale.inherited
- 
  reverse(double pixelLocation) → num 
- 
  Reverse application of the scale.
  inherited
- 
  setViewportSettings(double viewportScale, double viewportTranslatePx) → void 
- 
  Configures the zoom and translate.
  inherited
- 
  toString() → String 
- 
  A string representation of this object.
  inherited
Operators
- 
  operator ==(Object other) → bool 
- 
  The equality operator.
  inherited
- 
  operator [](num domainValue) → num? 
- 
  Applies the scale function to the domainValue.inherited