Bug 140321 locale based font config file support
engine/org.eclipse.birt.report.engine.tests/test/org/eclipse/birt/report/engine/layout/pdf/PDFImageLMTest.java
private void checkChartLengend( ContainerArea map, int x, int y, int width,
			int height, String hyperlink, String bookmark, String targetWindow )
	{
		IContent mapContent = (IContent) map.getContent( );
		IHyperlinkAction link = mapContent.getHyperlinkAction( );
		assertEquals( x, map.getX( ) );
		assertEquals( y, map.getY( ) );
		assertEquals( width, map.getWidth( ) );
		assertEquals( height, map.getHeight( ) );
		assertTrue( link.getHyperlink( ).matches( hyperlink ) );
		assertEquals( bookmark, link.getBookmark( ) );
		assertEquals( targetWindow, link.getTargetWindow( ) );
	}
	private ContainerArea getChartParentIn( ContainerArea blockContainer )
	{
		ContainerArea parent = blockContainer;
		Iterator iterator = parent.getChildren( );
		while ( iterator.hasNext( ) )
		{
			IArea firstChild = (IArea) iterator.next( );
			if ( firstChild instanceof IImageArea )
			{
				return parent;
			}
			parent = (ContainerArea) firstChild;
			iterator = parent.getChildren( );
		}
		return null;
	}
}