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) |