A B C D E F G I J L M N P Q R S T U

A

actionPerformed(ActionEvent) - Method in class net.sourceforge.unit.Converter
 
add(String) - Method in class net.sourceforge.unit.UnitSystem
Add the unit u to this system.
add(String[]) - Method in class net.sourceforge.unit.UnitSystem
Add the unit u to this system.
add(Unit[]) - Method in class net.sourceforge.unit.UnitSystem
Add the unit u to this system.
add(Unit) - Method in class net.sourceforge.unit.UnitSystem
Add the unit u to this system.
add_escapes(String) - Method in exception net.sourceforge.unit.ParseException
Used to convert raw characters to their escaped version when these raw version cannot be used as part of an ASCII string literal.
addEscapes(String) - Static method in error net.sourceforge.unit.TokenMgrError
Replaces unprintable characters by their espaced (or unicode escaped) equivalents in the given string
addPrimitive(Unit) - Method in class net.sourceforge.unit.UnitSystem
This attempts to add a unit as a measurement of one of the seven primitives.
addUnit(String, String, String, String, String, String) - Method in class net.sourceforge.unit.UnitList
Add a unit to the list.
addUnit(String, String, String, String, String, String, String) - Method in class net.sourceforge.unit.UnitList
Add a unit to the list.
adjust(int, double) - Method in class net.sourceforge.unit.Converter
 

B

b - Variable in class net.sourceforge.unit.Unit
 

C

Chemistry - Class in net.sourceforge.unit
The Chemistry system of units (K, g, atm, mol/L, L, J/mol.
Chemistry() - Constructor for class net.sourceforge.unit.Chemistry
Create a unit system with units of K, g, atm, mol/L, L, and J/mol.
clone() - Method in class net.sourceforge.unit.Unit
 
clone() - Method in class net.sourceforge.unit.UnitSystem
 
convert(Unit) - Method in class net.sourceforge.unit.Quantity
Change units, but not the value.
convert(UnitSystem) - Method in class net.sourceforge.unit.Quantity
Change units, but not the value.
Converter - Class in net.sourceforge.unit
 
Converter() - Constructor for class net.sourceforge.unit.Converter
 
curChar - Static variable in class net.sourceforge.unit.ParseTokenManager
 
currentToken - Variable in exception net.sourceforge.unit.ParseException
This is the last token that has been consumed successfully.

D

DEFAULT - Static variable in interface net.sourceforge.unit.ParseConstants
 
defaultFormat - Static variable in class net.sourceforge.unit.Quantity
 
definition() - Method in class net.sourceforge.unit.Unit
Return the definition of this unit in terms of SI units.

E

English - Class in net.sourceforge.unit
The English (or Imperial) system of units (ft, lb, lbm, R, F, BTU, psi, ft lb).
English() - Constructor for class net.sourceforge.unit.English
Create a unit system with units of ft, lb, lbm, R, F, BTU, psi, ft lb.
EnglishR - Class in net.sourceforge.unit
The English system of units using R instead of F.
EnglishR() - Constructor for class net.sourceforge.unit.EnglishR
 
enumerate() - Static method in class net.sourceforge.unit.Unit
Return an enumeration of all defined units.
EOF - Static variable in interface net.sourceforge.unit.ParseConstants
 
eol - Variable in exception net.sourceforge.unit.ParseException
The end of line string for this machine.
equals(Unit) - Method in class net.sourceforge.unit.Unit
Return true if this is the same unit as other.
EXP - Static variable in interface net.sourceforge.unit.ParseConstants
 
exp - Variable in class net.sourceforge.unit.Unit
 
expectedTokenSequences - Variable in exception net.sourceforge.unit.ParseException
Each entry in this array is an array of integers.
exponent(int) - Method in class net.sourceforge.unit.Unit
Create a new unit that is this one raised to the power n.
exponent(double) - Method in class net.sourceforge.unit.Unit
Create a new unit that is this one raised to the power n.

F

fillList() - Method in class net.sourceforge.unit.UnitList
 
finish() - Method in class net.sourceforge.unit.UnitList
 
FLOATA - Static variable in interface net.sourceforge.unit.ParseConstants
 
FLOATB - Static variable in interface net.sourceforge.unit.ParseConstants
 
followUnit() - Method in class net.sourceforge.unit.Converter
 
format - Variable in class net.sourceforge.unit.Quantity
 
from(double) - Method in class net.sourceforge.unit.Unit
Convert from this unit to standard SI units.

G

get() - Method in class net.sourceforge.unit.Quantity
Return this value in the current units.
getB() - Method in class net.sourceforge.unit.Unit
Return the conversion offset (used for debugging).
getInsets() - Method in class net.sourceforge.unit.Converter
 
getM() - Method in class net.sourceforge.unit.Unit
Return the conversion scale factor (used for debugging).
getMessage() - Method in exception net.sourceforge.unit.ParseException
This method has the standard behavior when this object has been created using the standard constructors.
getMessage() - Method in error net.sourceforge.unit.TokenMgrError
You can also modify the body of this method to customize your error messages.
getNextToken() - Static method in class net.sourceforge.unit.ParseTokenManager
 
getType() - Method in class net.sourceforge.unit.Unit
Return the expontents relative to primitive units (used for debugging).

I

ID - Static variable in interface net.sourceforge.unit.ParseConstants
 
in(Unit) - Method in class net.sourceforge.unit.Quantity
Return this value in the specified units.
init() - Method in class net.sourceforge.unit.Converter
 
init() - Method in class net.sourceforge.unit.UnitList
 
INT - Static variable in interface net.sourceforge.unit.ParseConstants
 
itemStateChanged(ItemEvent) - Method in class net.sourceforge.unit.Converter
 

J

jjstrLiteralImages - Static variable in class net.sourceforge.unit.ParseTokenManager
 

L

latex - Variable in class net.sourceforge.unit.Unit
 
lexStateNames - Static variable in class net.sourceforge.unit.ParseTokenManager
 

M

m - Variable in class net.sourceforge.unit.Unit
 
main(String[]) - Static method in class net.sourceforge.unit.Converter
Executed only when this program runs as an application.
main(String[]) - Static method in class net.sourceforge.unit.UnitList
 
Metric - Class in net.sourceforge.unit
The Metric system of units.
Metric() - Constructor for class net.sourceforge.unit.Metric
Create a unit system with units of C, N, J, W, Pa, Co, and V.
MetricK - Class in net.sourceforge.unit
The Metric system of units, using K instead of C.
MetricK() - Constructor for class net.sourceforge.unit.MetricK
 

N

name - Variable in class net.sourceforge.unit.Unit
 
net.sourceforge.unit - package net.sourceforge.unit
The unit package allows one to convert from one set of units to another.
newUnit(String) - Static method in class net.sourceforge.unit.Unit
Create, if necessary, a new unit from the given definiton.
newUnit(String, double, String) - Static method in class net.sourceforge.unit.Unit
Make a unit which is m times the unit s.
newUnit(String, double, String, double) - Static method in class net.sourceforge.unit.Unit
Make a unit which is m times the unit s, with an offset of b.
newUnit(String, double, Unit, double) - Static method in class net.sourceforge.unit.Unit
Make a unit which is m times the unit u, with an offset of b.
NO_CHANGE - Static variable in class net.sourceforge.unit.Quantity
Returned by set() if there is no unit change.

P

paint(Graphics) - Method in class net.sourceforge.unit.Converter
Draws a box around this panel.
ParseConstants - Interface in net.sourceforge.unit
 
ParseException - Exception in net.sourceforge.unit
This exception is thrown when parse errors are encountered.
ParseException(Token, int[][], String[]) - Constructor for exception net.sourceforge.unit.ParseException
This constructor is used by the method "generateParseException" in the generated parser.
ParseException() - Constructor for exception net.sourceforge.unit.ParseException
The following constructors are for use by you for whatever purpose you can think of.
ParseException(String) - Constructor for exception net.sourceforge.unit.ParseException
 
ParseTokenManager - Class in net.sourceforge.unit
 
ParseTokenManager(ASCII_UCodeESC_CharStream) - Constructor for class net.sourceforge.unit.ParseTokenManager
 
ParseTokenManager(ASCII_UCodeESC_CharStream, int) - Constructor for class net.sourceforge.unit.ParseTokenManager
 
pick(Unit) - Method in class net.sourceforge.unit.UnitSystem
Return the unit in this system that is the same type as u.
product(Unit) - Method in class net.sourceforge.unit.Unit
Create a new unit that is the product of this one and the other one.
pure - Static variable in class net.sourceforge.unit.Unit
The unitless unit, such as radians, percents, or inches per inch.

Q

Quantity - Class in net.sourceforge.unit
A Quantity is a number together with a unit.
Quantity() - Constructor for class net.sourceforge.unit.Quantity
 
Quantity(String) - Constructor for class net.sourceforge.unit.Quantity
Create a quantity based on the given string.
Quantity(String, Unit) - Constructor for class net.sourceforge.unit.Quantity
Create a quantity with the default units specified.
quotient(Unit) - Method in class net.sourceforge.unit.Unit
Create a new unit that is the quotient of this one divided by the other one.

R

ReInit(ASCII_UCodeESC_CharStream) - Static method in class net.sourceforge.unit.ParseTokenManager
 
ReInit(ASCII_UCodeESC_CharStream, int) - Static method in class net.sourceforge.unit.ParseTokenManager
 
remove(Unit) - Method in class net.sourceforge.unit.UnitSystem
Remove this unit from the list of prefered units.
remove(String) - Method in class net.sourceforge.unit.UnitSystem
Remove this unit from the list of prefered units.
Rocketdyne - Class in net.sourceforge.unit
The unit system I usually used at Rocketdyne.
Rocketdyne() - Constructor for class net.sourceforge.unit.Rocketdyne
 

S

sameType(Unit) - Method in class net.sourceforge.unit.Unit
Return true if other measures the same thing (length, time, energy, ...).
SCI - Static variable in interface net.sourceforge.unit.ParseConstants
 
set(double) - Method in class net.sourceforge.unit.Quantity
Set this value based on the current unit.
set(double, Unit) - Method in class net.sourceforge.unit.Quantity
Set this value based on the supplied unit.
set(String) - Method in class net.sourceforge.unit.Quantity
Set this value and possibly change units.
set(String, boolean) - Method in class net.sourceforge.unit.Quantity
 
SLASH - Static variable in interface net.sourceforge.unit.ParseConstants
 
specialConstructor - Variable in exception net.sourceforge.unit.ParseException
This variable determines which constructor was used to create this object and thereby affects the semantics of the "getMessage" method (see below).
startGroup(String) - Method in class net.sourceforge.unit.UnitList
Start a new group of units.
SwitchTo(int) - Static method in class net.sourceforge.unit.ParseTokenManager
 

T

to(double) - Method in class net.sourceforge.unit.Unit
Convert from standard SI units to this unit.
tokenImage - Static variable in interface net.sourceforge.unit.ParseConstants
 
tokenImage - Variable in exception net.sourceforge.unit.ParseException
This is a reference to the "tokenImage" array of the generated parser within which the parse error occurred.
TokenMgrError - Error in net.sourceforge.unit
 
TokenMgrError() - Constructor for error net.sourceforge.unit.TokenMgrError
 
TokenMgrError(String, int) - Constructor for error net.sourceforge.unit.TokenMgrError
 
TokenMgrError(boolean, int, int, int, String, char, int) - Constructor for error net.sourceforge.unit.TokenMgrError
 
toString() - Method in class net.sourceforge.unit.Chemistry
 
toString() - Method in class net.sourceforge.unit.English
 
toString() - Method in class net.sourceforge.unit.EnglishR
 
toString() - Method in class net.sourceforge.unit.Metric
 
toString() - Method in class net.sourceforge.unit.MetricK
 
toString() - Method in class net.sourceforge.unit.Quantity
 
toString() - Method in class net.sourceforge.unit.Rocketdyne
 
toString() - Method in class net.sourceforge.unit.Unit
Returns the name, or if unnamed, the definition of this unit.
toString() - Method in class net.sourceforge.unit.UnitSystem
 

U

Unit - Class in net.sourceforge.unit
A Unit converts from one set of units to another.
Unit(String) - Constructor for class net.sourceforge.unit.Unit
Do not use this, use Unit.newUnit(String) instead.
UNIT_CHANGE - Static variable in class net.sourceforge.unit.Quantity
Returned by set() if there was a unit changed.
UnitList - Class in net.sourceforge.unit
This class makes a list of units and their definitions.
UnitList() - Constructor for class net.sourceforge.unit.UnitList
 
UnitMismatchException - Exception in net.sourceforge.unit
Used to signal that two units are not compatible
UnitMismatchException(String) - Constructor for exception net.sourceforge.unit.UnitMismatchException
 
UnitMismatchException() - Constructor for exception net.sourceforge.unit.UnitMismatchException
 
UNITS_INCOMPATIBLE - Static variable in class net.sourceforge.unit.Quantity
Returned by set() if there the unit changed, and it is not of the same type.
UnitSystem - Class in net.sourceforge.unit
A UnitSystem is a collection of prefered units, such as metric or English.
UnitSystem() - Constructor for class net.sourceforge.unit.UnitSystem
Create a default system of units -- Metric, without special units like W, N or J.
UnitSystem(String[]) - Constructor for class net.sourceforge.unit.UnitSystem
Create a default system of units -- and add all the units in a to it.

A B C D E F G I J L M N P Q R S T U