|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.cosylab.gui.components.numberfield.AngleNumberDescriptor com.cosylab.gui.components.numberfield.Rad2DegNumberDescriptor
public class Rad2DegNumberDescriptor
Visualize double value in radians by converting it to degrees and displays it in format XX°XX'XX\".
Field Summary | |
---|---|
static java.lang.String |
DESCRIPTION
|
static java.lang.String |
NAME
|
Constructor Summary | |
---|---|
Rad2DegNumberDescriptor()
|
|
Rad2DegNumberDescriptor(boolean full)
Constructs a new Rad2DegNumberDescriptor. |
|
Rad2DegNumberDescriptor(char degreeSeparator,
char minuteSeparator,
char secondSeparator)
Constructs a new Rad2DegNumberDescriptor. |
|
Rad2DegNumberDescriptor(char degreeSeparator,
char minuteSeparator,
char secondSeparator,
boolean full)
Constructs a new Rad2DegNumberDescriptor. |
Method Summary | |
---|---|
java.lang.Number |
parseNumber(java.lang.String number)
Parses string and creates Number . |
java.lang.String |
printString(java.lang.Number number)
Converts provided Number to a string, which is used for
displaying the value. |
Methods inherited from class com.cosylab.gui.components.numberfield.AngleNumberDescriptor |
---|
getDegreeSeparator, getFormat, getMinuteSeparator, getNumberType, getSecondSeparator, isUseFullFormat, main, printEditString, setDegreeSeparator, setFormat, setMinuteSeparator, setNumberType, setSecondSeparator, setUseFullFormat |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final java.lang.String NAME
NumberDescriptor
,
Constant Field Valuespublic static final java.lang.String DESCRIPTION
NumberDescriptor
,
Constant Field ValuesConstructor Detail |
---|
public Rad2DegNumberDescriptor()
public Rad2DegNumberDescriptor(boolean full)
full
- should full format be usedAngleNumberDescriptor.setUseFullFormat(boolean)
public Rad2DegNumberDescriptor(char degreeSeparator, char minuteSeparator, char secondSeparator)
degreeSeparator
- minuteSeparator
- secondSeparator
- public Rad2DegNumberDescriptor(char degreeSeparator, char minuteSeparator, char secondSeparator, boolean full)
degreeSeparator
- minuteSeparator
- secondSeparator
- full
- should full format be usedAngleNumberDescriptor.setUseFullFormat(boolean)
Method Detail |
---|
public java.lang.String printString(java.lang.Number number)
NumberDescriptor
Number
to a string, which is used for
displaying the value.
printString
in interface NumberDescriptor
printString
in class AngleNumberDescriptor
number
- a number to be transformed to string
String
representing a number.public java.lang.Number parseNumber(java.lang.String number)
NumberDescriptor
Number
. If string is not
presentation of a number and can not be parsed, then null must be
returned.
parseNumber
in interface NumberDescriptor
parseNumber
in class AngleNumberDescriptor
number
- a string representing a number
Number
or null
if string
can not be parsed
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |