|
Hi,
I was trying the following example:
[code]
private void testAdditional() { flowChart = new FlowChart(); this.getContentPane().add(flowChart);
Box test = new Box(flowChart); test.setBounds(10, 10, 20, 20); test.setText("A very long text to test something in the application and elsewhere");
test.setShape(new Shape(new ElementTemplate[] { new LineTemplate(0, 0, 100, 0), new LineTemplate(100, 0, 100, 100), new LineTemplate(100, 100, 0, 100), new LineTemplate(0, 100, 0, 0) },
new ElementTemplate[] { new LineTemplate(0, 0, 100, 0), new LineTemplate(100, 0, 100, 100), new LineTemplate(100, 100, 0, 100), new LineTemplate(0, 100, 0, 0) },
new ElementTemplate[] { new LineTemplate(0, 0, 100, 0), new LineTemplate(100, 0, 100, 150), new LineTemplate(100, 150, 0, 150), new LineTemplate(0, 150, 0, 0) }, GeneralPath.WIND_NON_ZERO, "GoopKey" ));
test.setCustomDraw(CustomDraw.Additional);
flowChart.add(test); }
[/code]
I have set the text's template to spill more than the box.
If I have the custom draw off, the text is displayed.
If I have set it to additional, the text outside the box disappears.
This would be a bug?
Thanks, Praveen
|