if ( ( (ReportElementModel) getModel( ) ).getSlotId( ) == SimpleMasterPageHandle.PAGE_HEADER_SLOT )
if ( ( (SlotHandle) getModel( ) ).getSlotID( ) == SimpleMasterPageHandle.PAGE_HEADER_SLOT )
	private Rectangle getConstraint( )	{		IFigure parent = ( (MasterPageEditPart) getParent( ) ).getFigure( );		Rectangle region = parent.getClientArea( );		Rectangle rect = new Rectangle( );		rect.height = -1;		rect.width = region.width;		// Define the default height value of header and footer		SimpleMasterPageHandle mphandle = ( (SimpleMasterPageHandle) ( (MasterPageEditPart) getParent( ) )				.getModel( ) );		if ( ( (ReportElementModel) getModel( ) ).getSlotId( ) == SimpleMasterPageHandle.PAGE_HEADER_SLOT )		{			if ( mphandle.getPropertyHandle(					SimpleMasterPageHandle.HEADER_HEIGHT_PROP ).isSet( ) )			{				DimensionHandle handle = mphandle.getHeaderHeight( );				rect.height = (int) DEUtil.convertoToPixel( handle );			}		}		else		{			if ( mphandle.getPropertyHandle(					SimpleMasterPageHandle.FOOTER_HEIGHT_PROP ).isSet( ) )			{				DimensionHandle handle = mphandle.getFooterHeight( );				rect.height = (int) DEUtil.convertoToPixel( handle );			}		}		if ( ( (ReportElementModel) getModel( ) ).getSlotId( ) == SimpleMasterPageHandle.PAGE_HEADER_SLOT )		{			rect.setLocation( 0, 0 );		}		else		{			rect.setLocation( -1, -1 );		}		return rect;	}