|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.odftoolkit.odfdom.dom.type.OdfLengthOrPercent
public class OdfLengthOrPercent
DOM implementation of OpenDocument data type 'lengthOrPercent' This value type stores either a measure value in 1/100th mm as int or a percent value as double.
| Constructor Summary | |
|---|---|
OdfLengthOrPercent()
Construct OdfLengthOrPercent without the initialized value |
|
OdfLengthOrPercent(OdfLengthOrPercent val)
Copy Construct OdfLengthOrPercent with the same value of val |
|
| Method Summary | |
|---|---|
int |
getLength()
get the Length value of this OdfLengthOrPercent Object |
double |
getPercent()
get the Percent value of this OdfLengthOrPercent Object |
boolean |
isPercent()
get the internal value type of OdfLengthOrPercent Object |
void |
setLength(int length)
set Length value for OdfLengthOrPercent Object |
void |
setPercent(double percent)
set Percent value for OdfLengthOrPercent Object |
String |
toString()
Returns a String Object representing this OdfLengthOrPercent's value |
static OdfLengthOrPercent |
valueOf(String stringValue)
Returns an OdfLengthOrPercent instance representing the specified String value |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public OdfLengthOrPercent()
public OdfLengthOrPercent(OdfLengthOrPercent val)
val - the copied OdfLengthOrPercent object| Method Detail |
|---|
public void setLength(int length)
length - the length value which is set to OdfLengthOrPercent Objectpublic void setPercent(double percent)
percent - the percent value which is set to OdfLengthOrPercent Objectpublic boolean isPercent()
public int getLength()
public double getPercent()
public String toString()
toString in class Objectpublic static OdfLengthOrPercent valueOf(String stringValue)
stringValue - a String value
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||