|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--gzz.view.CellHBox
An HBox that contains a cell, using a given CellView.
Nested Class Summary |
Nested classes inherited from class gzz.vob.linebreaking.HBox |
gzz.vob.linebreaking.HBox.Null, gzz.vob.linebreaking.HBox.VobHBox |
Field Summary |
Fields inherited from interface gzz.vob.linebreaking.HBox |
rcsid, WH_KEY |
Constructor Summary | |
CellHBox(Cell cell,
CellView view,
ViewContext context)
|
Method Summary | |
float |
getDepth(float scale)
Get the descent of the hbox from the baseline upwards. |
float |
getHeight(float scale)
Get the ascent of the hbox from the baseline upwards. |
java.lang.Object |
getKey()
The key for this HBox. |
int |
getLength()
Get this box's length in characters or other units. |
float |
getWidth(float scale)
|
float |
getX(int i,
float scale)
Get the position after a unit (e.g. |
void |
place(VobScene vs,
int coordsys,
float scale)
Place the contents of this box into a given coordsys. |
void |
setPrev(gzz.vob.linebreaking.HBox b)
Set the preceding HBox. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public CellHBox(Cell cell, CellView view, ViewContext context)
Method Detail |
public float getWidth(float scale)
getWidth
in interface gzz.vob.linebreaking.HBox
public float getHeight(float scale)
gzz.vob.linebreaking.HBox
getHeight
in interface gzz.vob.linebreaking.HBox
public float getDepth(float scale)
gzz.vob.linebreaking.HBox
getDepth
in interface gzz.vob.linebreaking.HBox
public int getLength()
gzz.vob.linebreaking.HBox
getX(i)
is valid for
i < getLength()
.
getLength
in interface gzz.vob.linebreaking.HBox
public float getX(int i, float scale)
gzz.vob.linebreaking.HBox
getX
in interface gzz.vob.linebreaking.HBox
public java.lang.Object getKey()
gzz.vob.linebreaking.HBox
getKey
in interface gzz.vob.linebreaking.HBox
public void place(VobScene vs, int coordsys, float scale)
gzz.vob.linebreaking.HBox
public class FooBox extends Vob implements HBox { float scale; ... ... public void place(VobScene vs, int cs, float scale) { this.scale = scale; vs.map.put(this, cs); } }
place
in interface gzz.vob.linebreaking.HBox
public void setPrev(gzz.vob.linebreaking.HBox b)
gzz.vob.linebreaking.HBox
setPrev
in interface gzz.vob.linebreaking.HBox
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |