Method: CDK::SCALE#setLowHigh

Defined in:
lib/cdk/components/scale.rb

#setLowHigh(low, high) ⇒ Object

This function sets the low/high values of the widget.



483
484
485
486
487
488
489
490
491
492
493
494
495
# File 'lib/cdk/components/scale.rb', line 483

def setLowHigh(low, high)
  # Make sure the values aren't out of bounds.
  if low <= high
    @low = low
    @high = high
  elsif low > high
    @low = high
    @high = low
  end

  # Make sure the user hasn't done something silly.
  self.limitCurrentValue
end