All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class guinea.player.VolumePercent

java.lang.Object
   |
   +----guinea.player.Volume
           |
           +----guinea.player.VolumeLinear
                   |
                   +----guinea.player.VolumePercent

public class VolumePercent
extends VolumeLinear

Constructor Index

· VolumePercent(double)
Contruct a new Volume object that is in percent scale.
· VolumePercent(Volume)
Contruct a new Volume object that is in percent scale.

Method Index

· toLinear()
Convert this volume object to a volume level object in linear scale.
· toPercent()
Convert this volume object to a volume level object in percent scale.
· toString()
Get a string representation of the volume level.

Constructors

· VolumePercent
 public VolumePercent(double volume)
Contruct a new Volume object that is in percent scale.

Parameters:
volume - the volume level in percent level.
· VolumePercent
 public VolumePercent(Volume vol)
Contruct a new Volume object that is in percent scale.

Parameters:
vol - a copy of volume object converted to percent scale

Methods

· toPercent
 public Volume toPercent()
Convert this volume object to a volume level object in percent scale.

Returns:
a Volume object in percent scale.
Overrides:
toPercent in class Volume
· toLinear
 public Volume toLinear()
Convert this volume object to a volume level object in linear scale.

Returns:
a Volume object in linear scale.
Overrides:
toLinear in class VolumeLinear
· toString
 public String toString()
Get a string representation of the volume level.

Overrides:
toString in class VolumeLinear

All Packages  Class Hierarchy  This Package  Previous  Next  Index