XPropertySet xPageProperties = (XPropertySet)
UnoRuntime.queryInterface( XPropertySet.class, xDrawPage );
int nPageWidth = ((Integer)xPageProperties.getPropertyValue( "Width" )).intValue() / 2;
int nPageHeight = ((Integer)xPageProperties.getPropertyValue( "Height" )).intValue() / 2;
PolyPolygonBezierCoords aCoords = new PolyPolygonBezierCoords();
// allocating the outer sequence
int nPolygonCount = 50;
aCoords.Coordinates = new Point[ nPolygonCount ][ ];
aCoords.Flags = new PolygonFlags[ nPolygonCount ][ ];
int i, n, nY;