A B C D E F G H I M N P S T V

A

abs(Magnitude) - Static method in class net.sf.magnitude.core.Math
Returns the absolute value of this Magnitude.
acos(Magnitude) - Static method in class net.sf.magnitude.core.Math
Returns the arc cosine of a value.
add(Magnitude) - Method in class net.sf.magnitude.core.Magnitude
Adds two magnitudes together.
addMag(String, Magnitude) - Static method in class net.sf.magnitude.core.Magnitude
Adds a magnitude to the list of known magnitudes.
areSameUnits(Magnitude) - Method in class net.sf.magnitude.core.Magnitude
Checks if the units of the two Magnitudes are the same.
areUnits(String) - Method in class net.sf.magnitude.core.Magnitude
Checks whether this Magnitude can be expressed using the specified units.
asin(Magnitude) - Static method in class net.sf.magnitude.core.Math
Returns the arc sine of a value.
Assert - Class in net.sf.magnitude.test
A set of assert methods to be used with JUnit testing library.
assertEquals(Magnitude, Magnitude, Magnitude) - Static method in class net.sf.magnitude.test.Assert
Asserts whether two Magnitudes are almost equal.
atan(Magnitude) - Static method in class net.sf.magnitude.core.Math
Returns the arc tangent of a value.
atan2(Magnitude, Magnitude) - Static method in class net.sf.magnitude.core.Math
Returns the arc tangent of a value.
average(Magnitude[]) - Static method in class net.sf.magnitude.core.Stats
Returns the average of the specified Magnitudes.

B

BaseUnits - Enum in net.sf.magnitude.core
Base units for the Magnitude class.

C

cbrt(Magnitude) - Static method in class net.sf.magnitude.core.Math
Returns the cubic root of a value.
ceil(Magnitude) - Static method in class net.sf.magnitude.core.Math
Returns the smallest (closest to negative infinity) value of this Magnitude.
clearPreferredUnits() - Method in class net.sf.magnitude.core.Magnitude
Clears the preferred units.
clone() - Method in class net.sf.magnitude.core.Magnitude
Creates a copy of the Magnitude object.
compareTo(Magnitude) - Method in class net.sf.magnitude.core.Magnitude
Compares two Magnitudes.
cos(Magnitude) - Static method in class net.sf.magnitude.core.Math
Returns the trigonometric cosine of an angle.

D

div(double) - Method in class net.sf.magnitude.core.Magnitude
Divides this Magnitude by a constant.
div(Magnitude) - Method in class net.sf.magnitude.core.Magnitude
Divides two magnitudes.

E

equals(Magnitude, Magnitude) - Method in class net.sf.magnitude.core.Magnitude
Checks whether two Magnitudes are almost equal.
equals(Object) - Method in class net.sf.magnitude.core.Magnitude
Checks whether two Magnitudes are equal.

F

floor(Magnitude) - Static method in class net.sf.magnitude.core.Math
Returns the largest (closest to positive infinity) value of this Magnitude.

G

getBaseUnitExponents() - Method in class net.sf.magnitude.core.Magnitude
Returns a base unit exponents for this magnitude.
getBaseUnitsLabel() - Method in class net.sf.magnitude.core.Magnitude
Returns a string representation of the units of this Magnitude.
getBaseUnitsValue() - Method in class net.sf.magnitude.core.Magnitude
Returns the value of this Magnitude in the base units.
getColumns() - Method in class net.sf.magnitude.gui.MagnitudeTextField
Returns the number of columns in the TextField.
getIndex() - Method in enum net.sf.magnitude.core.BaseUnits
Returns the index of the unit in the base unit exponent array of Magnitudes.
getPreferredUnitsLabel() - Method in class net.sf.magnitude.core.Magnitude
Returns the currently defined preferred units.
getPreferredUnitsValue() - Method in class net.sf.magnitude.core.Magnitude
Returns the value of this Magnitude in the preferred units.
getUnitsField() - Method in class net.sf.magnitude.gui.MagnitudeField
Returns the component for the units field.
getValue(String) - Method in class net.sf.magnitude.core.Magnitude
Returns the value of this Magnitude in the specified units.
getValue() - Method in class net.sf.magnitude.gui.MagnitudeField
Returns the last valid magnitude defined by the value and units selected.
getValue() - Method in class net.sf.magnitude.gui.MagnitudeTextField
Parses the text of this field and returns a magnitude.

H

hashCode() - Method in class net.sf.magnitude.core.Magnitude
Returns the hash code of this Magnitude.

I

isCorrect() - Method in class net.sf.magnitude.gui.MagnitudeTextField
Checks if the text in this field represents a valid Magnitude .
isDimensionless() - Method in class net.sf.magnitude.core.Magnitude
Returns whether this Magnitude has units.
isExponent(BaseUnits, int) - Method in class net.sf.magnitude.core.Magnitude
Checks if the exponent of the specified base unit is as specified.
isInfinite(Magnitude) - Static method in class net.sf.magnitude.core.Magnitude
Returns true if the value of the specified Magnitude is infinitely large, false otherwise.
isInfinite() - Method in class net.sf.magnitude.core.Magnitude
Returns true if the value of this Magnitude is infinitely large, false otherwise.
isNaN(Magnitude) - Static method in class net.sf.magnitude.core.Magnitude
Returns true if the value of the specified Magnitude is a Not-a-Number (NaN), false otherwise.
isNaN() - Method in class net.sf.magnitude.core.Magnitude
Returns true if the value of this Magnitude is a Not-a-Number (NaN), false otherwise.
isUnidimensional() - Method in class net.sf.magnitude.core.Magnitude
Returns whether this Magnitude has only one type of unit.
isValidUnits(String) - Static method in class net.sf.magnitude.core.Magnitude
Checks whether the specified units are valid (can be parsed by a Magnitude object).

M

Magnitude - Class in net.sf.magnitude.core
A magnitude is a value and its units.
Magnitude(double) - Constructor for class net.sf.magnitude.core.Magnitude
Creates a new dimension less Magnitude with the specified value.
Magnitude(double, Magnitude) - Constructor for class net.sf.magnitude.core.Magnitude
Creates a new Magnitude from the specified value and the units of another Magnitude object.
Magnitude(double, String) - Constructor for class net.sf.magnitude.core.Magnitude
Creates a new Magnitude from the specified value and units expressed as a string.
MagnitudeField - Class in net.sf.magnitude.gui
A Swing component to represent a magnitude.
MagnitudeField(boolean, String...) - Constructor for class net.sf.magnitude.gui.MagnitudeField
Creates a new MagnitudeField.
MagnitudeField(DecimalFormat, boolean, String...) - Constructor for class net.sf.magnitude.gui.MagnitudeField
Creates a new MagnitudeField.
MagnitudeTextField - Class in net.sf.magnitude.gui
A Swing component to represent a magnitude in a text field.
MagnitudeTextField() - Constructor for class net.sf.magnitude.gui.MagnitudeTextField
Creates a new MagnitudeTextField.
MagnitudeTextField(DecimalFormat) - Constructor for class net.sf.magnitude.gui.MagnitudeTextField
Creates a new MagnitudeTextField.
Math - Class in net.sf.magnitude.core
Mathematical operations with Magnitude objects.
max(Magnitude...) - Static method in class net.sf.magnitude.core.Math
Returns the maximum Magnitude from a list of Magnitude's.
min(Magnitude...) - Static method in class net.sf.magnitude.core.Math
Returns the minimum Magnitude from a list of Magnitude's.
minus(Magnitude) - Method in class net.sf.magnitude.core.Magnitude
Subtracts two magnitudes together.
modulo(Magnitude) - Method in class net.sf.magnitude.core.Magnitude
Returns the modulo of two Magnitude's.
multiply(double) - Method in class net.sf.magnitude.core.Magnitude
Multiplies this Magnitude by a constant.
multiply(Magnitude) - Method in class net.sf.magnitude.core.Magnitude
Multiplies two magnitudes.

N

net.sf.magnitude.core - package net.sf.magnitude.core
Core classes.
net.sf.magnitude.gui - package net.sf.magnitude.gui
 
net.sf.magnitude.test - package net.sf.magnitude.test
Classes useful for testing.

P

PI - Static variable in class net.sf.magnitude.core.Math
Pi.
power(double) - Method in class net.sf.magnitude.core.Magnitude
Power of this magnitude.

S

setColumns(int) - Method in class net.sf.magnitude.gui.MagnitudeTextField
Sets the number of columns in this TextField, and then invalidate the layout.
setFont(Font) - Method in class net.sf.magnitude.gui.MagnitudeField
 
setFont(Font) - Method in class net.sf.magnitude.gui.MagnitudeTextField
 
setName(String) - Method in class net.sf.magnitude.gui.MagnitudeField
 
setName(String) - Method in class net.sf.magnitude.gui.MagnitudeTextField
 
setPreferredUnits(String) - Method in class net.sf.magnitude.core.Magnitude
Sets the preferred units for the output ( Magnitude.getPreferredUnitsValue()).
setValue(Magnitude) - Method in class net.sf.magnitude.gui.MagnitudeField
Sets the value.
setValue(Magnitude) - Method in class net.sf.magnitude.gui.MagnitudeTextField
Sets the text of this field from the specified magnitude.
sin(Magnitude) - Static method in class net.sf.magnitude.core.Math
Returns the trigonometric sine of an angle.
sqrt(Magnitude) - Static method in class net.sf.magnitude.core.Math
Returns the square root of a value.
Stats - Class in net.sf.magnitude.core
Statistical operations with Magnitude objects.

T

tan(Magnitude) - Static method in class net.sf.magnitude.core.Math
Returns the trigonometric tangent of an angle.
toString() - Method in class net.sf.magnitude.core.Magnitude
Returns a String representation.

V

validateEqualUnits(Magnitude) - Method in class net.sf.magnitude.core.Magnitude
Checks if the units of this Magnitude are equal to the units of another Magnitude.
valueOf(String) - Static method in enum net.sf.magnitude.core.BaseUnits
Returns the enum constant of this type with the specified name.
values() - Static method in enum net.sf.magnitude.core.BaseUnits
Returns an array containing the constants of this enum type, in the order they are declared.

A B C D E F G H I M N P S T V