1 |
// (c): Matti J. Katila |
// (c): Matti J. Katila |
2 |
|
|
3 |
package org.fenfire.fenmm; |
package org.fenfire.fenmm; |
4 |
import org.fenfire.swamp.*; |
|
5 |
import org.nongnu.libvob.*; |
import org.fenfire.swamp.PureNodeFunction; |
6 |
import org.nongnu.libvob.lava.placeable.*; |
import org.fenfire.swamp.ConstGraph; |
7 |
import org.nongnu.libvob.gl.*; |
import org.nongnu.libvob.lava.placeable.TextPlaceable; |
8 |
|
import org.nongnu.libvob.VobScene; |
9 |
|
import org.nongnu.libvob.gl.GLRen; |
10 |
|
import org.nongnu.libvob.gl.Paper; |
11 |
|
import org.nongnu.libvob.gl.SpecialPapers; |
12 |
|
|
13 |
import java.awt.Color; |
import java.awt.Color; |
14 |
|
|
15 |
/** Must be placed before TextPlaceable node function XXX |
/** |
16 |
|
* Translucent rectangular background for TextNodeView. |
17 |
|
* XXX: Must be placed before TextPlaceable node function. |
18 |
*/ |
*/ |
19 |
public class WhiteNodeView implements PureNodeFunction { |
public class WhiteNodeView implements PureNodeFunction { |
20 |
|
|
36 |
public void place(VobScene vs, int cs) { |
public void place(VobScene vs, int cs) { |
37 |
int cs2 = vs.orthoCS(cs, key,0, 0,0, p.getWidth(), p.getHeight()); |
int cs2 = vs.orthoCS(cs, key,0, 0,0, p.getWidth(), p.getHeight()); |
38 |
vs.put(pq, cs2); |
vs.put(pq, cs2); |
|
|
|
39 |
p.place(vs, cs); |
p.place(vs, cs); |
40 |
} |
} |
41 |
|
|