gzz.view
Class BoxCellView
java.lang.Object
|
+--gzz.view.CellView
|
+--gzz.view.BoxCellView
- Direct Known Subclasses:
- LollipopCellView
- public class BoxCellView
- extends CellView
A cell view showing a box around a cell.
Field Summary |
protected CellView |
ccv
The cell content view used
to render the content of cells. |
static boolean |
dbg
|
static java.lang.String |
rcsid
|
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
ccv
protected CellView ccv
- The cell content view used
to render the content of cells.
BoxCellView
public BoxCellView(CellView ccv)
setSpace
public void setSpace(Space s)
getSize
public void getSize(Cell c,
float scale,
ViewContext context,
float[] into)
- 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.