24 |
import gzz.*; |
import gzz.*; |
25 |
import gzz.vob.*; |
import gzz.vob.*; |
26 |
|
|
27 |
/** A CellInBox that delegates all calls to another CellInBox, |
/** A CellView that delegates all calls to another CellView, |
28 |
* except that it multiplies the results of getSize() calls |
* except that it multiplies the results of getSize() calls |
29 |
* with a constant factor. Used for showing cells larger or smaller |
* with a constant factor. Used for showing cells larger or smaller |
30 |
* than the normal CellInBox would. |
* than the normal CellView would. |
31 |
* <p> |
* <p> |
32 |
* Note that this does <strong>not</strong> work by wrapping |
* Note that this does <strong>not</strong> work by wrapping |
33 |
* the body in a scaling coordinate set. It only provides different |
* the body in a scaling coordinate set. It only provides different |
38 |
* With LinebreakingCellView, magnifying the cells may allow |
* With LinebreakingCellView, magnifying the cells may allow |
39 |
* multiple lines of text to be shown. |
* multiple lines of text to be shown. |
40 |
*/ |
*/ |
41 |
public class CellMagnifier extends CellInBox { |
public class CellMagnifier extends CellView { |
42 |
protected CellInBox sub; |
protected CellView sub; |
43 |
protected float factor; |
protected float factor; |
44 |
|
|
45 |
public CellMagnifier(CellInBox sub, float factor) { |
public CellMagnifier(CellView sub, float factor) { |
46 |
this.sub = sub; |
this.sub = sub; |
47 |
this.factor = factor; |
this.factor = factor; |
48 |
} |
} |