/[libvob]/libvob/org/nongnu/libvob/lava/Demo.java
ViewVC logotype

Diff of /libvob/org/nongnu/libvob/lava/Demo.java

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.4 by benja, Sun Apr 6 12:30:30 2003 UTC revision 1.5 by benja, Sun Apr 6 14:18:28 2003 UTC
# Line 42  public class Demo { Line 42  public class Demo {
42          RenderTraversal t = g.transform(new RenderTraversal(), w+1);          RenderTraversal t = g.transform(new RenderTraversal(), w+1);
43          g.add(new Colorize(new LineVob(s, t), Color.red));          g.add(new Colorize(new LineVob(s, t), Color.red));
44    
45          Sequence seq = new SimpleBreaker(new Box(Vob.X),          Sequence seq = new SimpleBreaker(new Box(Vob.Y),
                                          new Box(Vob.Y),  
46                                           300, Vob.X);                                           300, Vob.X);
47    
48          ScalableFont font = new ScalableFont("serif", 0, 12);          ScalableFont font = new ScalableFont("serif", 0, 12);
49          String string = "A little experiment 'ad hominem.' "          String string = "A little experiment 'ad hominem.' "
50              + "(What 'ad hominem' means? I wouldn't know. "              + "(What 'ad hominem' means? I wouldn't know. "
51              + "I just use it to sound impressive. This is "              + "I just use it to sound impressive. This is "
52              + "really about linebreaking :-) )";              + "really about linebreaking :-) ) -- UPDATE: "
53                + "it means using an attack against a person "
54                + "as an 'argument' against what the person said.";
55    
56          for(int i=0; i<string.length(); i++) {          for(int i=0; i<string.length(); i++) {
57              if((i+1) % 30 == 0)              if((i+1) % 30 == 0)

Legend:
Removed from v.1.4  
changed lines
  Added in v.1.5

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26