|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.extex.font.format.dvi.DviValues
public class DviValues
Values for dvi.
The values of h, v, w,
x, y, and z are signed
integers having up to 32 bits, including the sign.
Since they represent physical distances, there is a small unit of measurement
such that increasing h by 1 means moving a certain tiny
distance to the right. The actual unit of measurement is variable.
The current font f is an integer; this value is changed only
by fnt and fnt_num commands.
The current position on the page is given by two numbers called the
horizontal and vertical coordinates, h and v.
Both coordinates are zero at the upper left corner of the page; moving to the
right corresponds to increasing the horizontal coordinate, and moving down
corresponds to increasing the vertical coordinate. Thus, the coordinates are
essentially Cartesian, except that vertical directions are flipped; the
Cartesian version of (h,v) would be (h,-v).
The current spacing amounts are given by four numbers w,
x, y, and z, where
w and x are used for horizontal spacing and
where y and z are used for vertical spacing.
There is a stack containing (h,v,w,x,y,z) values; the DVI
commands push and pop are used to change the
current level of operation. Note that the current font f is
not pushed and popped; the stack contains only information about positioning.
| Constructor Summary | |
|---|---|
DviValues()
Create a new object. |
|
DviValues(DviValues val)
Create a new object. |
|
| Method Summary | |
|---|---|
void |
addH(int ah)
|
void |
addV(int av)
|
void |
clear()
clear all values (without f!). |
int |
getF()
Returns the f. |
int |
getH()
Returns the h. |
int |
getV()
Returns the v. |
int |
getW()
Returns the w. |
int |
getX()
Returns the x. |
int |
getY()
Returns the y. |
int |
getZ()
Returns the z. |
boolean |
isClear()
Check, if the values (h,v,w,x,z,z) all zero. |
void |
setF(int af)
|
void |
setH(int ah)
|
void |
setV(int av)
|
void |
setValues(DviValues val)
set the values (without f!) |
void |
setW(int aw)
|
void |
setX(int ax)
|
void |
setY(int ay)
|
void |
setZ(int az)
|
java.lang.String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public DviValues()
public DviValues(DviValues val)
val - the new values.| Method Detail |
|---|
public void addH(int ah)
ah - The h to add.public void addV(int av)
av - The v to add.public void clear()
public int getF()
public int getH()
public int getV()
public int getW()
public int getX()
public int getY()
public int getZ()
public boolean isClear()
true, if all values are zero.public void setF(int af)
af - The f to set.public void setH(int ah)
ah - The h to set.public void setV(int av)
av - The v to set.public void setValues(DviValues val)
val - the new valuespublic void setW(int aw)
aw - The w to set.public void setX(int ax)
ax - The x to set.public void setY(int ay)
ay - The y to set.public void setZ(int az)
az - The z to set.public java.lang.String toString()
toString in class java.lang.ObjectObject.toString()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||