Overview | Package | Class | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## jcontrol.util
Interface DataConsumer

    public interface DataConsumer

Method Summary
`DataProducer` | `getDataProducer()` Returns the data producer of this DataConsumer.
`void` | `setDataProducer(DataProducer producer)` Sets a data producer to this DataConsumer.
`void` | `setRange(int min, int max)` Sets the DataConsumer's value ranges.
`void` | `setValue(int value)` Sets the value of the meter

Method Detail

### setValue

    void setValue(int value)

  Sets the value of the meter

  Parameters:
    `value` - The value to set.

### setDataProducer

    void setDataProducer(DataProducer producer)

  Sets a data producer to this DataConsumer.

  Parameters:
    `producer` - The data producer to set.

### getDataProducer

    DataProducer getDataProducer()

  Returns the data producer of this DataConsumer.

  Returns:
    the data producer of this DataConsumer.

### setRange

    void setRange(int min,
                  int max)

  Sets the DataConsumer's value ranges. The ranges specified here will override the ranges specified by the DataProducer.

  Parameters:
    `min` - Minimum value of the DataConsumer's range
    `max` - Maximum value of the DataConsumer's range

Overview | Package | Class | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD