RangeTickRendererSpec<D> constructor

RangeTickRendererSpec<D>({
  1. TextStyleSpec? labelStyle,
  2. LineStyleSpec? lineStyle,
  3. TickLabelAnchor? labelAnchor,
  4. TickLabelJustification? labelJustification,
  5. int? labelOffsetFromAxisPx,
  6. int? labelCollisionOffsetFromAxisPx,
  7. int? labelOffsetFromTickPx,
  8. int? labelCollisionOffsetFromTickPx,
  9. int? rangeShadeHeightPx,
  10. int? rangeShadeOffsetFromAxisPx,
  11. LineStyleSpec? rangeShadeStyle,
  12. int? rangeTickLengthPx,
  13. int? rangeTickOffsetPx,
  14. TextStyleSpec? rangeLabelStyle,
  15. int? tickLengthPx,
  16. int? minimumPaddingBetweenLabelsPx,
  17. int? labelRotation,
  18. int? labelCollisionRotation,
})

Implementation

RangeTickRendererSpec(
    {TextStyleSpec? labelStyle,
    LineStyleSpec? lineStyle,
    TickLabelAnchor? labelAnchor,
    TickLabelJustification? labelJustification,
    int? labelOffsetFromAxisPx,
    int? labelCollisionOffsetFromAxisPx,
    int? labelOffsetFromTickPx,
    int? labelCollisionOffsetFromTickPx,
    this.rangeShadeHeightPx,
    this.rangeShadeOffsetFromAxisPx,
    this.rangeShadeStyle,
    this.rangeTickLengthPx,
    this.rangeTickOffsetPx,
    this.rangeLabelStyle,
    int? tickLengthPx,
    int? minimumPaddingBetweenLabelsPx,
    int? labelRotation,
    int? labelCollisionRotation})
    : defaultLabelStyleSpec =
          TextStyleSpec(fontSize: 9, color: StyleFactory.style.tickColor),
      super(
        axisLineStyle: lineStyle,
        labelStyle: labelStyle,
        labelAnchor: labelAnchor,
        labelJustification: labelJustification,
        labelOffsetFromAxisPx:
            labelOffsetFromAxisPx ?? defaultLabelOffsetFromAxis,
        labelCollisionOffsetFromAxisPx: labelCollisionOffsetFromAxisPx,
        labelOffsetFromTickPx:
            labelOffsetFromTickPx ?? defaultLabelOffsetFromTick,
        labelCollisionOffsetFromTickPx: labelCollisionOffsetFromTickPx,
        tickLengthPx: tickLengthPx,
        minimumPaddingBetweenLabelsPx: minimumPaddingBetweenLabelsPx,
        labelRotation: labelRotation,
        labelCollisionRotation: labelCollisionRotation,
      );