gzz.view
Class CellViewPlugin
java.lang.Object
|
+--gzz.view.CellView
|
+--gzz.view.CellViewPlugin
- public class CellViewPlugin
- extends CellView
A "plugin" which allows decoration of a CellInBox object by a CellPlacementHook.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
CellViewPlugin
public CellViewPlugin(CellView sub,
CellPlacementHook hook)
place
public void place(Cell c,
VobScene sc,
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.
getSize
public void getSize(Cell c,
ViewContext context,
float[] out)
- Description copied from class:
CellView
- Get the default size of the cell.
- Overrides:
getSize
in class CellView
- Parameters:
c
- The cell to get size for, or null for a default size.
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.