gzz.view
Class TextCellContentView
java.lang.Object
|
+--gzz.view.CellView
|
+--gzz.view.TextCellContentView
- public class TextCellContentView
- extends CellView
A cell content view showing a cell's text.
Field Summary |
static boolean |
dbg
|
static java.lang.String |
rcsid
|
Method Summary |
void |
getSize(Cell c,
float scale,
ViewContext context,
float[] out)
Get the default size of the cell at a given scale. |
void |
place(Cell c,
VobScene vs,
int box,
ViewContext context)
Place the contents of one cell into the given coord system. |
protected void |
placeVob(Cell c,
VobScene vs,
int cs,
int start,
int end,
int offs,
ViewContext context,
float h,
float scaled_h,
float scale)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
rcsid
public static final java.lang.String rcsid
- See Also:
- Constant Field Values
dbg
public static boolean dbg
TextCellContentView
public TextCellContentView()
TextCellContentView
public TextCellContentView(TextStyle style)
TextCellContentView
public TextCellContentView(TextStyle style,
java.lang.String widthString)
getSize
public void getSize(Cell c,
float scale,
ViewContext context,
float[] out)
- Description copied from class:
CellView
- Get the default size of the cell at a given scale.
This method exists for the benefit of AWT, where fonts cannot
be scaled accurately.
Note that the returned width and height are in Box scale:
they are not multiplied by the scale parameter.
- Overrides:
getSize
in class CellView
- Parameters:
c
- The cell to get size for, or null for a default size.
place
public void place(Cell c,
VobScene vs,
int box,
ViewContext context)
- Description copied from class:
CellView
- Place the contents of one cell into the given coord system.
The coordsys given shall be a mapping from the rectangle
(0,w)x(0,h) onto the screen.
- Specified by:
place
in class CellView
- Parameters:
box
- A coordinate system, into whose "unit square"
the cell will be placed.
Note that some coordinate systems
(box, orthoBox) set their "unit
square" not to be 0..1 x 0..1.
placeVob
protected void placeVob(Cell c,
VobScene vs,
int cs,
int start,
int end,
int offs,
ViewContext context,
float h,
float scaled_h,
float scale)