JUCE
 All Classes Files Functions Variables Typedefs Enumerations Enumerator Defines
Public Member Functions | Protected Member Functions | Protected Attributes
SliderPropertyComponent Class Reference

A PropertyComponent that shows its value as a slider. More...

Inherits PropertyComponent, and Slider::Listener.

List of all members.

Public Member Functions

 SliderPropertyComponent (const Value &valueToControl, const String &propertyName, double rangeMin, double rangeMax, double interval, double skewFactor=1.0)
 Creates the property component.
 ~SliderPropertyComponent ()
 Destructor.
virtual void setValue (double newValue)
 Called when the user moves the slider to change its value.
virtual double getValue () const
 Returns the value that the slider should show.
void refresh ()
void sliderValueChanged (Slider *)

Protected Member Functions

 SliderPropertyComponent (const String &propertyName, double rangeMin, double rangeMax, double interval, double skewFactor=1.0)
 Creates the property component.

Protected Attributes

Slider slider
 The slider component being used in this component.

Detailed Description

A PropertyComponent that shows its value as a slider.

See also:
PropertyComponent, Slider

Constructor & Destructor Documentation

SliderPropertyComponent::SliderPropertyComponent ( const String propertyName,
double  rangeMin,
double  rangeMax,
double  interval,
double  skewFactor = 1.0 
) [protected]

Creates the property component.

The ranges, interval and skew factor are passed to the Slider component.

If you need to customise the slider in other ways, your constructor can access the slider member variable and change it directly.

SliderPropertyComponent::SliderPropertyComponent ( const Value valueToControl,
const String propertyName,
double  rangeMin,
double  rangeMax,
double  interval,
double  skewFactor = 1.0 
)

Creates the property component.

The ranges, interval and skew factor are passed to the Slider component.

If you need to customise the slider in other ways, your constructor can access the slider member variable and change it directly.

Destructor.


Member Function Documentation

virtual void SliderPropertyComponent::setValue ( double  newValue) [virtual]

Called when the user moves the slider to change its value.

Your subclass must use this method to update whatever item this property represents.

virtual double SliderPropertyComponent::getValue ( ) const [virtual]

Returns the value that the slider should show.

Implements PropertyComponent.

Implements Slider::Listener.


Member Data Documentation

The slider component being used in this component.

Your subclass has access to this in case it needs to customise it in some way.


The documentation for this class was generated from the following file: