Package | Description |
---|---|
com.sun.electric.database.text |
Package for handling text.
|
com.sun.electric.tool.user |
Package for handling the user-interface tool.
|
com.sun.electric.util |
Modifier and Type | Method and Description |
---|---|
static double |
TextUtils.convertDistance(double value,
Technology tech,
TextUtils.UnitScale unitScale)
Method to convert a database coordinate into real spacing.
|
static double |
TextUtils.convertFromDistance(double value,
Technology tech,
TextUtils.UnitScale unitScale)
Method to convert real spacing into a database coordinate.
|
Modifier and Type | Method and Description |
---|---|
static TextUtils.UnitScale |
User.getAmperageUnits()
Method to get current amperage (current) units.
|
static TextUtils.UnitScale |
User.getCapacitanceUnits()
Method to get current capacitance units.
|
static TextUtils.UnitScale |
User.getDistanceUnits()
Method to get current distance units.
|
static TextUtils.UnitScale |
User.getFactoryAmperageUnits()
Method to get default amperage (current) units.
|
static TextUtils.UnitScale |
User.getFactoryCapacitanceUnits()
Method to get default capacitance units.
|
static TextUtils.UnitScale |
User.getFactoryDistanceUnits()
Method to get default distance units.
|
static TextUtils.UnitScale |
User.getFactoryInductanceUnits()
Method to get default inductance units.
|
static TextUtils.UnitScale |
User.getFactoryResistanceUnits()
Method to get default resistance units.
|
static TextUtils.UnitScale |
User.getFactoryTimeUnits()
Method to get default time units.
|
static TextUtils.UnitScale |
User.getFactoryVoltageUnits()
Method to get default voltage units.
|
static TextUtils.UnitScale |
User.getInductanceUnits()
Method to get current inductance units.
|
static TextUtils.UnitScale |
User.getResistanceUnits()
Method to get current resistance units.
|
static TextUtils.UnitScale |
User.getTimeUnits()
Method to get current time units.
|
static TextUtils.UnitScale |
User.getVoltageUnits()
Method to get current voltage units.
|
Modifier and Type | Method and Description |
---|---|
static void |
User.setAmperageUnits(TextUtils.UnitScale us)
Method to set the current amperage (current) units.
|
static void |
User.setCapacitanceUnits(TextUtils.UnitScale us)
Method to set the current capacitance units.
|
static void |
User.setDistanceUnits(TextUtils.UnitScale us)
Method to set the current distance units.
|
static void |
User.setInductanceUnits(TextUtils.UnitScale us)
Method to set the current inductance units.
|
static void |
User.setResistanceUnits(TextUtils.UnitScale us)
Method to set the current resistance units.
|
static void |
User.setTimeUnits(TextUtils.UnitScale us)
Method to set the current time units.
|
static void |
User.setVoltageUnits(TextUtils.UnitScale us)
Method to set the current voltage units.
|
Modifier and Type | Field and Description |
---|---|
static TextUtils.UnitScale |
TextUtils.UnitScale.ATTO
Describes atto scale (1 quintillionth, 10 to the -18th).
|
static TextUtils.UnitScale |
TextUtils.UnitScale.EXA
Describes exa scale (1 quintillion, 10 to the 18th).
|
static TextUtils.UnitScale |
TextUtils.UnitScale.FEMTO
Describes femto scale (1 quadrillionth, 10 to the -15th).
|
static TextUtils.UnitScale |
TextUtils.UnitScale.GIGA
Describes giga scale (1 billion, 10 to the 9th).
|
static TextUtils.UnitScale |
TextUtils.UnitScale.KILO
Describes kilo scale (1 thousand, 10 to the 3rd).
|
static TextUtils.UnitScale |
TextUtils.UnitScale.MEGA
Describes mega scale (1 million, 10 to the 6th).
|
static TextUtils.UnitScale |
TextUtils.UnitScale.MEGA2
Describes mega scale (1 million, 10 to the 6th).
|
static TextUtils.UnitScale |
TextUtils.UnitScale.MICRO
Describes micro scale (1 millionth, 10 to the -6th).
|
static TextUtils.UnitScale |
TextUtils.UnitScale.MILLI
Describes milli scale (1 thousandth, 10 to the -3rd).
|
static TextUtils.UnitScale |
TextUtils.UnitScale.NANO
Describes nano scale (1 billionth, 10 to the -9th).
|
static TextUtils.UnitScale |
TextUtils.UnitScale.NONE
Describes unit scale (1).
|
static TextUtils.UnitScale |
TextUtils.UnitScale.PETA
Describes peta scale (1 quadrillion, 10 to the 15th).
|
static TextUtils.UnitScale |
TextUtils.UnitScale.PICO
Describes pico scale (1 trillionth, 10 to the -12th).
|
static TextUtils.UnitScale |
TextUtils.UnitScale.TERA
Describes tera scale (1 trillion, 10 to the 12th).
|
static TextUtils.UnitScale |
TextUtils.UnitScale.ZEPTO
Describes zepto scale (1 sextillionth, 10 to the -21st).
|
static TextUtils.UnitScale |
TextUtils.UnitScale.ZETTA
Describes zetta scale (1 sextillion, 10 to the 21st).
|
Modifier and Type | Method and Description |
---|---|
static TextUtils.UnitScale |
TextUtils.UnitScale.findFromIndex(int index)
Method to convert the index value to a UnitScale.
|
static TextUtils.UnitScale |
TextUtils.UnitScale.findUnitScaleFromPostfix(java.lang.String str) |
static TextUtils.UnitScale[] |
TextUtils.UnitScale.getUnitScales()
Method to return a list of all scales.
|
Modifier and Type | Method and Description |
---|---|
static java.lang.Number |
TextUtils.parsePostFixNumber(java.lang.String s,
TextUtils.UnitScale us)
Try to parse the user input String s into a Number.
|