|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.extex.interpreter.primitives.register.pair.Pair
public class Pair
Pair (tow real-values).
[x-real] [y-real]
| Constructor Summary | |
|---|---|
Pair()
Creates a new object. |
|
Pair(Context context,
TokenSource source,
Typesetter typesetter)
Creates a new object. |
|
Pair(double x,
double y)
Creates a new object. |
|
Pair(Real x,
Real y)
Creates a new object. |
|
Pair(java.lang.String s)
Creates a new object. |
|
| Method Summary | |
|---|---|
void |
add(double x,
double y)
add |
void |
add(Pair val)
add |
void |
add(Real x,
Real y)
add |
Real |
getX()
Getter for the x-value |
Real |
getY()
Getter for the y-value |
void |
setX(double x)
Setter for the x-value. |
void |
setX(Real x)
Setter for the x-value. |
void |
setY(double y)
Setter for the y-value. |
void |
setY(Real y)
Setter for the y-value. |
java.lang.String |
toString()
Return the value as String |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public Pair()
public Pair(Context context,
TokenSource source,
Typesetter typesetter)
throws HelpingException,
ConfigurationException,
TypesetterException
TokenSource for a
Pair.
context - the contextsource - the token sourcetypesetter - the typesetter
HelpingException - in case of an error
ConfigurationException - in case of an configuration error
TypesetterException - in case of an error in the typesetter
public Pair(double x,
double y)
x - the x-valuey - the y-value
public Pair(Real x,
Real y)
x - the x-valuey - the y-value
public Pair(java.lang.String s)
throws HelpingException
If the string equals null or empty, the value is set to
zero
s - the value as String
HelpingException - if a NumberFormatException is throws| Method Detail |
|---|
public void add(double x,
double y)
x - the x-value to addy - the x-value to addpublic void add(Pair val)
val - the value to add
public void add(Real x,
Real y)
x - the x-value to addy - the x-value to addpublic Real getX()
public Real getY()
public void setX(double x)
x - the new x-valuepublic void setX(Real x)
x - the new x-valuepublic void setY(double y)
y - the new y-valuepublic void setY(Real y)
y - the new y-valuepublic java.lang.String toString()
String
toString in class java.lang.ObjectString
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||